diff --git a/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt b/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt
index 95fa55297d9c..de7a91468ea5 100644
--- a/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt
@@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\AFD\azure-sdk-for-net\sdk
-2019-08-19 23:03:22 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Sources\OSS\azure-sdk-for-net\sdk
+2019-11-07 17:58:14 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: 59c5761efb6dae1a0cfb624bc1a054e902a855cf
+Commit: 5e95a31678db88b8405e189df4aad8f9e9a24c45
AutoRest information
Requested version: latest
-Bootstrapper version: autorest@2.0.4283
+Bootstrapper version: autorest@2.0.4407
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props
index 3175b9235b3a..0812ef19e1c8 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props
@@ -1,7 +1,7 @@
- Network_2019-05-01;Network_2019-04-01;Network_2019-03-01;
+ Network_2019-05-01;Network_2019-11-01;Network_2019-10-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperationsExtensions.cs
deleted file mode 100644
index 0fffad0a5e17..000000000000
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperationsExtensions.cs
+++ /dev/null
@@ -1,341 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.FrontDoor
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for BackendPoolsOperations.
- ///
- public static partial class BackendPoolsOperationsExtensions
- {
- ///
- /// Lists all of the Backend Pools within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- public static IPage ListByFrontDoor(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName)
- {
- return operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult();
- }
-
- ///
- /// Lists all of the Backend Pools within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByFrontDoorAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Gets a Backend Pool with the specified Pool name within the specified Front
- /// Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- public static BackendPool Get(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName)
- {
- return operations.GetAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets a Backend Pool with the specified Pool name within the specified Front
- /// Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// Backend Pool properties needed to create a new Pool.
- ///
- public static BackendPool CreateOrUpdate(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// Backend Pool properties needed to create a new Pool.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes an existing Backend Pool with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- public static void Delete(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName)
- {
- operations.DeleteAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes an existing Backend Pool with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// Backend Pool properties needed to create a new Pool.
- ///
- public static BackendPool BeginCreateOrUpdate(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters)
- {
- return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// Backend Pool properties needed to create a new Pool.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginCreateOrUpdateAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes an existing Backend Pool with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- public static void BeginDelete(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName)
- {
- operations.BeginDeleteAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes an existing Backend Pool with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginDeleteAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Lists all of the Backend Pools within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListByFrontDoorNext(this IBackendPoolsOperations operations, string nextPageLink)
- {
- return operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// Lists all of the Backend Pools within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByFrontDoorNextAsync(this IBackendPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperations.cs
similarity index 68%
rename from sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperations.cs
rename to sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperations.cs
index febf5b0cb527..c10964f70b63 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperations.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperations.cs
@@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.FrontDoor
using System.Threading.Tasks;
///
- /// BackendPoolsOperations operations.
+ /// ExperimentsOperations operations.
///
- internal partial class BackendPoolsOperations : IServiceOperations, IBackendPoolsOperations
+ internal partial class ExperimentsOperations : IServiceOperations, IExperimentsOperations
{
///
- /// Initializes a new instance of the BackendPoolsOperations class.
+ /// Initializes a new instance of the ExperimentsOperations class.
///
///
/// Reference to the service client.
@@ -36,7 +36,7 @@ internal partial class BackendPoolsOperations : IServiceOperations
/// Thrown when a required parameter is null
///
- internal BackendPoolsOperations(FrontDoorManagementClient client)
+ internal ExperimentsOperations(FrontDoorManagementClient client)
{
if (client == null)
{
@@ -51,13 +51,13 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
public FrontDoorManagementClient Client { get; private set; }
///
- /// Lists all of the Backend Pools within a Front Door.
+ /// Gets a list of Experiments
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
///
/// Headers that will be added to request.
@@ -80,7 +80,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByProfileWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -105,26 +105,18 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (frontDoorName == null)
+ if (profileName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "profileName");
}
- if (frontDoorName != null)
+ if (profileName != null)
{
- if (frontDoorName.Length > 64)
+ if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
{
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- string apiVersion = "2019-05-01";
+ string apiVersion = "2019-11-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -132,18 +124,18 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("profileName", profileName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByProfile", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
+ _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName));
List _queryParameters = new List();
if (apiVersion != null)
{
@@ -237,7 +229,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -250,7 +242,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -270,17 +262,16 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
}
///
- /// Gets a Backend Pool with the specified Pool name within the specified Front
- /// Door.
+ /// Gets an Experiment by ExperimentName
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
///
/// Headers that will be added to request.
@@ -303,7 +294,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -328,45 +319,29 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (frontDoorName == null)
+ if (profileName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "profileName");
}
- if (frontDoorName != null)
+ if (profileName != null)
{
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
+ if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
{
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (backendPoolName == null)
+ if (experimentName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "experimentName");
}
- if (backendPoolName != null)
+ if (experimentName != null)
{
- if (backendPoolName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "backendPoolName", 90);
- }
- if (backendPoolName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "backendPoolName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(backendPoolName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
{
- throw new ValidationException(ValidationRules.Pattern, "backendPoolName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- string apiVersion = "2019-05-01";
+ string apiVersion = "2019-11-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -374,20 +349,20 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("backendPoolName", backendPoolName);
tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("profileName", profileName);
+ tracingParameters.Add("experimentName", experimentName);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName));
+ _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName));
+ _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName));
List _queryParameters = new List();
if (apiVersion != null)
{
@@ -481,7 +456,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -494,7 +469,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -514,20 +489,50 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
}
///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
+ /// Creates or updates an Experiment
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment resource
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Updates an Experiment by Experiment id
///
+ ///
+ /// Updates an Experiment
+ ///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
- ///
- /// Backend Pool properties needed to create a new Pool.
+ ///
+ /// The Experiment Update Model
///
///
/// The headers that will be added to request.
@@ -535,24 +540,24 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// The cancellation token.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Deletes an existing Backend Pool with the specified parameters.
+ /// Deletes an Experiment
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
///
/// The headers that will be added to request.
@@ -560,28 +565,27 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// The cancellation token.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
+ /// Creates or updates an Experiment
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
- ///
- /// Backend Pool properties needed to create a new Pool.
+ ///
+ /// The Experiment resource
///
///
/// Headers that will be added to request.
@@ -604,7 +608,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -629,49 +633,33 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (frontDoorName == null)
+ if (profileName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "profileName");
}
- if (frontDoorName != null)
+ if (profileName != null)
{
- if (frontDoorName.Length > 64)
+ if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
{
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (backendPoolName == null)
+ if (experimentName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "experimentName");
}
- if (backendPoolName != null)
+ if (experimentName != null)
{
- if (backendPoolName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "backendPoolName", 90);
- }
- if (backendPoolName.Length < 1)
+ if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
{
- throw new ValidationException(ValidationRules.MinLength, "backendPoolName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(backendPoolName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "backendPoolName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (backendPoolParameters == null)
+ if (parameters == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolParameters");
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
- string apiVersion = "2019-05-01";
+ string apiVersion = "2019-11-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -679,21 +667,21 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("backendPoolName", backendPoolName);
- tracingParameters.Add("backendPoolParameters", backendPoolParameters);
tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("profileName", profileName);
+ tracingParameters.Add("experimentName", experimentName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName));
+ _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName));
+ _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName));
List _queryParameters = new List();
if (apiVersion != null)
{
@@ -737,9 +725,9 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
// Serialize Request
string _requestContent = null;
- if(backendPoolParameters != null)
+ if(parameters != null)
{
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(backendPoolParameters, Client.SerializationSettings);
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
_httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
@@ -793,7 +781,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -806,7 +794,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -824,7 +812,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -842,7 +830,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -862,16 +850,22 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
}
///
- /// Deletes an existing Backend Pool with the specified parameters.
+ /// Updates an Experiment by Experiment id
///
+ ///
+ /// Updates an Experiment
+ ///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment Update Model
///
///
/// Headers that will be added to request.
@@ -882,6 +876,9 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -891,7 +888,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -916,45 +913,282 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
}
- if (frontDoorName == null)
+ if (profileName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "profileName");
}
- if (frontDoorName != null)
+ if (profileName != null)
{
- if (frontDoorName.Length > 64)
+ if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
{
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
+ throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
}
- if (frontDoorName.Length < 5)
+ }
+ if (experimentName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "experimentName");
+ }
+ if (experimentName != null)
+ {
+ if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
+ }
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ string apiVersion = "2019-11-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("profileName", profileName);
+ tracingParameters.Add("experimentName", experimentName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName));
+ _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
{
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
+ _httpRequest.Headers.Remove("accept-language");
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
{
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
}
}
- if (backendPoolName == null)
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName");
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
- if (backendPoolName != null)
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
- if (backendPoolName.Length > 90)
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
{
- throw new ValidationException(ValidationRules.MaxLength, "backendPoolName", 90);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
- if (backendPoolName.Length < 1)
+ catch (JsonException ex)
{
- throw new ValidationException(ValidationRules.MinLength, "backendPoolName", 1);
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(backendPoolName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 202)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
{
- throw new ValidationException(ValidationRules.Pattern, "backendPoolName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
- string apiVersion = "2019-05-01";
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Deletes an Experiment
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 80)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
+ }
+ }
+ if (profileName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "profileName");
+ }
+ if (profileName != null)
+ {
+ if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
+ }
+ }
+ if (experimentName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "experimentName");
+ }
+ if (experimentName != null)
+ {
+ if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
+ }
+ }
+ string apiVersion = "2019-11-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -962,20 +1196,20 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("backendPoolName", backendPoolName);
tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("profileName", profileName);
+ tracingParameters.Add("experimentName", experimentName);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName));
+ _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName));
+ _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName));
List _queryParameters = new List();
if (apiVersion != null)
{
@@ -1039,7 +1273,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1084,7 +1318,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
}
///
- /// Lists all of the Backend Pools within a Front Door.
+ /// Gets a list of Experiments
///
///
/// The NextLink from the previous successful call to List operation.
@@ -1110,7 +1344,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -1125,7 +1359,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByProfileNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -1219,7 +1453,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -1232,7 +1466,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperationsExtensions.cs
new file mode 100644
index 000000000000..b26ef6a161e2
--- /dev/null
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperationsExtensions.cs
@@ -0,0 +1,451 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.FrontDoor
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for ExperimentsOperations.
+ ///
+ public static partial class ExperimentsOperationsExtensions
+ {
+ ///
+ /// Gets a list of Experiments
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ public static IPage ListByProfile(this IExperimentsOperations operations, string resourceGroupName, string profileName)
+ {
+ return operations.ListByProfileAsync(resourceGroupName, profileName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of Experiments
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByProfileAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByProfileWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets an Experiment by ExperimentName
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ public static Experiment Get(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName)
+ {
+ return operations.GetAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets an Experiment by ExperimentName
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Creates or updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment resource
+ ///
+ public static Experiment CreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters)
+ {
+ return operations.CreateOrUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates or updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment resource
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Updates an Experiment by Experiment id
+ ///
+ ///
+ /// Updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment Update Model
+ ///
+ public static Experiment Update(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters)
+ {
+ return operations.UpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates an Experiment by Experiment id
+ ///
+ ///
+ /// Updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment Update Model
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task UpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ public static void Delete(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName)
+ {
+ operations.DeleteAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Creates or updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment resource
+ ///
+ public static Experiment BeginCreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters)
+ {
+ return operations.BeginCreateOrUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates or updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment resource
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginCreateOrUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Updates an Experiment by Experiment id
+ ///
+ ///
+ /// Updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment Update Model
+ ///
+ public static Experiment BeginUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters)
+ {
+ return operations.BeginUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates an Experiment by Experiment id
+ ///
+ ///
+ /// Updates an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment Update Model
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ public static void BeginDelete(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName)
+ {
+ operations.BeginDeleteAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes an Experiment
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginDeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Gets a list of Experiments
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListByProfileNext(this IExperimentsOperations operations, string nextPageLink)
+ {
+ return operations.ListByProfileNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of Experiments
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByProfileNextAsync(this IExperimentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs
index 89ee16d4a0c3..1fd3173ecb60 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs
@@ -74,29 +74,29 @@ public partial class FrontDoorManagementClient : ServiceClient
- /// Gets the IFrontDoorsOperations.
+ /// Gets the INetworkExperimentProfilesOperations.
///
- public virtual IFrontDoorsOperations FrontDoors { get; private set; }
+ public virtual INetworkExperimentProfilesOperations NetworkExperimentProfiles { get; private set; }
///
- /// Gets the IRoutingRulesOperations.
+ /// Gets the IPreconfiguredEndpointsOperations.
///
- public virtual IRoutingRulesOperations RoutingRules { get; private set; }
+ public virtual IPreconfiguredEndpointsOperations PreconfiguredEndpoints { get; private set; }
///
- /// Gets the IHealthProbeSettingsOperations.
+ /// Gets the IExperimentsOperations.
///
- public virtual IHealthProbeSettingsOperations HealthProbeSettings { get; private set; }
+ public virtual IExperimentsOperations Experiments { get; private set; }
///
- /// Gets the ILoadBalancingSettingsOperations.
+ /// Gets the IReportsOperations.
///
- public virtual ILoadBalancingSettingsOperations LoadBalancingSettings { get; private set; }
+ public virtual IReportsOperations Reports { get; private set; }
///
- /// Gets the IBackendPoolsOperations.
+ /// Gets the IFrontDoorsOperations.
///
- public virtual IBackendPoolsOperations BackendPools { get; private set; }
+ public virtual IFrontDoorsOperations FrontDoors { get; private set; }
///
/// Gets the IFrontendEndpointsOperations.
@@ -359,11 +359,11 @@ public FrontDoorManagementClient(System.Uri baseUri, ServiceClientCredentials cr
///
private void Initialize()
{
+ NetworkExperimentProfiles = new NetworkExperimentProfilesOperations(this);
+ PreconfiguredEndpoints = new PreconfiguredEndpointsOperations(this);
+ Experiments = new ExperimentsOperations(this);
+ Reports = new ReportsOperations(this);
FrontDoors = new FrontDoorsOperations(this);
- RoutingRules = new RoutingRulesOperations(this);
- HealthProbeSettings = new HealthProbeSettingsOperations(this);
- LoadBalancingSettings = new LoadBalancingSettingsOperations(this);
- BackendPools = new BackendPoolsOperations(this);
FrontendEndpoints = new FrontendEndpointsOperations(this);
Endpoints = new EndpointsOperations(this);
Policies = new PoliciesOperations(this);
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs
index 8b1570eba458..2b83d9a00ca5 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs
@@ -513,60 +513,6 @@ internal FrontendEndpointsOperations(FrontDoorManagementClient client)
return _result;
}
- ///
- /// Creates a new frontend endpoint with the specified host name within the
- /// specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Deletes an existing frontend endpoint with the specified parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
///
/// Enables a frontendEndpoint for HTTPS traffic
///
@@ -620,526 +566,6 @@ internal FrontendEndpointsOperations(FrontDoorManagementClient client)
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
- ///
- /// Creates a new frontend endpoint with the specified host name within the
- /// specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 80)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
- }
- }
- if (frontDoorName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
- }
- if (frontDoorName != null)
- {
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
- }
- }
- if (frontendEndpointName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontendEndpointName");
- }
- if (frontendEndpointName != null)
- {
- if (frontendEndpointName.Length > 255)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontendEndpointName", 255);
- }
- if (frontendEndpointName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontendEndpointName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
- }
- }
- if (frontendEndpointParameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontendEndpointParameters");
- }
- if (frontendEndpointParameters != null)
- {
- frontendEndpointParameters.Validate();
- }
- string apiVersion = "2019-05-01";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("frontendEndpointName", frontendEndpointName);
- tracingParameters.Add("frontendEndpointParameters", frontendEndpointParameters);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{frontendEndpointName}", System.Uri.EscapeDataString(frontendEndpointName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- if(frontendEndpointParameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(frontendEndpointParameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 202)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Deletes an existing frontend endpoint with the specified parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 80)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
- }
- }
- if (frontDoorName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
- }
- if (frontDoorName != null)
- {
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
- }
- }
- if (frontendEndpointName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontendEndpointName");
- }
- if (frontendEndpointName != null)
- {
- if (frontendEndpointName.Length > 255)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontendEndpointName", 255);
- }
- if (frontendEndpointName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontendEndpointName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
- }
- }
- string apiVersion = "2019-05-01";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("frontendEndpointName", frontendEndpointName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{frontendEndpointName}", System.Uri.EscapeDataString(frontendEndpointName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
///
/// Enables a frontendEndpoint for HTTPS traffic
///
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs
index a9c27ec14fd3..1056b4320b73 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs
@@ -109,103 +109,6 @@ public static FrontendEndpoint Get(this IFrontendEndpointsOperations operations,
}
}
- ///
- /// Creates a new frontend endpoint with the specified host name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- public static FrontendEndpoint CreateOrUpdate(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a new frontend endpoint with the specified host name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes an existing frontend endpoint with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- public static void Delete(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName)
- {
- operations.DeleteAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes an existing frontend endpoint with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
///
/// Enables a frontendEndpoint for HTTPS traffic
///
@@ -298,103 +201,6 @@ public static void DisableHttps(this IFrontendEndpointsOperations operations, st
(await operations.DisableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
- ///
- /// Creates a new frontend endpoint with the specified host name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- public static FrontendEndpoint BeginCreateOrUpdate(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters)
- {
- return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a new frontend endpoint with the specified host name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginCreateOrUpdateAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes an existing frontend endpoint with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- public static void BeginDelete(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName)
- {
- operations.BeginDeleteAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes an existing frontend endpoint with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginDeleteAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
///
/// Enables a frontendEndpoint for HTTPS traffic
///
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperations.cs
deleted file mode 100644
index 30c437cd0c90..000000000000
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperations.cs
+++ /dev/null
@@ -1,1255 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.FrontDoor
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// HealthProbeSettingsOperations operations.
- ///
- internal partial class HealthProbeSettingsOperations : IServiceOperations, IHealthProbeSettingsOperations
- {
- ///
- /// Initializes a new instance of the HealthProbeSettingsOperations class.
- ///
- ///
- /// Reference to the service client.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- internal HealthProbeSettingsOperations(FrontDoorManagementClient client)
- {
- if (client == null)
- {
- throw new System.ArgumentNullException("client");
- }
- Client = client;
- }
-
- ///
- /// Gets a reference to the FrontDoorManagementClient
- ///
- public FrontDoorManagementClient Client { get; private set; }
-
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 80)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
- }
- }
- if (frontDoorName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
- }
- if (frontDoorName != null)
- {
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
- }
- }
- string apiVersion = "2019-05-01";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Gets a HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 80)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
- }
- }
- if (frontDoorName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
- }
- if (frontDoorName != null)
- {
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
- }
- }
- if (healthProbeSettingsName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsName");
- }
- if (healthProbeSettingsName != null)
- {
- if (healthProbeSettingsName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "healthProbeSettingsName", 90);
- }
- if (healthProbeSettingsName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "healthProbeSettingsName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(healthProbeSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "healthProbeSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
- }
- }
- string apiVersion = "2019-05-01";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("healthProbeSettingsName", healthProbeSettingsName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{healthProbeSettingsName}", System.Uri.EscapeDataString(healthProbeSettingsName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Deletes an existing HealthProbeSettings with the specified parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 80)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
- }
- }
- if (frontDoorName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
- }
- if (frontDoorName != null)
- {
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
- }
- }
- if (healthProbeSettingsName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsName");
- }
- if (healthProbeSettingsName != null)
- {
- if (healthProbeSettingsName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "healthProbeSettingsName", 90);
- }
- if (healthProbeSettingsName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "healthProbeSettingsName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(healthProbeSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "healthProbeSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
- }
- }
- if (healthProbeSettingsParameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsParameters");
- }
- string apiVersion = "2019-05-01";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("healthProbeSettingsName", healthProbeSettingsName);
- tracingParameters.Add("healthProbeSettingsParameters", healthProbeSettingsParameters);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{healthProbeSettingsName}", System.Uri.EscapeDataString(healthProbeSettingsName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- if(healthProbeSettingsParameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(healthProbeSettingsParameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 202)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Deletes an existing HealthProbeSettings with the specified parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 80)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$");
- }
- }
- if (frontDoorName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName");
- }
- if (frontDoorName != null)
- {
- if (frontDoorName.Length > 64)
- {
- throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64);
- }
- if (frontDoorName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$");
- }
- }
- if (healthProbeSettingsName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsName");
- }
- if (healthProbeSettingsName != null)
- {
- if (healthProbeSettingsName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "healthProbeSettingsName", 90);
- }
- if (healthProbeSettingsName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "healthProbeSettingsName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(healthProbeSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "healthProbeSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$");
- }
- }
- string apiVersion = "2019-05-01";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("frontDoorName", frontDoorName);
- tracingParameters.Add("healthProbeSettingsName", healthProbeSettingsName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName));
- _url = _url.Replace("{healthProbeSettingsName}", System.Uri.EscapeDataString(healthProbeSettingsName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (nextPageLink == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextPageLink", nextPageLink);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters);
- }
- // Construct URL
- string _url = "{nextLink}";
- _url = _url.Replace("{nextLink}", nextPageLink);
- List _queryParameters = new List();
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- }
-}
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperationsExtensions.cs
deleted file mode 100644
index b31018a44ccb..000000000000
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperationsExtensions.cs
+++ /dev/null
@@ -1,341 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.FrontDoor
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for HealthProbeSettingsOperations.
- ///
- public static partial class HealthProbeSettingsOperationsExtensions
- {
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- public static IPage ListByFrontDoor(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName)
- {
- return operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult();
- }
-
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByFrontDoorAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Gets a HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- public static HealthProbeSettingsModel Get(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName)
- {
- return operations.GetAsync(resourceGroupName, frontDoorName, healthProbeSettingsName).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets a HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- public static HealthProbeSettingsModel CreateOrUpdate(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes an existing HealthProbeSettings with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- public static void Delete(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName)
- {
- operations.DeleteAsync(resourceGroupName, frontDoorName, healthProbeSettingsName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes an existing HealthProbeSettings with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- public static HealthProbeSettingsModel BeginCreateOrUpdate(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters)
- {
- return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginCreateOrUpdateAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes an existing HealthProbeSettings with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- public static void BeginDelete(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName)
- {
- operations.BeginDeleteAsync(resourceGroupName, frontDoorName, healthProbeSettingsName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes an existing HealthProbeSettings with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front Door.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginDeleteAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListByFrontDoorNext(this IHealthProbeSettingsOperations operations, string nextPageLink)
- {
- return operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByFrontDoorNextAsync(this IHealthProbeSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IBackendPoolsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IExperimentsOperations.cs
similarity index 50%
rename from sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IBackendPoolsOperations.cs
rename to sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IExperimentsOperations.cs
index 2e842abc28a1..dec5883120d9 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IBackendPoolsOperations.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IExperimentsOperations.cs
@@ -19,18 +19,18 @@ namespace Microsoft.Azure.Management.FrontDoor
using System.Threading.Tasks;
///
- /// BackendPoolsOperations operations.
+ /// ExperimentsOperations operations.
///
- public partial interface IBackendPoolsOperations
+ public partial interface IExperimentsOperations
{
///
- /// Lists all of the Backend Pools within a Front Door.
+ /// Gets a list of Experiments
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
///
/// The headers that will be added to request.
@@ -47,19 +47,18 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByProfileWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a Backend Pool with the specified Pool name within the
- /// specified Front Door.
+ /// Gets an Experiment by ExperimentName
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
///
/// The headers that will be added to request.
@@ -76,22 +75,21 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
+ /// Creates or updates an Experiment
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
- ///
- /// Backend Pool properties needed to create a new Pool.
+ ///
+ /// The Experiment resource
///
///
/// The headers that will be added to request.
@@ -108,18 +106,52 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes an existing Backend Pool with the specified parameters.
+ /// Updates an Experiment by Experiment id
///
+ ///
+ /// Updates an Experiment
+ ///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment Update Model
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes an Experiment
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
///
///
/// The headers that will be added to request.
@@ -133,22 +165,55 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates an Experiment
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
+ ///
+ ///
+ /// The Experiment identifier associated with the Experiment
+ ///
+ ///
+ /// The Experiment resource
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new Backend Pool with the specified Pool name within the
- /// specified Front Door.
+ /// Updates an Experiment by Experiment id
///
+ ///
+ /// Updates an Experiment
+ ///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
- ///
- /// Backend Pool properties needed to create a new Pool.
+ ///
+ /// The Experiment Update Model
///
///
/// The headers that will be added to request.
@@ -165,18 +230,18 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes an existing Backend Pool with the specified parameters.
+ /// Deletes an Experiment
///
///
/// Name of the Resource group within the Azure subscription.
///
- ///
- /// Name of the Front Door which is globally unique.
+ ///
+ /// The Profile identifier associated with the Tenant and Partner
///
- ///
- /// Name of the Backend Pool which is unique within the Front Door.
+ ///
+ /// The Experiment identifier associated with the Experiment
///
///
/// The headers that will be added to request.
@@ -190,9 +255,9 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all of the Backend Pools within a Front Door.
+ /// Gets a list of Experiments
///
///
/// The NextLink from the previous successful call to List operation.
@@ -212,6 +277,6 @@ public partial interface IBackendPoolsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs
index 7056083a2841..783ecb4f04da 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs
@@ -71,29 +71,29 @@ public partial interface IFrontDoorManagementClient : System.IDisposable
///
- /// Gets the IFrontDoorsOperations.
+ /// Gets the INetworkExperimentProfilesOperations.
///
- IFrontDoorsOperations FrontDoors { get; }
+ INetworkExperimentProfilesOperations NetworkExperimentProfiles { get; }
///
- /// Gets the IRoutingRulesOperations.
+ /// Gets the IPreconfiguredEndpointsOperations.
///
- IRoutingRulesOperations RoutingRules { get; }
+ IPreconfiguredEndpointsOperations PreconfiguredEndpoints { get; }
///
- /// Gets the IHealthProbeSettingsOperations.
+ /// Gets the IExperimentsOperations.
///
- IHealthProbeSettingsOperations HealthProbeSettings { get; }
+ IExperimentsOperations Experiments { get; }
///
- /// Gets the ILoadBalancingSettingsOperations.
+ /// Gets the IReportsOperations.
///
- ILoadBalancingSettingsOperations LoadBalancingSettings { get; }
+ IReportsOperations Reports { get; }
///
- /// Gets the IBackendPoolsOperations.
+ /// Gets the IFrontDoorsOperations.
///
- IBackendPoolsOperations BackendPools { get; }
+ IFrontDoorsOperations FrontDoors { get; }
///
/// Gets the IFrontendEndpointsOperations.
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs
index c6018ca5fb04..b72f6e2046e8 100644
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs
+++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs
@@ -79,66 +79,6 @@ public partial interface IFrontendEndpointsOperations
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new frontend endpoint with the specified host name within
- /// the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front
- /// Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes an existing frontend endpoint with the specified
- /// parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front
- /// Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Enables a frontendEndpoint for HTTPS traffic
///
///
@@ -194,66 +134,6 @@ public partial interface IFrontendEndpointsOperations
///
Task DisableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new frontend endpoint with the specified host name within
- /// the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front
- /// Door.
- ///
- ///
- /// Frontend endpoint properties needed to create a new endpoint.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes an existing frontend endpoint with the specified
- /// parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the Frontend endpoint which is unique within the Front
- /// Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Enables a frontendEndpoint for HTTPS traffic
///
///
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IHealthProbeSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IHealthProbeSettingsOperations.cs
deleted file mode 100644
index cfe1548c3386..000000000000
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IHealthProbeSettingsOperations.cs
+++ /dev/null
@@ -1,224 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.FrontDoor
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// HealthProbeSettingsOperations operations.
- ///
- public partial interface IHealthProbeSettingsOperations
- {
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Gets a HealthProbeSettings with the specified Rule name within the
- /// specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front
- /// Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name
- /// within the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front
- /// Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes an existing HealthProbeSettings with the specified
- /// parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front
- /// Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates a new HealthProbeSettings with the specified Rule name
- /// within the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front
- /// Door.
- ///
- ///
- /// HealthProbeSettings properties needed to create a new Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes an existing HealthProbeSettings with the specified
- /// parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the health probe settings which is unique within the Front
- /// Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Lists all of the HealthProbeSettings within a Front Door.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ILoadBalancingSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ILoadBalancingSettingsOperations.cs
deleted file mode 100644
index 2a415ece748a..000000000000
--- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ILoadBalancingSettingsOperations.cs
+++ /dev/null
@@ -1,224 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.FrontDoor
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// LoadBalancingSettingsOperations operations.
- ///
- public partial interface ILoadBalancingSettingsOperations
- {
- ///
- /// Lists all of the LoadBalancingSettings within a Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Gets a LoadBalancingSettings with the specified Rule name within
- /// the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the load balancing settings which is unique within the
- /// Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates a new LoadBalancingSettings with the specified Rule name
- /// within the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the load balancing settings which is unique within the
- /// Front Door.
- ///
- ///
- /// LoadBalancingSettings properties needed to create a new Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes an existing LoadBalancingSettings with the specified
- /// parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the load balancing settings which is unique within the
- /// Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates a new LoadBalancingSettings with the specified Rule name
- /// within the specified Front Door.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the load balancing settings which is unique within the
- /// Front Door.
- ///
- ///
- /// LoadBalancingSettings properties needed to create a new Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes an existing LoadBalancingSettings with the specified
- /// parameters.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the Front Door which is globally unique.
- ///
- ///
- /// Name of the load balancing settings which is unique within the
- /// Front Door.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary