diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperations.cs
index 729f43e5d247..eeea7fa6ca48 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperations.cs
@@ -52,7 +52,7 @@ internal ApiDiagnosticLoggerOperations(ApiManagementClient client)
public ApiManagementClient Client { get; private set; }
///
- /// Lists all loggers assosiated with the specified Diagnostic of an API.
+ /// Lists all loggers associated with the specified Diagnostic of an API.
///
///
/// The name of the resource group.
@@ -577,7 +577,7 @@ internal ApiDiagnosticLoggerOperations(ApiManagementClient client)
}
///
- /// Attaches a logger to a dignostic for an API.
+ /// Attaches a logger to a diagnostic for an API.
///
///
/// The name of the resource group.
@@ -1126,7 +1126,7 @@ internal ApiDiagnosticLoggerOperations(ApiManagementClient client)
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of an API.
+ /// Lists all loggers associated with the specified Diagnostic of an API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperationsExtensions.cs
index 8794ace44111..55b8fba013be 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiDiagnosticLoggerOperationsExtensions.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public static partial class ApiDiagnosticLoggerOperationsExtensions
{
///
- /// Lists all loggers assosiated with the specified Diagnostic of an API.
+ /// Lists all loggers associated with the specified Diagnostic of an API.
///
///
/// The operations group for this extension method.
@@ -51,7 +51,7 @@ public static partial class ApiDiagnosticLoggerOperationsExtensions
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of an API.
+ /// Lists all loggers associated with the specified Diagnostic of an API.
///
///
/// The operations group for this extension method.
@@ -149,7 +149,7 @@ public static bool CheckEntityExists(this IApiDiagnosticLoggerOperations operati
}
///
- /// Attaches a logger to a dignostic for an API.
+ /// Attaches a logger to a diagnostic for an API.
///
///
/// The operations group for this extension method.
@@ -177,7 +177,7 @@ public static LoggerContract CreateOrUpdate(this IApiDiagnosticLoggerOperations
}
///
- /// Attaches a logger to a dignostic for an API.
+ /// Attaches a logger to a diagnostic for an API.
///
///
/// The operations group for this extension method.
@@ -270,7 +270,7 @@ public static void Delete(this IApiDiagnosticLoggerOperations operations, string
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of an API.
+ /// Lists all loggers associated with the specified Diagnostic of an API.
///
///
/// The operations group for this extension method.
@@ -284,7 +284,7 @@ public static IPage ListByServiceNext(this IApiDiagnosticLoggerO
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of an API.
+ /// Lists all loggers associated with the specified Diagnostic of an API.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperations.cs
index 9f3b5b75acf3..0eada41f6293 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperations.cs
@@ -52,7 +52,7 @@ internal ApiIssueAttachmentOperations(ApiManagementClient client)
public ApiManagementClient Client { get; private set; }
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The name of the resource group.
@@ -1495,7 +1495,7 @@ internal ApiIssueAttachmentOperations(ApiManagementClient client)
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperationsExtensions.cs
index 627bd7b53884..a5a4c71b46f8 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueAttachmentOperationsExtensions.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public static partial class ApiIssueAttachmentOperationsExtensions
{
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -51,7 +51,7 @@ public static partial class ApiIssueAttachmentOperationsExtensions
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -362,7 +362,7 @@ public static void Delete(this IApiIssueAttachmentOperations operations, string
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -376,7 +376,7 @@ public static IPage ListByServiceNext(this IApiIssueAtt
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperations.cs
index 7939f70d3de9..13a3f542b50b 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperations.cs
@@ -52,7 +52,7 @@ internal ApiIssueCommentOperations(ApiManagementClient client)
public ApiManagementClient Client { get; private set; }
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The name of the resource group.
@@ -1494,7 +1494,7 @@ internal ApiIssueCommentOperations(ApiManagementClient client)
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperationsExtensions.cs
index 49423cbc8462..cea4d4278bda 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperationsExtensions.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public static partial class ApiIssueCommentOperationsExtensions
{
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -51,7 +51,7 @@ public static partial class ApiIssueCommentOperationsExtensions
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -360,7 +360,7 @@ public static void Delete(this IApiIssueCommentOperations operations, string res
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -374,7 +374,7 @@ public static IPage ListByServiceNext(this IApiIssueCommen
}
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperations.cs
index f392416b01ad..482c8d07ddd9 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperations.cs
@@ -52,7 +52,7 @@ internal ApiIssueOperations(ApiManagementClient client)
public ApiManagementClient Client { get; private set; }
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The name of the resource group.
@@ -1635,7 +1635,7 @@ internal ApiIssueOperations(ApiManagementClient client)
}
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperationsExtensions.cs
index 0e49b890886e..859b9271919f 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueOperationsExtensions.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public static partial class ApiIssueOperationsExtensions
{
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -47,7 +47,7 @@ public static partial class ApiIssueOperationsExtensions
}
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -395,7 +395,7 @@ public static void Delete(this IApiIssueOperations operations, string resourceGr
}
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The operations group for this extension method.
@@ -409,7 +409,7 @@ public static IPage ListByServiceNext(this IApiIssueOperations op
}
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementClient.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementClient.cs
index 0cc67da379a3..972d8de602c4 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementClient.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementClient.cs
@@ -176,6 +176,11 @@ public partial class ApiManagementClient : ServiceClient, I
///
public virtual IApiManagementOperations ApiManagementOperations { get; private set; }
+ ///
+ /// Gets the IApiManagementServiceSkusOperations.
+ ///
+ public virtual IApiManagementServiceSkusOperations ApiManagementServiceSkus { get; private set; }
+
///
/// Gets the IApiManagementServiceOperations.
///
@@ -632,6 +637,7 @@ private void Initialize()
Backend = new BackendOperations(this);
Certificate = new CertificateOperations(this);
ApiManagementOperations = new ApiManagementOperations(this);
+ ApiManagementServiceSkus = new ApiManagementServiceSkusOperations(this);
ApiManagementService = new ApiManagementServiceOperations(this);
Diagnostic = new DiagnosticOperations(this);
DiagnosticLogger = new DiagnosticLoggerOperations(this);
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementServiceSkusOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementServiceSkusOperations.cs
new file mode 100644
index 000000000000..0d6f14e89e32
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementServiceSkusOperations.cs
@@ -0,0 +1,444 @@
+//
+// 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.ApiManagement
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ApiManagementServiceSkusOperations operations.
+ ///
+ internal partial class ApiManagementServiceSkusOperations : IServiceOperations, IApiManagementServiceSkusOperations
+ {
+ ///
+ /// Initializes a new instance of the ApiManagementServiceSkusOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the ApiManagementClient
+ ///
+ public ApiManagementClient Client { get; private set; }
+
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// 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>> ListAvailableServiceSkusWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (serviceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "serviceName");
+ }
+ if (serviceName != null)
+ {
+ if (serviceName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "serviceName", 50);
+ }
+ if (serviceName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "serviceName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(serviceName, "^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "serviceName", "^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$");
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("serviceName", serviceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListAvailableServiceSkus", 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.ApiManagement/service/{serviceName}/skus").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// 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>> ListAvailableServiceSkusNextWithHttpMessagesAsync(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, "ListAvailableServiceSkusNext", 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 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementServiceSkusOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementServiceSkusOperationsExtensions.cs
new file mode 100644
index 000000000000..fa99f9881391
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiManagementServiceSkusOperationsExtensions.cs
@@ -0,0 +1,111 @@
+//
+// 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.ApiManagement
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for ApiManagementServiceSkusOperations.
+ ///
+ public static partial class ApiManagementServiceSkusOperationsExtensions
+ {
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ public static IPage ListAvailableServiceSkus(this IApiManagementServiceSkusOperations operations, string resourceGroupName, string serviceName)
+ {
+ return operations.ListAvailableServiceSkusAsync(resourceGroupName, serviceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAvailableServiceSkusAsync(this IApiManagementServiceSkusOperations operations, string resourceGroupName, string serviceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListAvailableServiceSkusWithHttpMessagesAsync(resourceGroupName, serviceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListAvailableServiceSkusNext(this IApiManagementServiceSkusOperations operations, string nextPageLink)
+ {
+ return operations.ListAvailableServiceSkusNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAvailableServiceSkusNextAsync(this IApiManagementServiceSkusOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListAvailableServiceSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperations.cs
index edf1e957075f..918ff79c7111 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperations.cs
@@ -52,7 +52,7 @@ internal DiagnosticLoggerOperations(ApiManagementClient client)
public ApiManagementClient Client { get; private set; }
///
- /// Lists all loggers assosiated with the specified Diagnostic of the API
+ /// Lists all loggers associated with the specified Diagnostic of the API
/// Management service instance.
///
///
@@ -528,7 +528,7 @@ internal DiagnosticLoggerOperations(ApiManagementClient client)
}
///
- /// Attaches a logger to a dignostic.
+ /// Attaches a logger to a diagnostic.
///
///
/// The name of the resource group.
@@ -1027,7 +1027,7 @@ internal DiagnosticLoggerOperations(ApiManagementClient client)
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of the API
+ /// Lists all loggers associated with the specified Diagnostic of the API
/// Management service instance.
///
///
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperationsExtensions.cs
index 2aeeac8f21d1..1626d62c05df 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/DiagnosticLoggerOperationsExtensions.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public static partial class DiagnosticLoggerOperationsExtensions
{
///
- /// Lists all loggers assosiated with the specified Diagnostic of the API
+ /// Lists all loggers associated with the specified Diagnostic of the API
/// Management service instance.
///
///
@@ -48,7 +48,7 @@ public static partial class DiagnosticLoggerOperationsExtensions
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of the API
+ /// Lists all loggers associated with the specified Diagnostic of the API
/// Management service instance.
///
///
@@ -135,7 +135,7 @@ public static bool CheckEntityExists(this IDiagnosticLoggerOperations operations
}
///
- /// Attaches a logger to a dignostic.
+ /// Attaches a logger to a diagnostic.
///
///
/// The operations group for this extension method.
@@ -159,7 +159,7 @@ public static LoggerContract CreateOrUpdate(this IDiagnosticLoggerOperations ope
}
///
- /// Attaches a logger to a dignostic.
+ /// Attaches a logger to a diagnostic.
///
///
/// The operations group for this extension method.
@@ -240,7 +240,7 @@ public static void Delete(this IDiagnosticLoggerOperations operations, string re
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of the API
+ /// Lists all loggers associated with the specified Diagnostic of the API
/// Management service instance.
///
///
@@ -255,7 +255,7 @@ public static IPage ListByServiceNext(this IDiagnosticLoggerOper
}
///
- /// Lists all loggers assosiated with the specified Diagnostic of the API
+ /// Lists all loggers associated with the specified Diagnostic of the API
/// Management service instance.
///
///
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiDiagnosticLoggerOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiDiagnosticLoggerOperations.cs
index f564a09fb880..462730ebd498 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiDiagnosticLoggerOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiDiagnosticLoggerOperations.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public partial interface IApiDiagnosticLoggerOperations
{
///
- /// Lists all loggers assosiated with the specified Diagnostic of an
+ /// Lists all loggers associated with the specified Diagnostic of an
/// API.
///
///
@@ -97,7 +97,7 @@ public partial interface IApiDiagnosticLoggerOperations
///
Task> CheckEntityExistsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Attaches a logger to a dignostic for an API.
+ /// Attaches a logger to a diagnostic for an API.
///
///
/// The name of the resource group.
@@ -168,7 +168,7 @@ public partial interface IApiDiagnosticLoggerOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all loggers assosiated with the specified Diagnostic of an
+ /// Lists all loggers associated with the specified Diagnostic of an
/// API.
///
///
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueAttachmentOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueAttachmentOperations.cs
index c05d4c9865ca..263d26c29628 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueAttachmentOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueAttachmentOperations.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public partial interface IApiIssueAttachmentOperations
{
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The name of the resource group.
@@ -219,7 +219,7 @@ public partial interface IApiIssueAttachmentOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueCommentOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueCommentOperations.cs
index 9ae74dcf0518..8934080ecfb9 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueCommentOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueCommentOperations.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public partial interface IApiIssueCommentOperations
{
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The name of the resource group.
@@ -219,7 +219,7 @@ public partial interface IApiIssueCommentOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string issueId, string commentId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all comments for the Issue assosiated with the specified API.
+ /// Lists all comments for the Issue associated with the specified API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueOperations.cs
index 8fd41c5f033b..463027006fd2 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiIssueOperations.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public partial interface IApiIssueOperations
{
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The name of the resource group.
@@ -236,7 +236,7 @@ public partial interface IApiIssueOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string issueId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all issues assosiated with the specified API.
+ /// Lists all issues associated with the specified API.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementClient.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementClient.cs
index f0667b429de4..2efdb50bf1af 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementClient.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementClient.cs
@@ -171,6 +171,11 @@ public partial interface IApiManagementClient : System.IDisposable
///
IApiManagementOperations ApiManagementOperations { get; }
+ ///
+ /// Gets the IApiManagementServiceSkusOperations.
+ ///
+ IApiManagementServiceSkusOperations ApiManagementServiceSkus { get; }
+
///
/// Gets the IApiManagementServiceOperations.
///
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementServiceSkusOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementServiceSkusOperations.cs
new file mode 100644
index 000000000000..8dba60dcca05
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IApiManagementServiceSkusOperations.cs
@@ -0,0 +1,80 @@
+//
+// 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.ApiManagement
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ApiManagementServiceSkusOperations operations.
+ ///
+ public partial interface IApiManagementServiceSkusOperations
+ {
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// 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>> ListAvailableServiceSkusWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets available SKUs for API Management service
+ ///
+ ///
+ /// Gets all available SKU for a given API Management service
+ ///
+ ///
+ /// 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>> ListAvailableServiceSkusNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IDiagnosticLoggerOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IDiagnosticLoggerOperations.cs
index 6a7e3f01f1dc..cb75c3ad603b 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IDiagnosticLoggerOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IDiagnosticLoggerOperations.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public partial interface IDiagnosticLoggerOperations
{
///
- /// Lists all loggers assosiated with the specified Diagnostic of the
+ /// Lists all loggers associated with the specified Diagnostic of the
/// API Management service instance.
///
///
@@ -89,7 +89,7 @@ public partial interface IDiagnosticLoggerOperations
///
Task> CheckEntityExistsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string diagnosticId, string loggerid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Attaches a logger to a dignostic.
+ /// Attaches a logger to a diagnostic.
///
///
/// The name of the resource group.
@@ -152,7 +152,7 @@ public partial interface IDiagnosticLoggerOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string diagnosticId, string loggerid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all loggers assosiated with the specified Diagnostic of the
+ /// Lists all loggers associated with the specified Diagnostic of the
/// API Management service instance.
///
///
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IPropertyOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IPropertyOperations.cs
index d65713643bb9..8e2d74e779c3 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IPropertyOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IPropertyOperations.cs
@@ -176,8 +176,7 @@ public partial interface IPropertyOperations
///
Task UpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string propId, PropertyUpdateParameters parameters, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes specific property from the the API Management service
- /// instance.
+ /// Deletes specific property from the API Management service instance.
///
///
/// The name of the resource group.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IReportsOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IReportsOperations.cs
index 44d90a4e171e..21dcf81ced6e 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IReportsOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/IReportsOperations.cs
@@ -137,7 +137,7 @@ public partial interface IReportsOperations
///
Task>> ListByProductWithHttpMessagesAsync(ODataQuery odataQuery, string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The name of the resource group.
@@ -206,7 +206,7 @@ public partial interface IReportsOperations
/// not be zero. The value should be in ISO 8601 format
/// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be
/// used to convert TimeSpan to a valid interval string:
- /// XmlConvert.ToString(new TimeSpan(hours, minutes, secconds))
+ /// XmlConvert.ToString(new TimeSpan(hours, minutes, seconds))
///
///
/// OData parameters to apply to the operation.
@@ -344,7 +344,7 @@ public partial interface IReportsOperations
///
Task>> ListByProductNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ISubscriptionOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ISubscriptionOperations.cs
index 18fd872af244..d817cf4a0bb8 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ISubscriptionOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ISubscriptionOperations.cs
@@ -153,8 +153,7 @@ public partial interface ISubscriptionOperations
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string sid, SubscriptionCreateParameters parameters, bool? notify = default(bool?), string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates the details of a subscription specificied by its
- /// identifier.
+ /// Updates the details of a subscription specified by its identifier.
///
///
/// The name of the resource group.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ITagDescriptionOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ITagDescriptionOperations.cs
index 0262296a3ed6..17770599276a 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ITagDescriptionOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ITagDescriptionOperations.cs
@@ -126,7 +126,7 @@ public partial interface ITagDescriptionOperations
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Create/Update tag fescription in scope of the Api.
+ /// Create/Update tag description in scope of the Api.
///
///
/// The name of the resource group.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceBaseProperties.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceBaseProperties.cs
index 174deef1fbc1..378c3d017ea5 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceBaseProperties.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceBaseProperties.cs
@@ -83,7 +83,7 @@ public ApiManagementServiceBaseProperties()
/// installed in the API Management service. Max supported certificates
/// that can be installed is 10.
/// The type of VPN in which API
- /// Managemet service needs to be configured in. None (Default Value)
+ /// Management service needs to be configured in. None (Default Value)
/// means the API Management service is not part of any Virtual
/// Network, External means the API Management deployment is set up
/// inside a Virtual Network having an Internet Facing Endpoint, and
@@ -239,7 +239,7 @@ public ApiManagementServiceBaseProperties()
public IList Certificates { get; set; }
///
- /// Gets or sets the type of VPN in which API Managemet service needs
+ /// Gets or sets the type of VPN in which API Management service needs
/// to be configured in. None (Default Value) means the API Management
/// service is not part of any Virtual Network, External means the API
/// Management deployment is set up inside a Virtual Network having an
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceResource.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceResource.cs
index 553683ea6906..cd7fffb2a13a 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceResource.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceResource.cs
@@ -95,7 +95,7 @@ public ApiManagementServiceResource()
/// installed in the API Management service. Max supported certificates
/// that can be installed is 10.
/// The type of VPN in which API
- /// Managemet service needs to be configured in. None (Default Value)
+ /// Management service needs to be configured in. None (Default Value)
/// means the API Management service is not part of any Virtual
/// Network, External means the API Management deployment is set up
/// inside a Virtual Network having an Internet Facing Endpoint, and
@@ -261,7 +261,7 @@ public ApiManagementServiceResource()
public IList Certificates { get; set; }
///
- /// Gets or sets the type of VPN in which API Managemet service needs
+ /// Gets or sets the type of VPN in which API Management service needs
/// to be configured in. None (Default Value) means the API Management
/// service is not part of any Virtual Network, External means the API
/// Management deployment is set up inside a Virtual Network having an
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceUpdateParameters.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceUpdateParameters.cs
index a9733578f98a..fa07a644a0da 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceUpdateParameters.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ApiManagementServiceUpdateParameters.cs
@@ -90,7 +90,7 @@ public ApiManagementServiceUpdateParameters()
/// installed in the API Management service. Max supported certificates
/// that can be installed is 10.
/// The type of VPN in which API
- /// Managemet service needs to be configured in. None (Default Value)
+ /// Management service needs to be configured in. None (Default Value)
/// means the API Management service is not part of any Virtual
/// Network, External means the API Management deployment is set up
/// inside a Virtual Network having an Internet Facing Endpoint, and
@@ -259,7 +259,7 @@ public ApiManagementServiceUpdateParameters()
public IList Certificates { get; set; }
///
- /// Gets or sets the type of VPN in which API Managemet service needs
+ /// Gets or sets the type of VPN in which API Management service needs
/// to be configured in. None (Default Value) means the API Management
/// service is not part of any Virtual Network, External means the API
/// Management deployment is set up inside a Virtual Network having an
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendReconnectContract.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendReconnectContract.cs
index 2e9f531d1fd7..f0421e2790bc 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendReconnectContract.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendReconnectContract.cs
@@ -37,7 +37,7 @@ public BackendReconnectContract()
/// Resource type for API Management
/// resource.
/// Duration in ISO8601 format after which
- /// reconnect will be initiated. Minimum duration of the Reconect is
+ /// reconnect will be initiated. Minimum duration of the Reconnect is
/// PT2M.
public BackendReconnectContract(string id = default(string), string name = default(string), string type = default(string), System.TimeSpan? after = default(System.TimeSpan?))
: base(id, name, type)
@@ -53,7 +53,7 @@ public BackendReconnectContract()
///
/// Gets or sets duration in ISO8601 format after which reconnect will
- /// be initiated. Minimum duration of the Reconect is PT2M.
+ /// be initiated. Minimum duration of the Reconnect is PT2M.
///
[JsonProperty(PropertyName = "properties.after")]
public System.TimeSpan? After { get; set; }
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendServiceFabricClusterProperties.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendServiceFabricClusterProperties.cs
index 2a3825bf4a40..a4180b0d10e9 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendServiceFabricClusterProperties.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/BackendServiceFabricClusterProperties.cs
@@ -39,7 +39,7 @@ public BackendServiceFabricClusterProperties()
/// The cluster management
/// endpoint.
/// Maximum number of
- /// retries while attempting resolve the parition.
+ /// retries while attempting resolve the partition.
/// Thumbprints of
/// certificates cluster management service uses for tls
/// communication
@@ -69,7 +69,7 @@ public BackendServiceFabricClusterProperties()
///
/// Gets or sets maximum number of retries while attempting resolve the
- /// parition.
+ /// partition.
///
[JsonProperty(PropertyName = "maxPartitionResolutionRetries")]
public int? MaxPartitionResolutionRetries { get; set; }
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/CertificateConfiguration.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/CertificateConfiguration.cs
index a0077d19b44f..2c3a20568917 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/CertificateConfiguration.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/CertificateConfiguration.cs
@@ -32,7 +32,7 @@ public CertificateConfiguration()
/// Initializes a new instance of the CertificateConfiguration class.
///
/// The
- /// System.Security.Cryptography.x509certificates.Storename certificate
+ /// System.Security.Cryptography.x509certificates.StoreName certificate
/// store location. Only Root and CertificateAuthority are valid
/// locations. Possible values include: 'CertificateAuthority',
/// 'Root'
@@ -68,7 +68,7 @@ public CertificateConfiguration()
///
/// Gets or sets the
- /// System.Security.Cryptography.x509certificates.Storename certificate
+ /// System.Security.Cryptography.x509certificates.StoreName certificate
/// store location. Only Root and CertificateAuthority are valid
/// locations. Possible values include: 'CertificateAuthority', 'Root'
///
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ReportRecordContract.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ReportRecordContract.cs
index 61827ffbda2d..628c8cbd3fa7 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ReportRecordContract.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ReportRecordContract.cs
@@ -35,7 +35,7 @@ public ReportRecordContract()
/// conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as
/// specified by the ISO 8601 standard.
///
- /// Length of agregation period. Interval must
+ /// Length of aggregation period. Interval must
/// be multiple of 15 minutes and may not be zero. The value should be
/// in ISO 8601 format
/// (http://en.wikipedia.org/wiki/ISO_8601#Durations).
@@ -54,13 +54,13 @@ public ReportRecordContract()
/// API region identifier.
/// Subscription identifier path.
/// /subscriptions/{subscriptionId}
- /// Number of succesful calls. This
+ /// Number of successful calls. This
/// includes calls returning HttpStatusCode <= 301 and
/// HttpStatusCode.NotModified and
/// HttpStatusCode.TemporaryRedirect
/// Number of calls blocked due to
/// invalid credentials. This includes calls returning
- /// HttpStatusCode.Unauthorize and HttpStatusCode.Forbidden and
+ /// HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and
/// HttpStatusCode.TooManyRequests
/// Number of calls failed due to proxy
/// or backend errors. This includes calls returning
@@ -138,7 +138,7 @@ public ReportRecordContract()
public System.DateTime? Timestamp { get; set; }
///
- /// Gets or sets length of agregation period. Interval must be
+ /// Gets or sets length of aggregation period. Interval must be
/// multiple of 15 minutes and may not be zero. The value should be in
/// ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).
///
@@ -202,7 +202,7 @@ public ReportRecordContract()
public string SubscriptionId { get; set; }
///
- /// Gets or sets number of succesful calls. This includes calls
+ /// Gets or sets number of successful calls. This includes calls
/// returning HttpStatusCode <= 301 and
/// HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect
///
@@ -211,7 +211,7 @@ public ReportRecordContract()
///
/// Gets or sets number of calls blocked due to invalid credentials.
- /// This includes calls returning HttpStatusCode.Unauthorize and
+ /// This includes calls returning HttpStatusCode.Unauthorized and
/// HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests
///
[JsonProperty(PropertyName = "callCountBlocked")]
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/RequestReportRecordContract.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/RequestReportRecordContract.cs
index 2c5979ad8872..fdc1464b43b6 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/RequestReportRecordContract.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/RequestReportRecordContract.cs
@@ -56,7 +56,7 @@ public RequestReportRecordContract()
/// generating the response. If the value is none, the cache was not
/// used. If the value is hit, cached response was returned. If the
/// value is miss, the cache was used but lookup resulted in a miss and
- /// request was fullfilled by the backend.
+ /// request was fulfilled by the backend.
/// The total time it took to process this
/// request.
/// he time it took to forward this request
@@ -169,7 +169,7 @@ public RequestReportRecordContract()
/// the response. If the value is none, the cache was not used. If the
/// value is hit, cached response was returned. If the value is miss,
/// the cache was used but lookup resulted in a miss and request was
- /// fullfilled by the backend.
+ /// fulfilled by the backend.
///
[JsonProperty(PropertyName = "cache")]
public string Cache { get; set; }
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSku.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSku.cs
new file mode 100644
index 000000000000..e8e555663592
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSku.cs
@@ -0,0 +1,53 @@
+//
+// 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.ApiManagement.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an available API Management SKU.
+ ///
+ public partial class ResourceSku
+ {
+ ///
+ /// Initializes a new instance of the ResourceSku class.
+ ///
+ public ResourceSku()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceSku class.
+ ///
+ /// Name of the Sku. Possible values include:
+ /// 'Developer', 'Standard', 'Premium', 'Basic'
+ public ResourceSku(string name = default(string))
+ {
+ Name = name;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of the Sku. Possible values include: 'Developer',
+ /// 'Standard', 'Premium', 'Basic'
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuCapacity.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuCapacity.cs
new file mode 100644
index 000000000000..46091df034a3
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuCapacity.cs
@@ -0,0 +1,77 @@
+//
+// 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.ApiManagement.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes scaling information of a SKU.
+ ///
+ public partial class ResourceSkuCapacity
+ {
+ ///
+ /// Initializes a new instance of the ResourceSkuCapacity class.
+ ///
+ public ResourceSkuCapacity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceSkuCapacity class.
+ ///
+ /// The minimum capacity.
+ /// The maximum capacity that can be set.
+ /// The default capacity.
+ /// The scale type applicable to the sku.
+ /// Possible values include: 'automatic', 'manual', 'none'
+ public ResourceSkuCapacity(int? minimum = default(int?), int? maximum = default(int?), int? defaultProperty = default(int?), ResourceSkuCapacityScaleType? scaleType = default(ResourceSkuCapacityScaleType?))
+ {
+ Minimum = minimum;
+ Maximum = maximum;
+ DefaultProperty = defaultProperty;
+ ScaleType = scaleType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the minimum capacity.
+ ///
+ [JsonProperty(PropertyName = "minimum")]
+ public int? Minimum { get; private set; }
+
+ ///
+ /// Gets the maximum capacity that can be set.
+ ///
+ [JsonProperty(PropertyName = "maximum")]
+ public int? Maximum { get; private set; }
+
+ ///
+ /// Gets the default capacity.
+ ///
+ [JsonProperty(PropertyName = "default")]
+ public int? DefaultProperty { get; private set; }
+
+ ///
+ /// Gets the scale type applicable to the sku. Possible values include:
+ /// 'automatic', 'manual', 'none'
+ ///
+ [JsonProperty(PropertyName = "scaleType")]
+ public ResourceSkuCapacityScaleType? ScaleType { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuCapacityScaleType.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuCapacityScaleType.cs
new file mode 100644
index 000000000000..e4cd692d8030
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuCapacityScaleType.cs
@@ -0,0 +1,66 @@
+//
+// 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.ApiManagement.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for ResourceSkuCapacityScaleType.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum ResourceSkuCapacityScaleType
+ {
+ [EnumMember(Value = "automatic")]
+ Automatic,
+ [EnumMember(Value = "manual")]
+ Manual,
+ [EnumMember(Value = "none")]
+ None
+ }
+ internal static class ResourceSkuCapacityScaleTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this ResourceSkuCapacityScaleType? value)
+ {
+ return value == null ? null : ((ResourceSkuCapacityScaleType)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this ResourceSkuCapacityScaleType value)
+ {
+ switch( value )
+ {
+ case ResourceSkuCapacityScaleType.Automatic:
+ return "automatic";
+ case ResourceSkuCapacityScaleType.Manual:
+ return "manual";
+ case ResourceSkuCapacityScaleType.None:
+ return "none";
+ }
+ return null;
+ }
+
+ internal static ResourceSkuCapacityScaleType? ParseResourceSkuCapacityScaleType(this string value)
+ {
+ switch( value )
+ {
+ case "automatic":
+ return ResourceSkuCapacityScaleType.Automatic;
+ case "manual":
+ return ResourceSkuCapacityScaleType.Manual;
+ case "none":
+ return ResourceSkuCapacityScaleType.None;
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuResult.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuResult.cs
new file mode 100644
index 000000000000..a6acc71ec39c
--- /dev/null
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/ResourceSkuResult.cs
@@ -0,0 +1,69 @@
+//
+// 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.ApiManagement.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an available API Management service SKU.
+ ///
+ public partial class ResourceSkuResult
+ {
+ ///
+ /// Initializes a new instance of the ResourceSkuResult class.
+ ///
+ public ResourceSkuResult()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceSkuResult class.
+ ///
+ /// The type of resource the SKU applies
+ /// to.
+ /// Specifies API Management SKU.
+ /// Specifies the number of API Management
+ /// units.
+ public ResourceSkuResult(string resourceType = default(string), ResourceSku sku = default(ResourceSku), ResourceSkuCapacity capacity = default(ResourceSkuCapacity))
+ {
+ ResourceType = resourceType;
+ Sku = sku;
+ Capacity = capacity;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the type of resource the SKU applies to.
+ ///
+ [JsonProperty(PropertyName = "resourceType")]
+ public string ResourceType { get; private set; }
+
+ ///
+ /// Gets specifies API Management SKU.
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public ResourceSku Sku { get; private set; }
+
+ ///
+ /// Gets specifies the number of API Management units.
+ ///
+ [JsonProperty(PropertyName = "capacity")]
+ public ResourceSkuCapacity Capacity { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/SubscriptionCreateParameters.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/SubscriptionCreateParameters.cs
index 2a61102bfec1..a54bd3a4c6a5 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/SubscriptionCreateParameters.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/SubscriptionCreateParameters.cs
@@ -37,7 +37,7 @@ public SubscriptionCreateParameters()
/// User (user id path) for whom subscription is
/// being created in form /users/{uid}
/// Product (product id path) for which
- /// subscription is being created in form /products/{productid}
+ /// subscription is being created in form /products/{productId}
/// Subscription name.
/// Primary subscription key. If not specified
/// during request key will be generated automatically.
@@ -81,7 +81,7 @@ public SubscriptionCreateParameters()
///
/// Gets or sets product (product id path) for which subscription is
- /// being created in form /products/{productid}
+ /// being created in form /products/{productId}
///
[JsonProperty(PropertyName = "properties.productId")]
public string ProductId { get; set; }
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperations.cs
index 30db5e074a8d..21c6a0e54bbe 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperations.cs
@@ -1246,7 +1246,7 @@ internal PropertyOperations(ApiManagementClient client)
}
///
- /// Deletes specific property from the the API Management service instance.
+ /// Deletes specific property from the API Management service instance.
///
///
/// The name of the resource group.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperationsExtensions.cs
index e0e6bdd3781f..87d2026aa96f 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/PropertyOperationsExtensions.cs
@@ -284,7 +284,7 @@ public static void Update(this IPropertyOperations operations, string resourceGr
}
///
- /// Deletes specific property from the the API Management service instance.
+ /// Deletes specific property from the API Management service instance.
///
///
/// The operations group for this extension method.
@@ -309,7 +309,7 @@ public static void Delete(this IPropertyOperations operations, string resourceGr
}
///
- /// Deletes specific property from the the API Management service instance.
+ /// Deletes specific property from the API Management service instance.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperations.cs
index bf977eebe5d6..52d54cea04bf 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperations.cs
@@ -960,7 +960,7 @@ internal ReportsOperations(ApiManagementClient client)
}
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The name of the resource group.
@@ -1419,7 +1419,7 @@ internal ReportsOperations(ApiManagementClient client)
/// zero. The value should be in ISO 8601 format
/// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
/// convert TimeSpan to a valid interval string: XmlConvert.ToString(new
- /// TimeSpan(hours, minutes, secconds))
+ /// TimeSpan(hours, minutes, seconds))
///
///
/// OData parameters to apply to the operation.
@@ -2557,7 +2557,7 @@ internal ReportsOperations(ApiManagementClient client)
}
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperationsExtensions.cs
index 0cd5de90d3fe..6ece64300168 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/ReportsOperationsExtensions.cs
@@ -209,7 +209,7 @@ public static IPage ListByProduct(this IReportsOperations
}
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The operations group for this extension method.
@@ -229,7 +229,7 @@ public static IPage ListByProduct(this IReportsOperations
}
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The operations group for this extension method.
@@ -317,7 +317,7 @@ public static IPage ListByProduct(this IReportsOperations
/// zero. The value should be in ISO 8601 format
/// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
/// convert TimeSpan to a valid interval string: XmlConvert.ToString(new
- /// TimeSpan(hours, minutes, secconds))
+ /// TimeSpan(hours, minutes, seconds))
///
///
/// OData parameters to apply to the operation.
@@ -344,7 +344,7 @@ public static IPage ListByProduct(this IReportsOperations
/// zero. The value should be in ISO 8601 format
/// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
/// convert TimeSpan to a valid interval string: XmlConvert.ToString(new
- /// TimeSpan(hours, minutes, secconds))
+ /// TimeSpan(hours, minutes, seconds))
///
///
/// OData parameters to apply to the operation.
@@ -543,7 +543,7 @@ public static IPage ListByProductNext(this IReportsOperati
}
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The operations group for this extension method.
@@ -557,7 +557,7 @@ public static IPage ListByGeoNext(this IReportsOperations
}
///
- /// Lists report records by GeoGraphy.
+ /// Lists report records by geography.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SdkInfo_ApiManagementClient.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SdkInfo_ApiManagementClient.cs
index 5b019e6ba482..abf3ef2444cc 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SdkInfo_ApiManagementClient.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SdkInfo_ApiManagementClient.cs
@@ -28,6 +28,7 @@ public static IEnumerable> ApiInfo_ApiManagementCl
new Tuple("ApiManagement", "ApiIssueComment", "2018-01-01"),
new Tuple("ApiManagement", "ApiManagementOperations", "2018-01-01"),
new Tuple("ApiManagement", "ApiManagementService", "2018-01-01"),
+ new Tuple("ApiManagement", "ApiManagementServiceSkus", "2018-01-01"),
new Tuple("ApiManagement", "ApiOperation", "2018-01-01"),
new Tuple("ApiManagement", "ApiOperationPolicy", "2018-01-01"),
new Tuple("ApiManagement", "ApiPolicy", "2018-01-01"),
@@ -81,16 +82,5 @@ public static IEnumerable> ApiInfo_ApiManagementCl
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/apimanagement/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\github\\azure-sdk-for-net\\src\\SDKs";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "ab9c6ff77b4f15ee7880c8f860c7e96f8356e80d";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperations.cs
index c55f8ab529dd..91e8244e81a3 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperations.cs
@@ -1018,7 +1018,7 @@ internal SubscriptionOperations(ApiManagementClient client)
}
///
- /// Updates the details of a subscription specificied by its identifier.
+ /// Updates the details of a subscription specified by its identifier.
///
///
/// The name of the resource group.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperationsExtensions.cs
index cff6e3bef0a3..8ec106648b73 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/SubscriptionOperationsExtensions.cs
@@ -243,7 +243,7 @@ public static SubscriptionContract Get(this ISubscriptionOperations operations,
}
///
- /// Updates the details of a subscription specificied by its identifier.
+ /// Updates the details of a subscription specified by its identifier.
///
///
/// The operations group for this extension method.
@@ -278,7 +278,7 @@ public static SubscriptionContract Get(this ISubscriptionOperations operations,
}
///
- /// Updates the details of a subscription specificied by its identifier.
+ /// Updates the details of a subscription specified by its identifier.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperations.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperations.cs
index 510c53254fb0..d04fe8a7c3ac 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperations.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperations.cs
@@ -817,7 +817,7 @@ internal TagDescriptionOperations(ApiManagementClient client)
}
///
- /// Create/Update tag fescription in scope of the Api.
+ /// Create/Update tag description in scope of the Api.
///
///
/// The name of the resource group.
diff --git a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperationsExtensions.cs b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperationsExtensions.cs
index e6ca925539a5..ecd9af14e474 100644
--- a/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperationsExtensions.cs
+++ b/src/SDKs/ApiManagement/Management.ApiManagement/Generated/TagDescriptionOperationsExtensions.cs
@@ -199,7 +199,7 @@ public static TagDescriptionContract Get(this ITagDescriptionOperations operatio
}
///
- /// Create/Update tag fescription in scope of the Api.
+ /// Create/Update tag description in scope of the Api.
///
///
/// The operations group for this extension method.
@@ -232,7 +232,7 @@ public static TagDescriptionContract Get(this ITagDescriptionOperations operatio
}
///
- /// Create/Update tag fescription in scope of the Api.
+ /// Create/Update tag description in scope of the Api.
///
///
/// The operations group for this extension method.