Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR Microsoft.Azure.Management.ApiManagement] ApiManagement - namedValue secrets and createContracts with required properties #422

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 @@ -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