diff --git a/sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/AppServiceEnvironmentsOperations.cs b/sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/AppServiceEnvironmentsOperations.cs
index dd3bef96890c..ce6e56da299e 100644
--- a/sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/AppServiceEnvironmentsOperations.cs
+++ b/sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/AppServiceEnvironmentsOperations.cs
@@ -1401,10 +1401,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get diagnostic information for an App Service Environment.
+ /// Get networking configuration of an App Service Environment
///
///
- /// Description for Get diagnostic information for an App Service Environment.
+ /// Description for Get networking configuration of an App Service Environment
///
///
/// Name of the resource group to which the resource belongs.
@@ -1433,7 +1433,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListDiagnosticsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetAseV3NetworkingConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1476,11 +1476,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListDiagnostics", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetAseV3NetworkingConfiguration", 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.Web/hostingEnvironments/{name}/diagnostics").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -1577,7 +1577,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -1590,7 +1590,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -1610,10 +1610,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get a diagnostics item for an App Service Environment.
+ /// Update networking configuration of an App Service Environment
///
///
- /// Description for Get a diagnostics item for an App Service Environment.
+ /// Description for Update networking configuration of an App Service
+ /// Environment
///
///
/// Name of the resource group to which the resource belongs.
@@ -1621,8 +1622,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
- ///
- /// Name of the diagnostics item.
+ ///
///
///
/// Headers that will be added to request.
@@ -1645,7 +1645,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetDiagnosticsItemWithHttpMessagesAsync(string resourceGroupName, string name, string diagnosticsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateAseNetworkingConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, AseV3NetworkingConfiguration aseNetworkingConfiguration, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1670,9 +1670,9 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
- if (diagnosticsName == null)
+ if (aseNetworkingConfiguration == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "diagnosticsName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "aseNetworkingConfiguration");
}
if (Client.SubscriptionId == null)
{
@@ -1691,16 +1691,15 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
- tracingParameters.Add("diagnosticsName", diagnosticsName);
+ tracingParameters.Add("aseNetworkingConfiguration", aseNetworkingConfiguration);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetDiagnosticsItem", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "UpdateAseNetworkingConfiguration", 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.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
- _url = _url.Replace("{diagnosticsName}", System.Uri.EscapeDataString(diagnosticsName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -1714,7 +1713,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1745,6 +1744,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(aseNetworkingConfiguration != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(aseNetworkingConfiguration, 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)
{
@@ -1795,7 +1800,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -1808,7 +1813,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -1828,12 +1833,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get the network endpoints of all inbound dependencies of an App Service
- /// Environment.
+ /// Get diagnostic information for an App Service Environment.
///
///
- /// Description for Get the network endpoints of all inbound dependencies of an
- /// App Service Environment.
+ /// Description for Get diagnostic information for an App Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -1862,7 +1865,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> GetInboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListDiagnosticsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1905,11 +1908,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetInboundNetworkDependenciesEndpoints", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListDiagnostics", 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.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -2006,7 +2009,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -2019,7 +2022,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -2039,10 +2042,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get all multi-role pools.
+ /// Get a diagnostics item for an App Service Environment.
///
///
- /// Description for Get all multi-role pools.
+ /// Description for Get a diagnostics item for an App Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -2050,6 +2053,9 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
+ ///
+ /// Name of the diagnostics item.
+ ///
///
/// Headers that will be added to request.
///
@@ -2071,7 +2077,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRolePoolsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetDiagnosticsItemWithHttpMessagesAsync(string resourceGroupName, string name, string diagnosticsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2096,6 +2102,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
+ if (diagnosticsName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "diagnosticsName");
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -2113,14 +2123,16 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
+ tracingParameters.Add("diagnosticsName", diagnosticsName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePools", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetDiagnosticsItem", 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.Web/hostingEnvironments/{name}/multiRolePools").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
+ _url = _url.Replace("{diagnosticsName}", System.Uri.EscapeDataString(diagnosticsName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -2215,7 +2227,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -2228,7 +2240,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -2248,10 +2260,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get properties of a multi-role pool.
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
///
///
- /// Description for Get properties of a multi-role pool.
+ /// Description for Get the network endpoints of all inbound dependencies of an
+ /// App Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -2280,7 +2294,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetMultiRolePoolWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> GetInboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2323,11 +2337,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetMultiRolePool", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetInboundNetworkDependenciesEndpoints", 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.Web/hostingEnvironments/{name}/multiRolePools/default").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -2424,7 +2438,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -2437,7 +2451,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -2457,38 +2471,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Create or update a multi-role pool.
- ///
- ///
- /// Description for Create or update a multi-role pool.
- ///
- ///
- /// Name of the resource group to which the resource belongs.
- ///
- ///
- /// Name of the App Service Environment.
- ///
- ///
- /// Properties of the multi-role pool.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateOrUpdateMultiRolePoolWithHttpMessagesAsync(string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateMultiRolePoolWithHttpMessagesAsync(resourceGroupName, name, multiRolePoolEnvelope, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Create or update a multi-role pool.
+ /// Get all multi-role pools.
///
///
- /// Description for Create or update a multi-role pool.
+ /// Description for Get all multi-role pools.
///
///
/// Name of the resource group to which the resource belongs.
@@ -2496,9 +2482,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
- ///
- /// Properties of the multi-role pool.
- ///
///
/// Headers that will be added to request.
///
@@ -2520,7 +2503,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateMultiRolePoolWithHttpMessagesAsync(string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRolePoolsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2545,10 +2528,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
- if (multiRolePoolEnvelope == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "multiRolePoolEnvelope");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -2566,13 +2545,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
- tracingParameters.Add("multiRolePoolEnvelope", multiRolePoolEnvelope);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "UpdateMultiRolePool", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePools", 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.Web/hostingEnvironments/{name}/multiRolePools/default").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -2588,7 +2566,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -2619,12 +2597,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Serialize Request
string _requestContent = null;
- if(multiRolePoolEnvelope != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(multiRolePoolEnvelope, 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)
{
@@ -2645,7 +2617,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200)
{
var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -2675,7 +2647,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -2688,25 +2660,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
_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);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -2726,12 +2680,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get metric definitions for a specific instance of a multi-role pool of an
- /// App Service Environment.
+ /// Get properties of a multi-role pool.
///
///
- /// Description for Get metric definitions for a specific instance of a
- /// multi-role pool of an App Service Environment.
+ /// Description for Get properties of a multi-role pool.
///
///
/// Name of the resource group to which the resource belongs.
@@ -2739,9 +2691,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
- ///
- /// Name of the instance in the multi-role pool.
- ///
///
/// Headers that will be added to request.
///
@@ -2763,7 +2712,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRolePoolInstanceMetricDefinitionsWithHttpMessagesAsync(string resourceGroupName, string name, string instance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetMultiRolePoolWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2788,10 +2737,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
- if (instance == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "instance");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -2809,16 +2754,14 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
- tracingParameters.Add("instance", instance);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolInstanceMetricDefinitions", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetMultiRolePool", 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.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
- _url = _url.Replace("{instance}", System.Uri.EscapeDataString(instance));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -2913,7 +2856,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -2926,7 +2869,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -2946,11 +2889,38 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get metric definitions for a multi-role pool of an App Service Environment.
+ /// Create or update a multi-role pool.
///
///
- /// Description for Get metric definitions for a multi-role pool of an App
- /// Service Environment.
+ /// Description for Create or update a multi-role pool.
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ ///
+ /// Properties of the multi-role pool.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateMultiRolePoolWithHttpMessagesAsync(string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateMultiRolePoolWithHttpMessagesAsync(resourceGroupName, name, multiRolePoolEnvelope, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Create or update a multi-role pool.
+ ///
+ ///
+ /// Description for Create or update a multi-role pool.
///
///
/// Name of the resource group to which the resource belongs.
@@ -2958,6 +2928,9 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
+ ///
+ /// Properties of the multi-role pool.
+ ///
///
/// Headers that will be added to request.
///
@@ -2979,7 +2952,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRoleMetricDefinitionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateMultiRolePoolWithHttpMessagesAsync(string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -3004,6 +2977,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
+ if (multiRolePoolEnvelope == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "multiRolePoolEnvelope");
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -3021,12 +2998,13 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
+ tracingParameters.Add("multiRolePoolEnvelope", multiRolePoolEnvelope);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRoleMetricDefinitions", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "UpdateMultiRolePool", 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.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -3042,7 +3020,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("PATCH");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -3073,6 +3051,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(multiRolePoolEnvelope != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(multiRolePoolEnvelope, 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)
{
@@ -3093,7 +3077,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -3123,7 +3107,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -3136,7 +3120,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -3148,18 +3132,38 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
- if (_shouldTrace)
+ // Deserialize Response
+ if ((int)_statusCode == 202)
{
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Get available SKUs for scaling a multi-role pool.
- ///
+ _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;
+ }
+
+ ///
+ /// Get metric definitions for a specific instance of a multi-role pool of an
+ /// App Service Environment.
+ ///
///
- /// Description for Get available SKUs for scaling a multi-role pool.
+ /// Description for Get metric definitions for a specific instance of a
+ /// multi-role pool of an App Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -3167,6 +3171,9 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
+ ///
+ /// Name of the instance in the multi-role pool.
+ ///
///
/// Headers that will be added to request.
///
@@ -3188,7 +3195,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRolePoolSkusWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRolePoolInstanceMetricDefinitionsWithHttpMessagesAsync(string resourceGroupName, string name, string instance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -3213,6 +3220,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
+ if (instance == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "instance");
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -3230,14 +3241,16 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
+ tracingParameters.Add("instance", instance);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolSkus", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolInstanceMetricDefinitions", 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.Web/hostingEnvironments/{name}/multiRolePools/default/skus").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
+ _url = _url.Replace("{instance}", System.Uri.EscapeDataString(instance));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -3332,7 +3345,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -3345,7 +3358,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -3365,11 +3378,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get usage metrics for a multi-role pool of an App Service Environment.
+ /// Get metric definitions for a multi-role pool of an App Service Environment.
///
///
- /// Description for Get usage metrics for a multi-role pool of an App Service
- /// Environment.
+ /// Description for Get metric definitions for a multi-role pool of an App
+ /// Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -3398,7 +3411,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRoleUsagesWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRoleMetricDefinitionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -3441,11 +3454,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRoleUsages", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRoleMetricDefinitions", 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.Web/hostingEnvironments/{name}/multiRolePools/default/usages").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -3542,7 +3555,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -3555,7 +3568,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -3575,11 +3588,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// List all currently running operations on the App Service Environment.
+ /// Get available SKUs for scaling a multi-role pool.
///
///
- /// Description for List all currently running operations on the App Service
- /// Environment.
+ /// Description for Get available SKUs for scaling a multi-role pool.
///
///
/// Name of the resource group to which the resource belongs.
@@ -3608,7 +3620,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListOperationsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRolePoolSkusWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -3651,11 +3663,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListOperations", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolSkus", 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.Web/hostingEnvironments/{name}/operations").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -3752,7 +3764,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -3765,7 +3777,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -3785,12 +3797,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get the network endpoints of all outbound dependencies of an App Service
- /// Environment.
+ /// Get usage metrics for a multi-role pool of an App Service Environment.
///
///
- /// Description for Get the network endpoints of all outbound dependencies of
- /// an App Service Environment.
+ /// Description for Get usage metrics for a multi-role pool of an App Service
+ /// Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -3819,7 +3830,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> GetOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRoleUsagesWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -3862,11 +3873,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetOutboundNetworkDependenciesEndpoints", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRoleUsages", 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.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/usages").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -3963,7 +3974,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -3976,7 +3987,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -3996,10 +4007,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Reboot all machines in an App Service Environment.
+ /// List all currently running operations on the App Service Environment.
///
///
- /// Description for Reboot all machines in an App Service Environment.
+ /// Description for List all currently running operations on the App Service
+ /// Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -4016,6 +4028,9 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -4025,7 +4040,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task RebootWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListOperationsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -4068,11 +4083,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Reboot", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListOperations", 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.Web/hostingEnvironments/{name}/reboot").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -4088,7 +4103,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -4139,7 +4154,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202)
+ if ((int)_statusCode != 200)
{
var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -4169,13 +4184,31 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
{
_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);
@@ -4184,35 +4217,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Resume an App Service Environment.
- ///
- ///
- /// Description for Resume an App Service Environment.
- ///
- ///
- /// Name of the resource group to which the resource belongs.
- ///
- ///
- /// Name of the App Service Environment.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>> ResumeWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse> _response = await BeginResumeWithHttpMessagesAsync(resourceGroupName, name, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get all App Service plans in an App Service Environment.
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
///
///
- /// Description for Get all App Service plans in an App Service Environment.
+ /// Description for Get the network endpoints of all outbound dependencies of
+ /// an App Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -4241,7 +4251,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListAppServicePlansWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> GetOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -4284,11 +4294,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListAppServicePlans", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetOutboundNetworkDependenciesEndpoints", 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.Web/hostingEnvironments/{name}/serverfarms").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -4385,7 +4395,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -4398,7 +4408,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -4418,10 +4428,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get all apps in an App Service Environment.
+ /// Gets the list of private endpoints associated with a hosting environment
///
///
- /// Description for Get all apps in an App Service Environment.
+ /// Description for Gets the list of private endpoints associated with a
+ /// hosting environment
///
///
/// Name of the resource group to which the resource belongs.
@@ -4429,9 +4440,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
- ///
- /// Comma separated list of app properties to include.
- ///
///
/// Headers that will be added to request.
///
@@ -4453,7 +4461,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWebAppsWithHttpMessagesAsync(string resourceGroupName, string name, string propertiesToInclude = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> GetPrivateEndpointConnectionListWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -4495,21 +4503,16 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
- tracingParameters.Add("propertiesToInclude", propertiesToInclude);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListWebApps", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetPrivateEndpointConnectionList", 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.Web/hostingEnvironments/{name}/sites").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (propertiesToInclude != null)
- {
- _queryParameters.Add(string.Format("propertiesToInclude={0}", System.Uri.EscapeDataString(propertiesToInclude)));
- }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
@@ -4602,7 +4605,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -4615,7 +4618,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -4635,35 +4638,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Suspend an App Service Environment.
- ///
- ///
- /// Description for Suspend an App Service Environment.
- ///
- ///
- /// Name of the resource group to which the resource belongs.
- ///
- ///
- /// Name of the App Service Environment.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>> SuspendWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse> _response = await BeginSuspendWithHttpMessagesAsync(resourceGroupName, name, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get global usage metrics of an App Service Environment.
+ /// Gets a private endpoint connection
///
///
- /// Description for Get global usage metrics of an App Service Environment.
+ /// Description for Gets a private endpoint connection
///
///
/// Name of the resource group to which the resource belongs.
@@ -4671,11 +4649,8 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
- ///
- /// Return only usages/metrics specified in the filter. Filter conforms to
- /// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
- /// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
- /// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
+ ///
+ /// Name of the private endpoint connection.
///
///
/// Headers that will be added to request.
@@ -4698,7 +4673,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string name, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetPrivateEndpointConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -4723,6 +4698,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
+ if (privateEndpointConnectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName");
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -4740,21 +4719,18 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("name", name);
- tracingParameters.Add("filter", filter);
+ tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListUsages", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetPrivateEndpointConnection", 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.Web/hostingEnvironments/{name}/usages").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{name}", System.Uri.EscapeDataString(name));
+ _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (filter != null)
- {
- _queryParameters.Add(string.Format("$filter={0}", filter));
- }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
@@ -4847,7 +4823,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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"))
@@ -4860,7 +4836,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient 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)
{
@@ -4880,10 +4856,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get all worker pools of an App Service Environment.
+ /// Approves or rejects a private endpoint connection
///
///
- /// Description for Get all worker pools of an App Service Environment.
+ /// Description for Approves or rejects a private endpoint connection
///
///
/// Name of the resource group to which the resource belongs.
@@ -4891,28 +4867,1641 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// Name of the App Service Environment.
///
+ ///
+ ///
+ ///
+ ///
///
- /// Headers that will be added to request.
+ /// 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
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListWorkerPoolsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ApproveOrRejectPrivateEndpointConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginApproveOrRejectPrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes a private endpoint connection
+ ///
+ ///
+ /// Description for Deletes a private endpoint connection
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ ///
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> DeletePrivateEndpointConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse