Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal ApiExportOperations(ApiManagementClient client)
/// <param name='format'>
/// Format in which to export the Api Details to the Storage Blob with Sas Key
/// valid for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl',
/// 'Openapi'
/// 'Openapi', 'OpenapiJson'
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static partial class ApiExportOperationsExtensions
/// <param name='format'>
/// Format in which to export the Api Details to the Storage Blob with Sas Key
/// valid for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl',
/// 'Openapi'
/// 'Openapi', 'OpenapiJson'
/// </param>
public static ApiExportResult Get(this IApiExportOperations operations, string resourceGroupName, string serviceName, string apiId, string format)
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public static ApiExportResult Get(this IApiExportOperations operations, string r
/// <param name='format'>
/// Format in which to export the Api Details to the Storage Blob with Sas Key
/// valid for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl',
/// 'Openapi'
/// 'Openapi', 'OpenapiJson'
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ public partial class ApiManagementClient : ServiceClient<ApiManagementClient>, I
public virtual IPolicyOperations Policy { get; private set; }

/// <summary>
/// Gets the IPolicySnippetOperations.
/// Gets the IPolicyDescriptionOperations.
/// </summary>
public virtual IPolicySnippetOperations PolicySnippet { get; private set; }
public virtual IPolicyDescriptionOperations PolicyDescription { get; private set; }

/// <summary>
/// Gets the ISignInSettingsOperations.
Expand Down Expand Up @@ -302,9 +302,9 @@ public partial class ApiManagementClient : ServiceClient<ApiManagementClient>, I
public virtual IProductPolicyOperations ProductPolicy { get; private set; }

/// <summary>
/// Gets the IPropertyOperations.
/// Gets the INamedValueOperations.
/// </summary>
public virtual IPropertyOperations Property { get; private set; }
public virtual INamedValueOperations NamedValue { get; private set; }

/// <summary>
/// Gets the IQuotaByCounterKeysOperations.
Expand Down Expand Up @@ -658,7 +658,7 @@ private void Initialize()
NotificationRecipientEmail = new NotificationRecipientEmailOperations(this);
OpenIdConnectProvider = new OpenIdConnectProviderOperations(this);
Policy = new PolicyOperations(this);
PolicySnippet = new PolicySnippetOperations(this);
PolicyDescription = new PolicyDescriptionOperations(this);
SignInSettings = new SignInSettingsOperations(this);
SignUpSettings = new SignUpSettingsOperations(this);
DelegationSettings = new DelegationSettingsOperations(this);
Expand All @@ -667,7 +667,7 @@ private void Initialize()
ProductGroup = new ProductGroupOperations(this);
ProductSubscriptions = new ProductSubscriptionsOperations(this);
ProductPolicy = new ProductPolicyOperations(this);
Property = new PropertyOperations(this);
NamedValue = new NamedValueOperations(this);
QuotaByCounterKeys = new QuotaByCounterKeysOperations(this);
QuotaByPeriodKeys = new QuotaByPeriodKeysOperations(this);
Region = new RegionOperations(this);
Expand All @@ -684,7 +684,7 @@ private void Initialize()
UserConfirmationPassword = new UserConfirmationPasswordOperations(this);
ApiExport = new ApiExportOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2019-01-01";
ApiVersion = "2019-12-01-preview";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="CloudException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="SerializationException">
Expand Down Expand Up @@ -199,14 +199,13 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, Client.DeserializationSettings);
ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject<ErrorResponse>(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -216,10 +215,6 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient 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);
Expand Down Expand Up @@ -279,7 +274,7 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="CloudException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="SerializationException">
Expand Down Expand Up @@ -375,14 +370,13 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, Client.DeserializationSettings);
ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject<ErrorResponse>(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -392,10 +386,6 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient 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);
Expand Down
Loading