diff --git a/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperations.cs b/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperations.cs
index 26657b689afb..4cb7dbcd57a5 100644
--- a/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperations.cs
+++ b/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperations.cs
@@ -1798,6 +1798,215 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
return _result;
}
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ ///
+ /// 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>> GetInboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+[^\\.]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+[^\\.]$");
+ }
+ }
+ if (name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "name");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2018-02-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("name", name);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ 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}/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));
+ 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 DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ DefaultErrorResponse _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;
+ }
+
///
/// Get global metric definitions of an App Service Environment.
///
@@ -4443,10 +4652,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Reboot all machines in an App Service Environment.
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
///
///
- /// Reboot all machines in an App Service Environment.
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -4460,9 +4671,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// 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
///
@@ -4472,7 +4686,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>> GetOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -4513,11 +4727,11 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
tracingParameters.Add("name", name);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Reboot", 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}/reboot").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));
@@ -4533,7 +4747,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)
@@ -4584,16 +4798,15 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 400 && (int)_statusCode != 404 && (int)_statusCode != 409)
+ if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DefaultErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -4603,10 +4816,6 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -4619,13 +4828,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);
@@ -4634,10 +4861,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Resume an App Service Environment.
+ /// Reboot all machines in an App Service Environment.
///
///
- /// Resume an App Service Environment.
+ /// Reboot all machines in an App Service Environment.
///
///
/// Name of the resource group to which the resource belongs.
@@ -4646,16 +4873,207 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
/// Name of the App Service Environment.
///
///
- /// The headers that will be added to request.
+ /// 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);
+ ///
+ /// 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 RebootWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+[^\\.]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+[^\\.]$");
+ }
+ }
+ if (name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "name");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2018-02-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("name", name);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Reboot", 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();
+ _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 (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("POST");
+ _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 != 400 && (int)_statusCode != 404 && (int)_statusCode != 409)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ 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;
+ }
+
+ ///
+ /// Resume an App Service Environment.
+ ///
+ ///
+ /// 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);
}
///
@@ -9563,10 +9981,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get global metrics of an App Service Environment.
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
///
///
- /// Get global metrics of an App Service Environment.
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -9592,7 +10012,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMetricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> GetInboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -9607,7 +10027,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMetricsNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetInboundNetworkDependenciesEndpointsNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -9701,7 +10121,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"))
@@ -9714,7 +10134,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)
{
@@ -9734,10 +10154,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get all multi-role pools.
+ /// Get global metrics of an App Service Environment.
///
///
- /// Get all multi-role pools.
+ /// Get global metrics of an App Service Environment.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -9763,7 +10183,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRolePoolsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMetricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -9778,7 +10198,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolsNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMetricsNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -9872,7 +10292,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"))
@@ -9885,7 +10305,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)
{
@@ -9905,12 +10325,10 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get metric definitions for a specific instance of a multi-role pool of an
- /// App Service Environment.
+ /// Get all multi-role pools.
///
///
- /// Get metric definitions for a specific instance of a multi-role pool of an
- /// App Service Environment.
+ /// Get all multi-role pools.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -9936,7 +10354,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRolePoolInstanceMetricDefinitionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRolePoolsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -9951,7 +10369,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolInstanceMetricDefinitionsNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolsNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -10045,7 +10463,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"))
@@ -10058,7 +10476,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)
{
@@ -10078,12 +10496,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get metrics for a specific instance of a multi-role pool of an App Service
- /// Environment.
+ /// Get metric definitions for a specific instance of a multi-role pool of an
+ /// App Service Environment.
///
///
- /// Get metrics for a specific instance of a multi-role pool of an App Service
- /// Environment.
+ /// Get metric definitions for a specific instance of a multi-role pool of an
+ /// App Service Environment.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -10109,7 +10527,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRolePoolInstanceMetricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRolePoolInstanceMetricDefinitionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -10124,7 +10542,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolInstanceMetricsNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolInstanceMetricDefinitionsNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -10218,7 +10636,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"))
@@ -10231,7 +10649,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)
{
@@ -10251,10 +10669,12 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
}
///
- /// Get metric definitions for a multi-role pool of an App Service Environment.
+ /// Get metrics for a specific instance of a multi-role pool of an App Service
+ /// Environment.
///
///
- /// Get metric definitions for a multi-role pool of an App Service Environment.
+ /// Get metrics for a specific instance of a multi-role pool of an App Service
+ /// Environment.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -10280,7 +10700,7 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListMultiRoleMetricDefinitionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListMultiRolePoolInstanceMetricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -10295,7 +10715,178 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListMultiRoleMetricDefinitionsNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListMultiRolePoolInstanceMetricsNext", 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 DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ DefaultErrorResponse _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;
+ }
+
+ ///
+ /// Get metric definitions for a multi-role pool of an App Service Environment.
+ ///
+ ///
+ /// Get metric definitions for a multi-role pool of an App Service Environment.
+ ///
+ ///
+ /// 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>> ListMultiRoleMetricDefinitionsNextWithHttpMessagesAsync(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, "ListMultiRoleMetricDefinitionsNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -10934,6 +11525,179 @@ internal AppServiceEnvironmentsOperations(WebSiteManagementClient client)
return _result;
}
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// 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>> GetOutboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(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, "GetOutboundNetworkDependenciesEndpointsNext", 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 DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ DefaultErrorResponse _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;
+ }
+
///
/// Resume an App Service Environment.
///
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperationsExtensions.cs b/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperationsExtensions.cs
index 0a6b7afb570a..f2976f0aaf03 100644
--- a/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperationsExtensions.cs
+++ b/src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperationsExtensions.cs
@@ -546,6 +546,56 @@ public static HostingEnvironmentDiagnostics GetDiagnosticsItem(this IAppServiceE
}
}
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ public static IPage GetInboundNetworkDependenciesEndpoints(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
+ {
+ return operations.GetInboundNetworkDependenciesEndpointsAsync(resourceGroupName, name).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> GetInboundNetworkDependenciesEndpointsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetInboundNetworkDependenciesEndpointsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Get global metric definitions of an App Service Environment.
///
@@ -1242,6 +1292,56 @@ public static IList ListOperations(this IAppServiceEnvironmentsOperat
}
}
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ public static IPage GetOutboundNetworkDependenciesEndpoints(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
+ {
+ return operations.GetOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, name).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group to which the resource belongs.
+ ///
+ ///
+ /// Name of the App Service Environment.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> GetOutboundNetworkDependenciesEndpointsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Reboot all machines in an App Service Environment.
///
@@ -2646,6 +2746,50 @@ public static IPage ChangeVnetNext(this IAppServiceEnvironmentsOperations
}
}
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage GetInboundNetworkDependenciesEndpointsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
+ {
+ return operations.GetInboundNetworkDependenciesEndpointsNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> GetInboundNetworkDependenciesEndpointsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetInboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Get global metrics of an App Service Environment.
///
@@ -2974,6 +3118,50 @@ public static IPage ListMultiRoleUsagesNext(this IAppServiceEnvironmentsO
}
}
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage GetOutboundNetworkDependenciesEndpointsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
+ {
+ return operations.GetOutboundNetworkDependenciesEndpointsNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App Service
+ /// Environment.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> GetOutboundNetworkDependenciesEndpointsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetOutboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Resume an App Service Environment.
///
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/AppServicePlansOperations.cs b/src/SDKs/WebSites/Management.Websites/Generated/AppServicePlansOperations.cs
index 5d385114a4e1..0f4a91b6abe8 100644
--- a/src/SDKs/WebSites/Management.Websites/Generated/AppServicePlansOperations.cs
+++ b/src/SDKs/WebSites/Management.Websites/Generated/AppServicePlansOperations.cs
@@ -6311,7 +6311,7 @@ internal AppServicePlansOperations(WebSiteManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -6367,6 +6367,24 @@ internal AppServicePlansOperations(WebSiteManagementClient client)
}
}
// 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);
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/IAppServiceEnvironmentsOperations.cs b/src/SDKs/WebSites/Management.Websites/Generated/IAppServiceEnvironmentsOperations.cs
index ebb19558bc0d..0caebf71d17b 100644
--- a/src/SDKs/WebSites/Management.Websites/Generated/IAppServiceEnvironmentsOperations.cs
+++ b/src/SDKs/WebSites/Management.Websites/Generated/IAppServiceEnvironmentsOperations.cs
@@ -339,6 +339,36 @@ public partial interface IAppServiceEnvironmentsOperations
///
Task> GetDiagnosticsItemWithHttpMessagesAsync(string resourceGroupName, string name, string diagnosticsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Get the network endpoints of all inbound dependencies of an App
+ /// Service Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of 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.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> GetInboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Get global metric definitions of an App Service Environment.
///
///
@@ -760,6 +790,36 @@ public partial interface IAppServiceEnvironmentsOperations
///
Task>> ListOperationsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Get the network endpoints of all outbound dependencies of an App
+ /// Service Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of 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.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> GetOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Reboot all machines in an App Service Environment.
///
///
@@ -1599,6 +1659,33 @@ public partial interface IAppServiceEnvironmentsOperations
///
Task>> ChangeVnetNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Get the network endpoints of all inbound dependencies of an App
+ /// Service Environment.
+ ///
+ ///
+ /// Get the network endpoints of all inbound dependencies of an App
+ /// Service Environment.
+ ///
+ ///
+ /// 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>> GetInboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Get global metrics of an App Service Environment.
///
///
@@ -1807,6 +1894,33 @@ public partial interface IAppServiceEnvironmentsOperations
///
Task>> ListMultiRoleUsagesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Get the network endpoints of all outbound dependencies of an App
+ /// Service Environment.
+ ///
+ ///
+ /// Get the network endpoints of all outbound dependencies of an App
+ /// Service Environment.
+ ///
+ ///
+ /// 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>> GetOutboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Resume an App Service Environment.
///
///
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/EndpointDependency.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/EndpointDependency.cs
new file mode 100644
index 000000000000..a5cdde253b60
--- /dev/null
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/EndpointDependency.cs
@@ -0,0 +1,64 @@
+//
+// 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.WebSites.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A domain name that a service is reached at, including details of the
+ /// current connection status.
+ ///
+ public partial class EndpointDependency
+ {
+ ///
+ /// Initializes a new instance of the EndpointDependency class.
+ ///
+ public EndpointDependency()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the EndpointDependency class.
+ ///
+ /// The domain name of the dependency.
+ /// The IP Addresses and Ports used when
+ /// connecting to DomainName.
+ public EndpointDependency(string domainName = default(string), IList endpointDetails = default(IList))
+ {
+ DomainName = domainName;
+ EndpointDetails = endpointDetails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the domain name of the dependency.
+ ///
+ [JsonProperty(PropertyName = "domainName")]
+ public string DomainName { get; set; }
+
+ ///
+ /// Gets or sets the IP Addresses and Ports used when connecting to
+ /// DomainName.
+ ///
+ [JsonProperty(PropertyName = "endpointDetails")]
+ public IList EndpointDetails { get; set; }
+
+ }
+}
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/EndpointDetail.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/EndpointDetail.cs
new file mode 100644
index 000000000000..61bf5f745834
--- /dev/null
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/EndpointDetail.cs
@@ -0,0 +1,84 @@
+//
+// 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.WebSites.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Current TCP connectivity information from the App Service Environment
+ /// to a single endpoint.
+ ///
+ public partial class EndpointDetail
+ {
+ ///
+ /// Initializes a new instance of the EndpointDetail class.
+ ///
+ public EndpointDetail()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the EndpointDetail class.
+ ///
+ /// An IP Address that Domain Name currently
+ /// resolves to.
+ /// The port an endpoint is connected to.
+ /// The time in milliseconds it takes for a TCP
+ /// connection to be created from the App Service Environment to this
+ /// IpAddress at this Port.
+ /// Whether it is possible to create a TCP
+ /// connection from the App Service Environment to this IpAddress at
+ /// this Port.
+ public EndpointDetail(string ipAddress = default(string), int? port = default(int?), double? latency = default(double?), bool? isAccessable = default(bool?))
+ {
+ IpAddress = ipAddress;
+ Port = port;
+ Latency = latency;
+ IsAccessable = isAccessable;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets an IP Address that Domain Name currently resolves to.
+ ///
+ [JsonProperty(PropertyName = "ipAddress")]
+ public string IpAddress { get; set; }
+
+ ///
+ /// Gets or sets the port an endpoint is connected to.
+ ///
+ [JsonProperty(PropertyName = "port")]
+ public int? Port { get; set; }
+
+ ///
+ /// Gets or sets the time in milliseconds it takes for a TCP connection
+ /// to be created from the App Service Environment to this IpAddress at
+ /// this Port.
+ ///
+ [JsonProperty(PropertyName = "latency")]
+ public double? Latency { get; set; }
+
+ ///
+ /// Gets or sets whether it is possible to create a TCP connection from
+ /// the App Service Environment to this IpAddress at this Port.
+ ///
+ [JsonProperty(PropertyName = "isAccessable")]
+ public bool? IsAccessable { get; set; }
+
+ }
+}
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/InboundEnvironmentEndpoint.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/InboundEnvironmentEndpoint.cs
new file mode 100644
index 000000000000..ca1a6a2421a7
--- /dev/null
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/InboundEnvironmentEndpoint.cs
@@ -0,0 +1,76 @@
+//
+// 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.WebSites.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The IP Addresses and Ports that require inbound network access to and
+ /// within the subnet of the App Service Environment.
+ ///
+ public partial class InboundEnvironmentEndpoint
+ {
+ ///
+ /// Initializes a new instance of the InboundEnvironmentEndpoint class.
+ ///
+ public InboundEnvironmentEndpoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the InboundEnvironmentEndpoint class.
+ ///
+ /// Short text describing the purpose of the
+ /// network traffic.
+ /// The IP addresses that network traffic will
+ /// originate from in cidr notation.
+ /// The ports that network traffic will arrive to
+ /// the App Service Environment at.
+ public InboundEnvironmentEndpoint(string description = default(string), IList endpoints = default(IList), IList ports = default(IList))
+ {
+ Description = description;
+ Endpoints = endpoints;
+ Ports = ports;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets short text describing the purpose of the network
+ /// traffic.
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or sets the IP addresses that network traffic will originate
+ /// from in cidr notation.
+ ///
+ [JsonProperty(PropertyName = "endpoints")]
+ public IList Endpoints { get; set; }
+
+ ///
+ /// Gets or sets the ports that network traffic will arrive to the App
+ /// Service Environment at.
+ ///
+ [JsonProperty(PropertyName = "ports")]
+ public IList Ports { get; set; }
+
+ }
+}
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentity.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentity.cs
index acc3b995c169..52912d503aa3 100644
--- a/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentity.cs
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentity.cs
@@ -32,18 +32,21 @@ public ManagedServiceIdentity()
/// Initializes a new instance of the ManagedServiceIdentity class.
///
/// Type of managed service identity. Possible
- /// values include: 'SystemAssigned', 'UserAssigned'
+ /// values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
+ /// UserAssigned', 'None'
/// Tenant of managed service identity.
/// Principal Id of managed service
/// identity.
- /// Array of UserAssigned managed service
- /// identities.
- public ManagedServiceIdentity(string type = default(string), string tenantId = default(string), string principalId = default(string), IList identityIds = default(IList))
+ /// The list of user assigned
+ /// identities associated with the resource. The user identity
+ /// dictionary key references will be ARM resource ids in the form:
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
+ public ManagedServiceIdentity(string type = default(string), string tenantId = default(string), string principalId = default(string), IDictionary userAssignedIdentities = default(IDictionary))
{
Type = type;
TenantId = tenantId;
PrincipalId = principalId;
- IdentityIds = identityIds;
+ UserAssignedIdentities = userAssignedIdentities;
CustomInit();
}
@@ -54,7 +57,8 @@ public ManagedServiceIdentity()
///
/// Gets or sets type of managed service identity. Possible values
- /// include: 'SystemAssigned', 'UserAssigned'
+ /// include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
+ /// UserAssigned', 'None'
///
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
@@ -72,10 +76,13 @@ public ManagedServiceIdentity()
public string PrincipalId { get; private set; }
///
- /// Gets or sets array of UserAssigned managed service identities.
+ /// Gets or sets the list of user assigned identities associated with
+ /// the resource. The user identity dictionary key references will be
+ /// ARM resource ids in the form:
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
///
- [JsonProperty(PropertyName = "identityIds")]
- public IList IdentityIds { get; set; }
+ [JsonProperty(PropertyName = "userAssignedIdentities")]
+ public IDictionary UserAssignedIdentities { get; set; }
}
}
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityType.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityType.cs
index d14299d6fb32..9b9dc03e5efb 100644
--- a/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityType.cs
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityType.cs
@@ -18,5 +18,7 @@ public static class ManagedServiceIdentityType
{
public const string SystemAssigned = "SystemAssigned";
public const string UserAssigned = "UserAssigned";
+ public const string SystemAssignedUserAssigned = "SystemAssigned, UserAssigned";
+ public const string None = "None";
}
}
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityUserAssignedIdentitiesValue.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityUserAssignedIdentitiesValue.cs
new file mode 100644
index 000000000000..d8ba6054a611
--- /dev/null
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/ManagedServiceIdentityUserAssignedIdentitiesValue.cs
@@ -0,0 +1,59 @@
+//
+// 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.WebSites.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ public partial class ManagedServiceIdentityUserAssignedIdentitiesValue
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedServiceIdentityUserAssignedIdentitiesValue class.
+ ///
+ public ManagedServiceIdentityUserAssignedIdentitiesValue()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedServiceIdentityUserAssignedIdentitiesValue class.
+ ///
+ /// Principal Id of user assigned
+ /// identity
+ /// Client Id of user assigned identity
+ public ManagedServiceIdentityUserAssignedIdentitiesValue(string principalId = default(string), string clientId = default(string))
+ {
+ PrincipalId = principalId;
+ ClientId = clientId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets principal Id of user assigned identity
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId { get; private set; }
+
+ ///
+ /// Gets client Id of user assigned identity
+ ///
+ [JsonProperty(PropertyName = "clientId")]
+ public string ClientId { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/WebSites/Management.Websites/Generated/Models/OutboundEnvironmentEndpoint.cs b/src/SDKs/WebSites/Management.Websites/Generated/Models/OutboundEnvironmentEndpoint.cs
new file mode 100644
index 000000000000..c7de2355e83d
--- /dev/null
+++ b/src/SDKs/WebSites/Management.Websites/Generated/Models/OutboundEnvironmentEndpoint.cs
@@ -0,0 +1,70 @@
+//
+// 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.WebSites.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Endpoints accessed for a common purpose that the App Service
+ /// Environment requires outbound network access to.
+ ///
+ public partial class OutboundEnvironmentEndpoint
+ {
+ ///
+ /// Initializes a new instance of the OutboundEnvironmentEndpoint
+ /// class.
+ ///
+ public OutboundEnvironmentEndpoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the OutboundEnvironmentEndpoint
+ /// class.
+ ///
+ /// The type of service accessed by the App
+ /// Service Environment, e.g., Azure Storage, Azure SQL Database, and
+ /// Azure Active Directory.
+ /// The endpoints that the App Service
+ /// Environment reaches the service at.
+ public OutboundEnvironmentEndpoint(string category = default(string), IList endpoints = default(IList))
+ {
+ Category = category;
+ Endpoints = endpoints;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the type of service accessed by the App Service
+ /// Environment, e.g., Azure Storage, Azure SQL Database, and Azure
+ /// Active Directory.
+ ///
+ [JsonProperty(PropertyName = "category")]
+ public string Category { get; set; }
+
+ ///
+ /// Gets or sets the endpoints that the App Service Environment reaches
+ /// the service at.
+ ///
+ [JsonProperty(PropertyName = "endpoints")]
+ public IList Endpoints { get; set; }
+
+ }
+}