diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperations.cs
index 6f0f1c957d3d..2d7f92833e35 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperations.cs
@@ -68,7 +68,7 @@ internal ApiExportOperations(ApiManagementClient client)
///
/// 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'
///
///
/// Headers that will be added to request.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperationsExtensions.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperationsExtensions.cs
index d6c390ba468c..1408a8bbc387 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperationsExtensions.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiExportOperationsExtensions.cs
@@ -42,7 +42,7 @@ public static partial class ApiExportOperationsExtensions
///
/// 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'
///
public static ApiExportResult Get(this IApiExportOperations operations, string resourceGroupName, string serviceName, string apiId, string format)
{
@@ -70,7 +70,7 @@ public static ApiExportResult Get(this IApiExportOperations operations, string r
///
/// 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'
///
///
/// The cancellation token.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementClient.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementClient.cs
index f359a120a5cd..7499f372ca8e 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementClient.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementClient.cs
@@ -257,9 +257,9 @@ public partial class ApiManagementClient : ServiceClient, I
public virtual IPolicyOperations Policy { get; private set; }
///
- /// Gets the IPolicySnippetOperations.
+ /// Gets the IPolicyDescriptionOperations.
///
- public virtual IPolicySnippetOperations PolicySnippet { get; private set; }
+ public virtual IPolicyDescriptionOperations PolicyDescription { get; private set; }
///
/// Gets the ISignInSettingsOperations.
@@ -302,9 +302,9 @@ public partial class ApiManagementClient : ServiceClient, I
public virtual IProductPolicyOperations ProductPolicy { get; private set; }
///
- /// Gets the IPropertyOperations.
+ /// Gets the INamedValueOperations.
///
- public virtual IPropertyOperations Property { get; private set; }
+ public virtual INamedValueOperations NamedValue { get; private set; }
///
/// Gets the IQuotaByCounterKeysOperations.
@@ -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);
@@ -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);
@@ -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;
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceOperations.cs
index 0f2243752094..2434d5cfd4df 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceOperations.cs
@@ -171,7 +171,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -302,14 +302,13 @@ internal ApiManagementServiceOperations(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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -319,10 +318,6 @@ internal ApiManagementServiceOperations(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);
@@ -401,7 +396,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -511,14 +506,13 @@ internal ApiManagementServiceOperations(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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -528,10 +522,6 @@ internal ApiManagementServiceOperations(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);
@@ -770,7 +760,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -901,14 +891,13 @@ internal ApiManagementServiceOperations(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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -918,10 +907,6 @@ internal ApiManagementServiceOperations(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);
@@ -979,7 +964,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1098,14 +1083,13 @@ internal ApiManagementServiceOperations(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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1115,10 +1099,6 @@ internal ApiManagementServiceOperations(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);
@@ -1213,7 +1193,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1359,14 +1339,13 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
- 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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1376,10 +1355,6 @@ internal ApiManagementServiceOperations(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);
@@ -1444,7 +1419,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1590,14 +1565,13 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
- 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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1607,10 +1581,6 @@ internal ApiManagementServiceOperations(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);
@@ -1674,7 +1644,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1820,14 +1790,13 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
- 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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1837,10 +1806,6 @@ internal ApiManagementServiceOperations(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);
@@ -1921,7 +1886,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -2063,14 +2028,13 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
- 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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -2080,10 +2044,6 @@ internal ApiManagementServiceOperations(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);
@@ -2143,7 +2103,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -2274,14 +2234,13 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
- 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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -2291,10 +2250,6 @@ internal ApiManagementServiceOperations(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);
@@ -2361,7 +2316,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -2499,14 +2454,13 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
- 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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -2516,10 +2470,6 @@ internal ApiManagementServiceOperations(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);
@@ -2576,7 +2526,7 @@ internal ApiManagementServiceOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -2672,14 +2622,13 @@ internal ApiManagementServiceOperations(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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -2689,10 +2638,6 @@ internal ApiManagementServiceOperations(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);
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceSkusOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceSkusOperations.cs
index 0d6f14e89e32..9d697c4b8548 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceSkusOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiManagementServiceSkusOperations.cs
@@ -68,7 +68,7 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -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);
@@ -279,7 +274,7 @@ internal ApiManagementServiceSkusOperations(ApiManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -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(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -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);
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperations.cs
index 6abac6404a96..9cae2fce25d1 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperations.cs
@@ -864,6 +864,45 @@ internal ApiSchemaOperations(ApiManagementClient client)
/// updating an entity.
///
///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, schemaId, parameters, ifMatch, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the schema configuration at the Api.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// API revision identifier. Must be unique in the current API Management
+ /// service instance. Non-current revision has ;rev=n as a suffix where n is
+ /// the revision number.
+ ///
+ ///
+ /// Schema identifier within an API. Must be unique in the current API
+ /// Management service instance.
+ ///
+ ///
+ /// ETag of the Entity. ETag should match the current entity state from the
+ /// header response of the GET request or it should be * for unconditional
+ /// update.
+ ///
+ ///
+ /// If true removes all references to the schema before deleting it.
+ ///
+ ///
/// Headers that will be added to request.
///
///
@@ -872,9 +911,6 @@ internal ApiSchemaOperations(ApiManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -884,7 +920,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaCreateOrUpdateContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, string ifMatch, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -947,13 +983,9 @@ internal ApiSchemaOperations(ApiManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "schemaId", "^[^*#&+:<>?]+$");
}
}
- if (parameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
- }
- if (parameters != null)
+ if (ifMatch == null)
{
- parameters.Validate();
+ throw new ValidationException(ValidationRules.CannotBeNull, "ifMatch");
}
if (Client.ApiVersion == null)
{
@@ -974,10 +1006,10 @@ internal ApiSchemaOperations(ApiManagementClient client)
tracingParameters.Add("serviceName", serviceName);
tracingParameters.Add("apiId", apiId);
tracingParameters.Add("schemaId", schemaId);
- tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("force", force);
tracingParameters.Add("ifMatch", ifMatch);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -988,6 +1020,10 @@ internal ApiSchemaOperations(ApiManagementClient client)
_url = _url.Replace("{schemaId}", System.Uri.EscapeDataString(schemaId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (force != null)
+ {
+ _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(force, Client.SerializationSettings).Trim('"'))));
+ }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
@@ -999,7 +1035,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.Method = new HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1038,12 +1074,6 @@ internal ApiSchemaOperations(ApiManagementClient client)
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1064,7 +1094,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201)
+ if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1094,62 +1124,13 @@ internal ApiSchemaOperations(ApiManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- try
- {
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -1158,7 +1139,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
}
///
- /// Deletes the schema configuration at the Api.
+ /// Creates or updates schema configuration for the API.
///
///
/// The name of the resource group.
@@ -1175,13 +1156,12 @@ internal ApiSchemaOperations(ApiManagementClient client)
/// Schema identifier within an API. Must be unique in the current API
/// Management service instance.
///
- ///
- /// ETag of the Entity. ETag should match the current entity state from the
- /// header response of the GET request or it should be * for unconditional
- /// update.
+ ///
+ /// The schema contents to apply.
///
- ///
- /// If true removes all references to the schema before deleting it.
+ ///
+ /// ETag of the Entity. Not required when creating an entity, but required when
+ /// updating an entity.
///
///
/// Headers that will be added to request.
@@ -1192,6 +1172,9 @@ internal ApiSchemaOperations(ApiManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -1201,7 +1184,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, string ifMatch, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1264,9 +1247,13 @@ internal ApiSchemaOperations(ApiManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "schemaId", "^[^*#&+:<>?]+$");
}
}
- if (ifMatch == null)
+ if (parameters == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "ifMatch");
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
}
if (Client.ApiVersion == null)
{
@@ -1287,10 +1274,10 @@ internal ApiSchemaOperations(ApiManagementClient client)
tracingParameters.Add("serviceName", serviceName);
tracingParameters.Add("apiId", apiId);
tracingParameters.Add("schemaId", schemaId);
- tracingParameters.Add("force", force);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("ifMatch", ifMatch);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -1301,10 +1288,6 @@ internal ApiSchemaOperations(ApiManagementClient client)
_url = _url.Replace("{schemaId}", System.Uri.EscapeDataString(schemaId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (force != null)
- {
- _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(force, Client.SerializationSettings).Trim('"'))));
- }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
@@ -1316,7 +1299,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1355,6 +1338,12 @@ internal ApiSchemaOperations(ApiManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1375,7 +1364,7 @@ internal ApiSchemaOperations(ApiManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1405,13 +1394,62 @@ internal ApiSchemaOperations(ApiManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperationsExtensions.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperationsExtensions.cs
index 0636ec44f3ff..6bbea3e1cb31 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperationsExtensions.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiSchemaOperationsExtensions.cs
@@ -243,7 +243,7 @@ public static SchemaContract Get(this IApiSchemaOperations operations, string re
/// ETag of the Entity. Not required when creating an entity, but required when
/// updating an entity.
///
- public static SchemaContract CreateOrUpdate(this IApiSchemaOperations operations, string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaCreateOrUpdateContract parameters, string ifMatch = default(string))
+ public static SchemaContract CreateOrUpdate(this IApiSchemaOperations operations, string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string))
{
return operations.CreateOrUpdateAsync(resourceGroupName, serviceName, apiId, schemaId, parameters, ifMatch).GetAwaiter().GetResult();
}
@@ -279,7 +279,7 @@ public static SchemaContract Get(this IApiSchemaOperations operations, string re
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IApiSchemaOperations operations, string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaCreateOrUpdateContract parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this IApiSchemaOperations operations, string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, schemaId, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
{
@@ -358,6 +358,78 @@ public static SchemaContract Get(this IApiSchemaOperations operations, string re
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, schemaId, ifMatch, force, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Creates or updates schema configuration for the API.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// API revision identifier. Must be unique in the current API Management
+ /// service instance. Non-current revision has ;rev=n as a suffix where n is
+ /// the revision number.
+ ///
+ ///
+ /// Schema identifier within an API. Must be unique in the current API
+ /// Management service instance.
+ ///
+ ///
+ /// The schema contents to apply.
+ ///
+ ///
+ /// ETag of the Entity. Not required when creating an entity, but required when
+ /// updating an entity.
+ ///
+ public static SchemaContract BeginCreateOrUpdate(this IApiSchemaOperations operations, string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string))
+ {
+ return operations.BeginCreateOrUpdateAsync(resourceGroupName, serviceName, apiId, schemaId, parameters, ifMatch).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates or updates schema configuration for the API.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// API revision identifier. Must be unique in the current API Management
+ /// service instance. Non-current revision has ;rev=n as a suffix where n is
+ /// the revision number.
+ ///
+ ///
+ /// Schema identifier within an API. Must be unique in the current API
+ /// Management service instance.
+ ///
+ ///
+ /// The schema contents to apply.
+ ///
+ ///
+ /// ETag of the Entity. Not required when creating an entity, but required when
+ /// updating an entity.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginCreateOrUpdateAsync(this IApiSchemaOperations operations, string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, schemaId, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Get the schema configuration at the API level.
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperations.cs
index fae11a014ff3..74c35d5e26e6 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperations.cs
@@ -311,9 +311,9 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// Headers that will be added to request.
@@ -333,7 +333,7 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -377,23 +377,23 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "apiId", "^[^*#&+:<>?]+$");
}
}
- if (tagId == null)
+ if (tagDescriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "tagId");
+ throw new ValidationException(ValidationRules.CannotBeNull, "tagDescriptionId");
}
- if (tagId != null)
+ if (tagDescriptionId != null)
{
- if (tagId.Length > 80)
+ if (tagDescriptionId.Length > 80)
{
- throw new ValidationException(ValidationRules.MaxLength, "tagId", 80);
+ throw new ValidationException(ValidationRules.MaxLength, "tagDescriptionId", 80);
}
- if (tagId.Length < 1)
+ if (tagDescriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "tagId", 1);
+ throw new ValidationException(ValidationRules.MinLength, "tagDescriptionId", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(tagId, "^[^*#&+:<>?]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(tagDescriptionId, "^[^*#&+:<>?]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "tagId", "^[^*#&+:<>?]+$");
+ throw new ValidationException(ValidationRules.Pattern, "tagDescriptionId", "^[^*#&+:<>?]+$");
}
}
if (Client.ApiVersion == null)
@@ -414,17 +414,17 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serviceName", serviceName);
tracingParameters.Add("apiId", apiId);
- tracingParameters.Add("tagId", tagId);
+ tracingParameters.Add("tagDescriptionId", tagDescriptionId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetEntityTag", 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}/apis/{apiId}/tagDescriptions/{tagId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
_url = _url.Replace("{apiId}", System.Uri.EscapeDataString(apiId));
- _url = _url.Replace("{tagId}", System.Uri.EscapeDataString(tagId));
+ _url = _url.Replace("{tagDescriptionId}", System.Uri.EscapeDataString(tagDescriptionId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -560,9 +560,9 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// Headers that will be added to request.
@@ -585,7 +585,7 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -629,23 +629,23 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "apiId", "^[^*#&+:<>?]+$");
}
}
- if (tagId == null)
+ if (tagDescriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "tagId");
+ throw new ValidationException(ValidationRules.CannotBeNull, "tagDescriptionId");
}
- if (tagId != null)
+ if (tagDescriptionId != null)
{
- if (tagId.Length > 80)
+ if (tagDescriptionId.Length > 80)
{
- throw new ValidationException(ValidationRules.MaxLength, "tagId", 80);
+ throw new ValidationException(ValidationRules.MaxLength, "tagDescriptionId", 80);
}
- if (tagId.Length < 1)
+ if (tagDescriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "tagId", 1);
+ throw new ValidationException(ValidationRules.MinLength, "tagDescriptionId", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(tagId, "^[^*#&+:<>?]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(tagDescriptionId, "^[^*#&+:<>?]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "tagId", "^[^*#&+:<>?]+$");
+ throw new ValidationException(ValidationRules.Pattern, "tagDescriptionId", "^[^*#&+:<>?]+$");
}
}
if (Client.ApiVersion == null)
@@ -666,17 +666,17 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serviceName", serviceName);
tracingParameters.Add("apiId", apiId);
- tracingParameters.Add("tagId", tagId);
+ tracingParameters.Add("tagDescriptionId", tagDescriptionId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/apis/{apiId}/tagDescriptions/{tagId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
_url = _url.Replace("{apiId}", System.Uri.EscapeDataString(apiId));
- _url = _url.Replace("{tagId}", System.Uri.EscapeDataString(tagId));
+ _url = _url.Replace("{tagDescriptionId}", System.Uri.EscapeDataString(tagDescriptionId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -830,9 +830,9 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// Create parameters.
@@ -862,7 +862,7 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, TagDescriptionCreateParameters parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, TagDescriptionCreateParameters parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -906,23 +906,23 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "apiId", "^[^*#&+:<>?]+$");
}
}
- if (tagId == null)
+ if (tagDescriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "tagId");
+ throw new ValidationException(ValidationRules.CannotBeNull, "tagDescriptionId");
}
- if (tagId != null)
+ if (tagDescriptionId != null)
{
- if (tagId.Length > 80)
+ if (tagDescriptionId.Length > 80)
{
- throw new ValidationException(ValidationRules.MaxLength, "tagId", 80);
+ throw new ValidationException(ValidationRules.MaxLength, "tagDescriptionId", 80);
}
- if (tagId.Length < 1)
+ if (tagDescriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "tagId", 1);
+ throw new ValidationException(ValidationRules.MinLength, "tagDescriptionId", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(tagId, "^[^*#&+:<>?]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(tagDescriptionId, "^[^*#&+:<>?]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "tagId", "^[^*#&+:<>?]+$");
+ throw new ValidationException(ValidationRules.Pattern, "tagDescriptionId", "^[^*#&+:<>?]+$");
}
}
if (parameters == null)
@@ -951,7 +951,7 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serviceName", serviceName);
tracingParameters.Add("apiId", apiId);
- tracingParameters.Add("tagId", tagId);
+ tracingParameters.Add("tagDescriptionId", tagDescriptionId);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("ifMatch", ifMatch);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -959,11 +959,11 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
}
// 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}/apis/{apiId}/tagDescriptions/{tagId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
_url = _url.Replace("{apiId}", System.Uri.EscapeDataString(apiId));
- _url = _url.Replace("{tagId}", System.Uri.EscapeDataString(tagId));
+ _url = _url.Replace("{tagDescriptionId}", System.Uri.EscapeDataString(tagDescriptionId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -1149,9 +1149,9 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// ETag of the Entity. ETag should match the current entity state from the
@@ -1176,7 +1176,7 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1220,23 +1220,23 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "apiId", "^[^*#&+:<>?]+$");
}
}
- if (tagId == null)
+ if (tagDescriptionId == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "tagId");
+ throw new ValidationException(ValidationRules.CannotBeNull, "tagDescriptionId");
}
- if (tagId != null)
+ if (tagDescriptionId != null)
{
- if (tagId.Length > 80)
+ if (tagDescriptionId.Length > 80)
{
- throw new ValidationException(ValidationRules.MaxLength, "tagId", 80);
+ throw new ValidationException(ValidationRules.MaxLength, "tagDescriptionId", 80);
}
- if (tagId.Length < 1)
+ if (tagDescriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "tagId", 1);
+ throw new ValidationException(ValidationRules.MinLength, "tagDescriptionId", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(tagId, "^[^*#&+:<>?]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(tagDescriptionId, "^[^*#&+:<>?]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "tagId", "^[^*#&+:<>?]+$");
+ throw new ValidationException(ValidationRules.Pattern, "tagDescriptionId", "^[^*#&+:<>?]+$");
}
}
if (ifMatch == null)
@@ -1261,18 +1261,18 @@ internal ApiTagDescriptionOperations(ApiManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serviceName", serviceName);
tracingParameters.Add("apiId", apiId);
- tracingParameters.Add("tagId", tagId);
+ tracingParameters.Add("tagDescriptionId", tagDescriptionId);
tracingParameters.Add("ifMatch", ifMatch);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Delete", 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}/apis/{apiId}/tagDescriptions/{tagId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
_url = _url.Replace("{apiId}", System.Uri.EscapeDataString(apiId));
- _url = _url.Replace("{tagId}", System.Uri.EscapeDataString(tagId));
+ _url = _url.Replace("{tagDescriptionId}", System.Uri.EscapeDataString(tagDescriptionId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperationsExtensions.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperationsExtensions.cs
index 08a1701f324d..8016c3a7931a 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperationsExtensions.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ApiTagDescriptionOperationsExtensions.cs
@@ -99,13 +99,13 @@ public static partial class ApiTagDescriptionOperationsExtensions
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
- public static ApiTagDescriptionGetEntityTagHeaders GetEntityTag(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId)
+ public static ApiTagDescriptionGetEntityTagHeaders GetEntityTag(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId)
{
- return operations.GetEntityTagAsync(resourceGroupName, serviceName, apiId, tagId).GetAwaiter().GetResult();
+ return operations.GetEntityTagAsync(resourceGroupName, serviceName, apiId, tagDescriptionId).GetAwaiter().GetResult();
}
///
@@ -125,16 +125,16 @@ public static ApiTagDescriptionGetEntityTagHeaders GetEntityTag(this IApiTagDesc
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// The cancellation token.
///
- public static async Task GetEntityTagAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetEntityTagAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetEntityTagWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetEntityTagWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagDescriptionId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
@@ -157,13 +157,13 @@ public static ApiTagDescriptionGetEntityTagHeaders GetEntityTag(this IApiTagDesc
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
- public static TagDescriptionContract Get(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId)
+ public static TagDescriptionContract Get(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId)
{
- return operations.GetAsync(resourceGroupName, serviceName, apiId, tagId).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, serviceName, apiId, tagDescriptionId).GetAwaiter().GetResult();
}
///
@@ -183,16 +183,16 @@ public static TagDescriptionContract Get(this IApiTagDescriptionOperations opera
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagDescriptionId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -215,9 +215,9 @@ public static TagDescriptionContract Get(this IApiTagDescriptionOperations opera
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// Create parameters.
@@ -226,9 +226,9 @@ public static TagDescriptionContract Get(this IApiTagDescriptionOperations opera
/// ETag of the Entity. Not required when creating an entity, but required when
/// updating an entity.
///
- public static TagDescriptionContract CreateOrUpdate(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId, TagDescriptionCreateParameters parameters, string ifMatch = default(string))
+ public static TagDescriptionContract CreateOrUpdate(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, TagDescriptionCreateParameters parameters, string ifMatch = default(string))
{
- return operations.CreateOrUpdateAsync(resourceGroupName, serviceName, apiId, tagId, parameters, ifMatch).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(resourceGroupName, serviceName, apiId, tagDescriptionId, parameters, ifMatch).GetAwaiter().GetResult();
}
///
@@ -248,9 +248,9 @@ public static TagDescriptionContract Get(this IApiTagDescriptionOperations opera
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// Create parameters.
@@ -262,9 +262,9 @@ public static TagDescriptionContract Get(this IApiTagDescriptionOperations opera
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId, TagDescriptionCreateParameters parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, TagDescriptionCreateParameters parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagId, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagDescriptionId, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -287,18 +287,18 @@ public static TagDescriptionContract Get(this IApiTagDescriptionOperations opera
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// ETag of the Entity. ETag should match the current entity state from the
/// header response of the GET request or it should be * for unconditional
/// update.
///
- public static void Delete(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId, string ifMatch)
+ public static void Delete(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, string ifMatch)
{
- operations.DeleteAsync(resourceGroupName, serviceName, apiId, tagId, ifMatch).GetAwaiter().GetResult();
+ operations.DeleteAsync(resourceGroupName, serviceName, apiId, tagDescriptionId, ifMatch).GetAwaiter().GetResult();
}
///
@@ -318,9 +318,9 @@ public static void Delete(this IApiTagDescriptionOperations operations, string r
/// service instance. Non-current revision has ;rev=n as a suffix where n is
/// the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management service
- /// instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for API/Tag
+ /// association. Based on API and Tag names.
///
///
/// ETag of the Entity. ETag should match the current entity state from the
@@ -330,9 +330,9 @@ public static void Delete(this IApiTagDescriptionOperations operations, string r
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagId, string ifMatch, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IApiTagDescriptionOperations operations, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, string ifMatch, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagId, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, tagDescriptionId, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperations.cs
index 3228d8203769..1e74e110c600 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperations.cs
@@ -1498,6 +1498,236 @@ internal AuthorizationServerOperations(ApiManagementClient client)
return _result;
}
+ ///
+ /// Gets the client secret details of the authorization server.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the authorization server.
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string authsid, 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 (authsid == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "authsid");
+ }
+ if (authsid != null)
+ {
+ if (authsid.Length > 80)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "authsid", 80);
+ }
+ if (authsid.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "authsid", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(authsid, "^[^*#&+:<>?]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "authsid", "^[^*#&+:<>?]+$");
+ }
+ }
+ 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("authsid", authsid);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListSecrets", 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}/authorizationServers/{authsid}/listSecrets").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
+ _url = _url.Replace("{authsid}", System.Uri.EscapeDataString(authsid));
+ _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("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Lists a collection of authorization servers defined within a service
/// instance.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperationsExtensions.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperationsExtensions.cs
index 843f492ccfa3..77e0a9164cad 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperationsExtensions.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/AuthorizationServerOperationsExtensions.cs
@@ -340,6 +340,52 @@ public static void Delete(this IAuthorizationServerOperations operations, string
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, authsid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Gets the client secret details of the authorization server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the authorization server.
+ ///
+ public static ClientSecretContract ListSecrets(this IAuthorizationServerOperations operations, string resourceGroupName, string serviceName, string authsid)
+ {
+ return operations.ListSecretsAsync(resourceGroupName, serviceName, authsid).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the client secret details of the authorization server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the authorization server.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListSecretsAsync(this IAuthorizationServerOperations operations, string resourceGroupName, string serviceName, string authsid, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListSecretsWithHttpMessagesAsync(resourceGroupName, serviceName, authsid, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Lists a collection of authorization servers defined within a service
/// instance.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiExportOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiExportOperations.cs
index 378dcb46bb7b..774bce405e8c 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiExportOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiExportOperations.cs
@@ -42,7 +42,7 @@ public partial interface IApiExportOperations
///
/// 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'
+ /// 'Wsdl', 'Wadl', 'Openapi', 'OpenapiJson'
///
///
/// The headers that will be added to request.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementClient.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementClient.cs
index af383c0b11fd..2cb4981e0708 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementClient.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementClient.cs
@@ -252,9 +252,9 @@ public partial interface IApiManagementClient : System.IDisposable
IPolicyOperations Policy { get; }
///
- /// Gets the IPolicySnippetOperations.
+ /// Gets the IPolicyDescriptionOperations.
///
- IPolicySnippetOperations PolicySnippet { get; }
+ IPolicyDescriptionOperations PolicyDescription { get; }
///
/// Gets the ISignInSettingsOperations.
@@ -297,9 +297,9 @@ public partial interface IApiManagementClient : System.IDisposable
IProductPolicyOperations ProductPolicy { get; }
///
- /// Gets the IPropertyOperations.
+ /// Gets the INamedValueOperations.
///
- IPropertyOperations Property { get; }
+ INamedValueOperations NamedValue { get; }
///
/// Gets the IQuotaByCounterKeysOperations.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceOperations.cs
index 214f132e961e..18a92821d2b0 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceOperations.cs
@@ -45,7 +45,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -75,7 +75,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -105,7 +105,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -134,7 +134,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -159,7 +159,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -184,7 +184,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -206,7 +206,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -251,7 +251,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -274,7 +274,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -306,7 +306,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -338,7 +338,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -368,7 +368,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -398,7 +398,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -427,7 +427,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -452,7 +452,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -484,7 +484,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -506,7 +506,7 @@ public partial interface IApiManagementServiceOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceSkusOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceSkusOperations.cs
index 8dba60dcca05..7b4b401e3577 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceSkusOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiManagementServiceSkusOperations.cs
@@ -41,7 +41,7 @@ public partial interface IApiManagementServiceSkusOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -66,7 +66,7 @@ public partial interface IApiManagementServiceSkusOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiSchemaOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiSchemaOperations.cs
index 5f405449114d..36b04281fafe 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiSchemaOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiSchemaOperations.cs
@@ -172,7 +172,7 @@ public partial interface IApiSchemaOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaCreateOrUpdateContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes the schema configuration at the Api.
///
@@ -213,6 +213,47 @@ public partial interface IApiSchemaOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, string ifMatch, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Creates or updates schema configuration for the API.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// API revision identifier. Must be unique in the current API
+ /// Management service instance. Non-current revision has ;rev=n as a
+ /// suffix where n is the revision number.
+ ///
+ ///
+ /// Schema identifier within an API. Must be unique in the current API
+ /// Management service instance.
+ ///
+ ///
+ /// The schema contents to apply.
+ ///
+ ///
+ /// ETag of the Entity. Not required when creating an entity, but
+ /// required when updating an entity.
+ ///
+ ///
+ /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string schemaId, SchemaContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Get the schema configuration at the API level.
///
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiTagDescriptionOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiTagDescriptionOperations.cs
index de82a0ef8a2e..8ee299769bdb 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiTagDescriptionOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IApiTagDescriptionOperations.cs
@@ -74,9 +74,9 @@ public partial interface IApiTagDescriptionOperations
/// Management service instance. Non-current revision has ;rev=n as a
/// suffix where n is the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management
- /// service instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for
+ /// API/Tag association. Based on API and Tag names.
///
///
/// The headers that will be added to request.
@@ -90,7 +90,7 @@ public partial interface IApiTagDescriptionOperations
///
/// Thrown when a required parameter is null
///
- Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Get Tag description in scope of API
///
@@ -105,9 +105,9 @@ public partial interface IApiTagDescriptionOperations
/// Management service instance. Non-current revision has ;rev=n as a
/// suffix where n is the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management
- /// service instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for
+ /// API/Tag association. Based on API and Tag names.
///
///
/// The headers that will be added to request.
@@ -124,7 +124,7 @@ public partial interface IApiTagDescriptionOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create/Update tag description in scope of the Api.
///
@@ -139,9 +139,9 @@ public partial interface IApiTagDescriptionOperations
/// Management service instance. Non-current revision has ;rev=n as a
/// suffix where n is the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management
- /// service instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for
+ /// API/Tag association. Based on API and Tag names.
///
///
/// Create parameters.
@@ -165,7 +165,7 @@ public partial interface IApiTagDescriptionOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, TagDescriptionCreateParameters parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, TagDescriptionCreateParameters parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Delete tag description for the Api.
///
@@ -180,9 +180,9 @@ public partial interface IApiTagDescriptionOperations
/// Management service instance. Non-current revision has ;rev=n as a
/// suffix where n is the revision number.
///
- ///
- /// Tag identifier. Must be unique in the current API Management
- /// service instance.
+ ///
+ /// Tag description identifier. Used when creating tagDescription for
+ /// API/Tag association. Based on API and Tag names.
///
///
/// ETag of the Entity. ETag should match the current entity state from
@@ -201,7 +201,7 @@ public partial interface IApiTagDescriptionOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists all Tags descriptions in scope of API. Model similar to
/// swagger - tagDescription is defined on API level but tag may be
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IAuthorizationServerOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IAuthorizationServerOperations.cs
index a2a7f772c677..95d05f9f40ff 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IAuthorizationServerOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IAuthorizationServerOperations.cs
@@ -209,6 +209,34 @@ public partial interface IAuthorizationServerOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string authsid, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets the client secret details of the authorization server.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the authorization server.
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string authsid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Lists a collection of authorization servers defined within a
/// service instance.
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IIdentityProviderOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IIdentityProviderOperations.cs
index 9c6d200fe20c..24403bb28009 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IIdentityProviderOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IIdentityProviderOperations.cs
@@ -209,6 +209,35 @@ public partial interface IIdentityProviderOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string identityProviderName, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets the client secret details of the Identity Provider.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identity Provider Type identifier. Possible values include:
+ /// 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C'
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string identityProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Lists a collection of Identity Provider configured in the specified
/// service instance.
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPropertyOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/INamedValueOperations.cs
similarity index 55%
rename from sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPropertyOperations.cs
rename to sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/INamedValueOperations.cs
index 17962e6db70c..2699e7442b3e 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPropertyOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/INamedValueOperations.cs
@@ -20,12 +20,13 @@ namespace Microsoft.Azure.Management.ApiManagement
using System.Threading.Tasks;
///
- /// PropertyOperations operations.
+ /// NamedValueOperations operations.
///
- public partial interface IPropertyOperations
+ public partial interface INamedValueOperations
{
///
- /// Lists a collection of properties defined within a service instance.
+ /// Lists a collection of NamedValues defined within a service
+ /// instance.
///
///
///
@@ -52,9 +53,9 @@ public partial interface IPropertyOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByServiceWithHttpMessagesAsync(string resourceGroupName, string serviceName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByServiceWithHttpMessagesAsync(string resourceGroupName, string serviceName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the entity state (Etag) version of the property specified by
+ /// Gets the entity state (Etag) version of the NamedValue specified by
/// its identifier.
///
///
@@ -63,8 +64,8 @@ public partial interface IPropertyOperations
///
/// The name of the API Management service.
///
- ///
- /// Identifier of the property.
+ ///
+ /// Identifier of the NamedValue.
///
///
/// The headers that will be added to request.
@@ -78,9 +79,9 @@ public partial interface IPropertyOperations
///
/// Thrown when a required parameter is null
///
- Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, string propId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the details of the property specified by its identifier.
+ /// Gets the details of the NamedValue specified by its identifier.
///
///
/// The name of the resource group.
@@ -88,8 +89,8 @@ public partial interface IPropertyOperations
///
/// The name of the API Management service.
///
- ///
- /// Identifier of the property.
+ ///
+ /// Identifier of the NamedValue.
///
///
/// The headers that will be added to request.
@@ -106,9 +107,9 @@ public partial interface IPropertyOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string propId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates a property.
+ /// Creates or updates a NamedValue.
///
///
/// The name of the resource group.
@@ -116,8 +117,8 @@ public partial interface IPropertyOperations
///
/// The name of the API Management service.
///
- ///
- /// Identifier of the property.
+ ///
+ /// Identifier of the NamedValue.
///
///
/// Create parameters.
@@ -141,9 +142,9 @@ public partial interface IPropertyOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string propId, PropertyContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, NamedValueContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates the specific property.
+ /// Updates the specific NamedValue.
///
///
/// The name of the resource group.
@@ -151,8 +152,8 @@ public partial interface IPropertyOperations
///
/// The name of the API Management service.
///
- ///
- /// Identifier of the property.
+ ///
+ /// Identifier of the NamedValue.
///
///
/// Update parameters.
@@ -171,12 +172,81 @@ public partial interface IPropertyOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, NamedValueUpdateParameters parameters, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes specific NamedValue from the API Management service
+ /// instance.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the NamedValue.
+ ///
+ ///
+ /// ETag of the Entity. ETag should match the current entity state from
+ /// the header response of the GET request or it should be * for
+ /// unconditional update.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates a NamedValue.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the NamedValue.
+ ///
+ ///
+ /// Create parameters.
+ ///
+ ///
+ /// ETag of the Entity. Not required when creating an entity, but
+ /// required when updating an entity.
+ ///
+ ///
+ /// 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 UpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string propId, PropertyUpdateParameters parameters, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, NamedValueContract parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes specific property from the API Management service instance.
+ /// Updates the specific NamedValue.
///
///
/// The name of the resource group.
@@ -184,8 +254,11 @@ public partial interface IPropertyOperations
///
/// The name of the API Management service.
///
- ///
- /// Identifier of the property.
+ ///
+ /// Identifier of the NamedValue.
+ ///
+ ///
+ /// Update parameters.
///
///
/// ETag of the Entity. ETag should match the current entity state from
@@ -201,12 +274,16 @@ public partial interface IPropertyOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string propId, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serviceName, string namedValueId, NamedValueUpdateParameters parameters, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists a collection of properties defined within a service instance.
+ /// Lists a collection of NamedValues defined within a service
+ /// instance.
///
///
///
@@ -227,6 +304,6 @@ public partial interface IPropertyOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByServiceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByServiceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IOpenIdConnectProviderOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IOpenIdConnectProviderOperations.cs
index 17aec5998271..90ed33ed8fd6 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IOpenIdConnectProviderOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IOpenIdConnectProviderOperations.cs
@@ -206,6 +206,34 @@ public partial interface IOpenIdConnectProviderOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serviceName, string opid, string ifMatch, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets the client secret details of the OpenID Connect Provider.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identifier of the OpenID Connect Provider.
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string opid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Lists of all the OpenId Connect Providers.
///
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPolicySnippetOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPolicyDescriptionOperations.cs
similarity index 78%
rename from sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPolicySnippetOperations.cs
rename to sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPolicyDescriptionOperations.cs
index 85e4a3f200ae..c40cd8d614de 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPolicySnippetOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IPolicyDescriptionOperations.cs
@@ -19,12 +19,12 @@ namespace Microsoft.Azure.Management.ApiManagement
using System.Threading.Tasks;
///
- /// PolicySnippetOperations operations.
+ /// PolicyDescriptionOperations operations.
///
- public partial interface IPolicySnippetOperations
+ public partial interface IPolicyDescriptionOperations
{
///
- /// Lists all policy snippets.
+ /// Lists all policy descriptions.
///
///
/// The name of the resource group.
@@ -51,6 +51,6 @@ public partial interface IPolicySnippetOperations
///
/// Thrown when a required parameter is null
///
- Task> ListByServiceWithHttpMessagesAsync(string resourceGroupName, string serviceName, PolicyScopeContract? scope = default(PolicyScopeContract?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ListByServiceWithHttpMessagesAsync(string resourceGroupName, string serviceName, PolicyScopeContract? scope = default(PolicyScopeContract?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ISubscriptionOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ISubscriptionOperations.cs
index e587fee3e4c3..e6bcee54fde4 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ISubscriptionOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ISubscriptionOperations.cs
@@ -279,6 +279,35 @@ public partial interface ISubscriptionOperations
///
Task RegenerateSecondaryKeyWithHttpMessagesAsync(string resourceGroupName, string serviceName, string sid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets the subscription keys.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Subscription entity Identifier. The entity represents the
+ /// association between a user and a product in API Management.
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string sid, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Lists all subscriptions of the API Management service instance.
///
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessGitOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessGitOperations.cs
index 6e72a416b0fd..9ebab93b6b56 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessGitOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessGitOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.ApiManagement
public partial interface ITenantAccessGitOperations
{
///
- /// Gets the Git access configuration for the tenant.
+ /// Gets the Git access configuration for the tenant. Without secrets.
///
///
/// The name of the resource group.
@@ -92,5 +92,30 @@ public partial interface ITenantAccessGitOperations
/// Thrown when a required parameter is null
///
Task RegenerateSecondaryKeyWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the Git access configuration for the tenant.
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessOperations.cs
index 1779c4995d87..8b435ddc6dcc 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/ITenantAccessOperations.cs
@@ -46,7 +46,7 @@ public partial interface ITenantAccessOperations
///
Task> GetEntityTagWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get tenant access information details
+ /// Get tenant access information details without secrets.
///
///
/// The name of the resource group.
@@ -144,5 +144,30 @@ public partial interface ITenantAccessOperations
/// Thrown when a required parameter is null
///
Task RegenerateSecondaryKeyWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get tenant access information details.
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperations.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperations.cs
index aa8e2243206f..d8700da833ae 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperations.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperations.cs
@@ -1415,6 +1415,222 @@ internal IdentityProviderOperations(ApiManagementClient client)
return _result;
}
+ ///
+ /// Gets the client secret details of the Identity Provider.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identity Provider Type identifier. Possible values include: 'facebook',
+ /// 'google', 'microsoft', 'twitter', 'aad', 'aadB2C'
+ ///
+ ///
+ /// 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> ListSecretsWithHttpMessagesAsync(string resourceGroupName, string serviceName, string identityProviderName, 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 (identityProviderName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "identityProviderName");
+ }
+ 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("identityProviderName", identityProviderName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListSecrets", 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}/identityProviders/{identityProviderName}/listSecrets").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName));
+ _url = _url.Replace("{identityProviderName}", System.Uri.EscapeDataString(identityProviderName));
+ _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("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Lists a collection of Identity Provider configured in the specified service
/// instance.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperationsExtensions.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperationsExtensions.cs
index 683fe0441804..da5a551f2876 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperationsExtensions.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/IdentityProviderOperationsExtensions.cs
@@ -343,6 +343,54 @@ public static void Delete(this IIdentityProviderOperations operations, string re
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, identityProviderName, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Gets the client secret details of the Identity Provider.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identity Provider Type identifier. Possible values include: 'facebook',
+ /// 'google', 'microsoft', 'twitter', 'aad', 'aadB2C'
+ ///
+ public static ClientSecretContract ListSecrets(this IIdentityProviderOperations operations, string resourceGroupName, string serviceName, string identityProviderName)
+ {
+ return operations.ListSecretsAsync(resourceGroupName, serviceName, identityProviderName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the client secret details of the Identity Provider.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the API Management service.
+ ///
+ ///
+ /// Identity Provider Type identifier. Possible values include: 'facebook',
+ /// 'google', 'microsoft', 'twitter', 'aad', 'aadB2C'
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListSecretsAsync(this IIdentityProviderOperations operations, string resourceGroupName, string serviceName, string identityProviderName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListSecretsWithHttpMessagesAsync(resourceGroupName, serviceName, identityProviderName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Lists a collection of Identity Provider configured in the specified service
/// instance.
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AccessInformationContract.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AccessInformationContract.cs
index a95673ff3195..085f2cbb2760 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AccessInformationContract.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AccessInformationContract.cs
@@ -30,8 +30,12 @@ public AccessInformationContract()
/// Initializes a new instance of the AccessInformationContract class.
///
/// Identifier.
- /// Primary access key.
- /// Secondary access key.
+ /// Primary access key. This property will not
+ /// be filled on 'GET' operations! Use '/listSecrets' POST request to
+ /// get the value.
+ /// Secondary access key. This property will
+ /// not be filled on 'GET' operations! Use '/listSecrets' POST request
+ /// to get the value.
/// Determines whether direct access is
/// enabled.
public AccessInformationContract(string id = default(string), string primaryKey = default(string), string secondaryKey = default(string), bool? enabled = default(bool?))
@@ -55,13 +59,17 @@ public AccessInformationContract()
public string Id { get; set; }
///
- /// Gets or sets primary access key.
+ /// Gets or sets primary access key. This property will not be filled
+ /// on 'GET' operations! Use '/listSecrets' POST request to get the
+ /// value.
///
[JsonProperty(PropertyName = "primaryKey")]
public string PrimaryKey { get; set; }
///
- /// Gets or sets secondary access key.
+ /// Gets or sets secondary access key. This property will not be filled
+ /// on 'GET' operations! Use '/listSecrets' POST request to get the
+ /// value.
///
[JsonProperty(PropertyName = "secondaryKey")]
public string SecondaryKey { get; set; }
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AdditionalLocation.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AdditionalLocation.cs
index 7fefcb4ade13..4aae1833f2b7 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AdditionalLocation.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/AdditionalLocation.cs
@@ -47,7 +47,10 @@ public AdditionalLocation()
/// configuration for the location.
/// Gateway URL of the API Management
/// service in the Region.
- public AdditionalLocation(string location, ApiManagementServiceSkuProperties sku, IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), string gatewayRegionalUrl = default(string))
+ /// Property only valid for an Api
+ /// Management service deployed in multiple locations. This can be used
+ /// to disable the gateway in this additional location.
+ public AdditionalLocation(string location, ApiManagementServiceSkuProperties sku, IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), string gatewayRegionalUrl = default(string), bool? disableGateway = default(bool?))
{
Location = location;
Sku = sku;
@@ -55,6 +58,7 @@ public AdditionalLocation()
PrivateIPAddresses = privateIPAddresses;
VirtualNetworkConfiguration = virtualNetworkConfiguration;
GatewayRegionalUrl = gatewayRegionalUrl;
+ DisableGateway = disableGateway;
CustomInit();
}
@@ -105,6 +109,14 @@ public AdditionalLocation()
[JsonProperty(PropertyName = "gatewayRegionalUrl")]
public string GatewayRegionalUrl { get; private set; }
+ ///
+ /// Gets or sets property only valid for an Api Management service
+ /// deployed in multiple locations. This can be used to disable the
+ /// gateway in this additional location.
+ ///
+ [JsonProperty(PropertyName = "disableGateway")]
+ public bool? DisableGateway { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs
index 63f3b3639e27..80b4ad63367b 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs
@@ -76,7 +76,8 @@ public ApiCreateOrUpdateParameter()
/// Format of the Content in which the API is
/// getting imported. Possible values include: 'wadl-xml',
/// 'wadl-link-json', 'swagger-json', 'swagger-link-json', 'wsdl',
- /// 'wsdl-link', 'openapi', 'openapi+json', 'openapi-link'
+ /// 'wsdl-link', 'openapi', 'openapi+json', 'openapi-link',
+ /// 'openapi+json-link'
/// Criteria to limit import of WSDL to a
/// subset of the document.
/// Type of Api to create.
@@ -243,7 +244,7 @@ public ApiCreateOrUpdateParameter()
/// Gets or sets format of the Content in which the API is getting
/// imported. Possible values include: 'wadl-xml', 'wadl-link-json',
/// 'swagger-json', 'swagger-link-json', 'wsdl', 'wsdl-link',
- /// 'openapi', 'openapi+json', 'openapi-link'
+ /// 'openapi', 'openapi+json', 'openapi-link', 'openapi+json-link'
///
[JsonProperty(PropertyName = "properties.format")]
public string Format { get; set; }
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceBaseProperties.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceBaseProperties.cs
index faf25a86ab3b..830d5e08d6f1 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceBaseProperties.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceBaseProperties.cs
@@ -56,6 +56,8 @@ public ApiManagementServiceBaseProperties()
/// API Management service.
/// SCM endpoint URL of the API Management
/// service.
+ /// DEveloper Portal endpoint URL of
+ /// the API Management service.
/// Custom hostname configuration
/// of the API Management service.
/// Public Static Load Balanced IP
@@ -103,7 +105,10 @@ public ApiManagementServiceBaseProperties()
/// TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,
/// TLS_RSA_WITH_AES_128_CBC_SHA. For example,
/// `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`.
- /// The default value is `true` for them.
+ /// The default value is `true` for them. Note: next ciphers can't be
+ /// disabled since they are required by Azure CloudService internal
+ /// components:
+ /// TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384
/// List of Certificates that need to be
/// installed in the API Management service. Max supported certificates
/// that can be installed is 10.
@@ -112,6 +117,9 @@ public ApiManagementServiceBaseProperties()
/// certificate to be presented on each request to the gateway. This
/// also enables the ability to authenticate the certificate in the
/// policy on the gateway.
+ /// Property only valid for an Api
+ /// Management service deployed in multiple locations. This can be used
+ /// to disable the gateway in master region.
/// 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
@@ -120,7 +128,9 @@ public ApiManagementServiceBaseProperties()
/// Internal means that API Management deployment is setup inside a
/// Virtual Network having an Intranet Facing Endpoint only. Possible
/// values include: 'None', 'External', 'Internal'
- public ApiManagementServiceBaseProperties(string notificationSenderEmail = default(string), string provisioningState = default(string), string targetProvisioningState = default(string), System.DateTime? createdAtUtc = default(System.DateTime?), string gatewayUrl = default(string), string gatewayRegionalUrl = default(string), string portalUrl = default(string), string managementApiUrl = default(string), string scmUrl = default(string), IList hostnameConfigurations = default(IList), IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), IList additionalLocations = default(IList), IDictionary customProperties = default(IDictionary), IList certificates = default(IList), bool? enableClientCertificate = default(bool?), string virtualNetworkType = default(string))
+ /// Control Plane Apis version
+ /// constraint for the API Management service.
+ public ApiManagementServiceBaseProperties(string notificationSenderEmail = default(string), string provisioningState = default(string), string targetProvisioningState = default(string), System.DateTime? createdAtUtc = default(System.DateTime?), string gatewayUrl = default(string), string gatewayRegionalUrl = default(string), string portalUrl = default(string), string managementApiUrl = default(string), string scmUrl = default(string), string developerPortalUrl = default(string), IList hostnameConfigurations = default(IList), IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), IList additionalLocations = default(IList), IDictionary customProperties = default(IDictionary), IList certificates = default(IList), bool? enableClientCertificate = default(bool?), bool? disableGateway = default(bool?), string virtualNetworkType = default(string), ApiVersionConstraint apiVersionConstraint = default(ApiVersionConstraint))
{
NotificationSenderEmail = notificationSenderEmail;
ProvisioningState = provisioningState;
@@ -131,6 +141,7 @@ public ApiManagementServiceBaseProperties()
PortalUrl = portalUrl;
ManagementApiUrl = managementApiUrl;
ScmUrl = scmUrl;
+ DeveloperPortalUrl = developerPortalUrl;
HostnameConfigurations = hostnameConfigurations;
PublicIPAddresses = publicIPAddresses;
PrivateIPAddresses = privateIPAddresses;
@@ -139,7 +150,9 @@ public ApiManagementServiceBaseProperties()
CustomProperties = customProperties;
Certificates = certificates;
EnableClientCertificate = enableClientCertificate;
+ DisableGateway = disableGateway;
VirtualNetworkType = virtualNetworkType;
+ ApiVersionConstraint = apiVersionConstraint;
CustomInit();
}
@@ -209,6 +222,12 @@ public ApiManagementServiceBaseProperties()
[JsonProperty(PropertyName = "scmUrl")]
public string ScmUrl { get; private set; }
+ ///
+ /// Gets dEveloper Portal endpoint URL of the API Management service.
+ ///
+ [JsonProperty(PropertyName = "developerPortalUrl")]
+ public string DeveloperPortalUrl { get; private set; }
+
///
/// Gets or sets custom hostname configuration of the API Management
/// service.
@@ -282,7 +301,10 @@ public ApiManagementServiceBaseProperties()
/// TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,
/// TLS_RSA_WITH_AES_128_CBC_SHA. For example,
/// `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`.
- /// The default value is `true` for them.
+ /// The default value is `true` for them. Note: next ciphers can't be
+ /// disabled since they are required by Azure CloudService internal
+ /// components:
+ /// TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384
///
[JsonProperty(PropertyName = "customProperties")]
public IDictionary CustomProperties { get; set; }
@@ -304,6 +326,14 @@ public ApiManagementServiceBaseProperties()
[JsonProperty(PropertyName = "enableClientCertificate")]
public bool? EnableClientCertificate { get; set; }
+ ///
+ /// Gets or sets property only valid for an Api Management service
+ /// deployed in multiple locations. This can be used to disable the
+ /// gateway in master region.
+ ///
+ [JsonProperty(PropertyName = "disableGateway")]
+ public bool? DisableGateway { get; set; }
+
///
/// Gets or sets the type of VPN in which API Management service needs
/// to be configured in. None (Default Value) means the API Management
@@ -317,6 +347,13 @@ public ApiManagementServiceBaseProperties()
[JsonProperty(PropertyName = "virtualNetworkType")]
public string VirtualNetworkType { get; set; }
+ ///
+ /// Gets or sets control Plane Apis version constraint for the API
+ /// Management service.
+ ///
+ [JsonProperty(PropertyName = "apiVersionConstraint")]
+ public ApiVersionConstraint ApiVersionConstraint { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentity.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentity.cs
index 8e4c937c9f53..a92a71eb79cd 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentity.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentity.cs
@@ -10,7 +10,10 @@
namespace Microsoft.Azure.Management.ApiManagement.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
using System.Linq;
///
@@ -31,28 +34,40 @@ public ApiManagementServiceIdentity()
/// Initializes a new instance of the ApiManagementServiceIdentity
/// class.
///
+ /// The type of identity used for the resource. The
+ /// type 'SystemAssigned, UserAssigned' includes both an implicitly
+ /// created identity and a set of user assigned identities. The type
+ /// 'None' will remove any identities from the service. Possible values
+ /// include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
+ /// UserAssigned', 'None'
/// The principal id of the identity.
/// The client tenant id of the
/// identity.
- public ApiManagementServiceIdentity(System.Guid? principalId = default(System.Guid?), System.Guid? tenantId = default(System.Guid?))
+ public ApiManagementServiceIdentity(string type, System.Guid? principalId = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), IDictionary userAssignedIdentities = default(IDictionary))
{
+ Type = type;
PrincipalId = principalId;
TenantId = tenantId;
+ UserAssignedIdentities = userAssignedIdentities;
CustomInit();
}
- ///
- /// Static constructor for ApiManagementServiceIdentity class.
- ///
- static ApiManagementServiceIdentity()
- {
- Type = "SystemAssigned";
- }
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
+ ///
+ /// Gets or sets the type of identity used for the resource. The type
+ /// 'SystemAssigned, UserAssigned' includes both an implicitly created
+ /// identity and a set of user assigned identities. The type 'None'
+ /// will remove any identities from the service. Possible values
+ /// include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
+ /// UserAssigned', 'None'
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
///
/// Gets the principal id of the identity.
///
@@ -66,11 +81,22 @@ static ApiManagementServiceIdentity()
public System.Guid? TenantId { get; private set; }
///
- /// The identity type. Currently the only supported type is
- /// 'SystemAssigned'.
///
- [JsonProperty(PropertyName = "type")]
- public static string Type { get; private set; }
+ [JsonProperty(PropertyName = "userAssignedIdentities")]
+ public IDictionary UserAssignedIdentities { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Type == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Type");
+ }
+ }
}
}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentityUserAssignedIdentitiesValue.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentityUserAssignedIdentitiesValue.cs
new file mode 100644
index 000000000000..219677c4b1eb
--- /dev/null
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceIdentityUserAssignedIdentitiesValue.cs
@@ -0,0 +1,60 @@
+//
+// 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;
+
+ public partial class ApiManagementServiceIdentityUserAssignedIdentitiesValue
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ApiManagementServiceIdentityUserAssignedIdentitiesValue class.
+ ///
+ public ApiManagementServiceIdentityUserAssignedIdentitiesValue()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ApiManagementServiceIdentityUserAssignedIdentitiesValue class.
+ ///
+ /// The principal id of user assigned
+ /// identity.
+ /// The client id of user assigned
+ /// identity.
+ public ApiManagementServiceIdentityUserAssignedIdentitiesValue(string principalId = default(string), string clientId = default(string))
+ {
+ PrincipalId = principalId;
+ ClientId = clientId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the principal id of user assigned identity.
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId { get; private set; }
+
+ ///
+ /// Gets the client id of user assigned identity.
+ ///
+ [JsonProperty(PropertyName = "clientId")]
+ public string ClientId { get; private set; }
+
+ }
+}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceResource.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceResource.cs
index c011c0de7ddd..9b12d219a0d8 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceResource.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceResource.cs
@@ -68,6 +68,8 @@ public ApiManagementServiceResource()
/// API Management service.
/// SCM endpoint URL of the API Management
/// service.
+ /// DEveloper Portal endpoint URL of
+ /// the API Management service.
/// Custom hostname configuration
/// of the API Management service.
/// Public Static Load Balanced IP
@@ -115,7 +117,10 @@ public ApiManagementServiceResource()
/// TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,
/// TLS_RSA_WITH_AES_128_CBC_SHA. For example,
/// `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`.
- /// The default value is `true` for them.
+ /// The default value is `true` for them. Note: next ciphers can't be
+ /// disabled since they are required by Azure CloudService internal
+ /// components:
+ /// TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384
/// List of Certificates that need to be
/// installed in the API Management service. Max supported certificates
/// that can be installed is 10.
@@ -124,6 +129,9 @@ public ApiManagementServiceResource()
/// certificate to be presented on each request to the gateway. This
/// also enables the ability to authenticate the certificate in the
/// policy on the gateway.
+ /// Property only valid for an Api
+ /// Management service deployed in multiple locations. This can be used
+ /// to disable the gateway in master region.
/// 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
@@ -132,10 +140,12 @@ public ApiManagementServiceResource()
/// Internal means that API Management deployment is setup inside a
/// Virtual Network having an Intranet Facing Endpoint only. Possible
/// values include: 'None', 'External', 'Internal'
+ /// Control Plane Apis version
+ /// constraint for the API Management service.
/// Managed service identity of the Api
/// Management service.
/// ETag of the resource.
- public ApiManagementServiceResource(string publisherEmail, string publisherName, ApiManagementServiceSkuProperties sku, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string notificationSenderEmail = default(string), string provisioningState = default(string), string targetProvisioningState = default(string), System.DateTime? createdAtUtc = default(System.DateTime?), string gatewayUrl = default(string), string gatewayRegionalUrl = default(string), string portalUrl = default(string), string managementApiUrl = default(string), string scmUrl = default(string), IList hostnameConfigurations = default(IList), IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), IList additionalLocations = default(IList), IDictionary customProperties = default(IDictionary), IList certificates = default(IList), bool? enableClientCertificate = default(bool?), string virtualNetworkType = default(string), ApiManagementServiceIdentity identity = default(ApiManagementServiceIdentity), string etag = default(string))
+ public ApiManagementServiceResource(string publisherEmail, string publisherName, ApiManagementServiceSkuProperties sku, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string notificationSenderEmail = default(string), string provisioningState = default(string), string targetProvisioningState = default(string), System.DateTime? createdAtUtc = default(System.DateTime?), string gatewayUrl = default(string), string gatewayRegionalUrl = default(string), string portalUrl = default(string), string managementApiUrl = default(string), string scmUrl = default(string), string developerPortalUrl = default(string), IList hostnameConfigurations = default(IList), IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), IList additionalLocations = default(IList), IDictionary customProperties = default(IDictionary), IList certificates = default(IList), bool? enableClientCertificate = default(bool?), bool? disableGateway = default(bool?), string virtualNetworkType = default(string), ApiVersionConstraint apiVersionConstraint = default(ApiVersionConstraint), ApiManagementServiceIdentity identity = default(ApiManagementServiceIdentity), string etag = default(string))
: base(id, name, type, tags)
{
NotificationSenderEmail = notificationSenderEmail;
@@ -147,6 +157,7 @@ public ApiManagementServiceResource()
PortalUrl = portalUrl;
ManagementApiUrl = managementApiUrl;
ScmUrl = scmUrl;
+ DeveloperPortalUrl = developerPortalUrl;
HostnameConfigurations = hostnameConfigurations;
PublicIPAddresses = publicIPAddresses;
PrivateIPAddresses = privateIPAddresses;
@@ -155,7 +166,9 @@ public ApiManagementServiceResource()
CustomProperties = customProperties;
Certificates = certificates;
EnableClientCertificate = enableClientCertificate;
+ DisableGateway = disableGateway;
VirtualNetworkType = virtualNetworkType;
+ ApiVersionConstraint = apiVersionConstraint;
PublisherEmail = publisherEmail;
PublisherName = publisherName;
Sku = sku;
@@ -231,6 +244,12 @@ public ApiManagementServiceResource()
[JsonProperty(PropertyName = "properties.scmUrl")]
public string ScmUrl { get; private set; }
+ ///
+ /// Gets dEveloper Portal endpoint URL of the API Management service.
+ ///
+ [JsonProperty(PropertyName = "properties.developerPortalUrl")]
+ public string DeveloperPortalUrl { get; private set; }
+
///
/// Gets or sets custom hostname configuration of the API Management
/// service.
@@ -304,7 +323,10 @@ public ApiManagementServiceResource()
/// TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,
/// TLS_RSA_WITH_AES_128_CBC_SHA. For example,
/// `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`.
- /// The default value is `true` for them.
+ /// The default value is `true` for them. Note: next ciphers can't be
+ /// disabled since they are required by Azure CloudService internal
+ /// components:
+ /// TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384
///
[JsonProperty(PropertyName = "properties.customProperties")]
public IDictionary CustomProperties { get; set; }
@@ -326,6 +348,14 @@ public ApiManagementServiceResource()
[JsonProperty(PropertyName = "properties.enableClientCertificate")]
public bool? EnableClientCertificate { get; set; }
+ ///
+ /// Gets or sets property only valid for an Api Management service
+ /// deployed in multiple locations. This can be used to disable the
+ /// gateway in master region.
+ ///
+ [JsonProperty(PropertyName = "properties.disableGateway")]
+ public bool? DisableGateway { get; set; }
+
///
/// Gets or sets the type of VPN in which API Management service needs
/// to be configured in. None (Default Value) means the API Management
@@ -339,6 +369,13 @@ public ApiManagementServiceResource()
[JsonProperty(PropertyName = "properties.virtualNetworkType")]
public string VirtualNetworkType { get; set; }
+ ///
+ /// Gets or sets control Plane Apis version constraint for the API
+ /// Management service.
+ ///
+ [JsonProperty(PropertyName = "properties.apiVersionConstraint")]
+ public ApiVersionConstraint ApiVersionConstraint { get; set; }
+
///
/// Gets or sets publisher email.
///
@@ -459,6 +496,10 @@ public virtual void Validate()
{
Sku.Validate();
}
+ if (Identity != null)
+ {
+ Identity.Validate();
+ }
}
}
}
diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceUpdateParameters.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceUpdateParameters.cs
index 23f0360dd45d..304aafebf96e 100644
--- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceUpdateParameters.cs
+++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/src/Generated/Models/ApiManagementServiceUpdateParameters.cs
@@ -63,6 +63,8 @@ public ApiManagementServiceUpdateParameters()
/// API Management service.
/// SCM endpoint URL of the API Management
/// service.
+ /// DEveloper Portal endpoint URL of
+ /// the API Management service.
/// Custom hostname configuration
/// of the API Management service.
/// Public Static Load Balanced IP
@@ -110,7 +112,10 @@ public ApiManagementServiceUpdateParameters()
/// TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,
/// TLS_RSA_WITH_AES_128_CBC_SHA. For example,
/// `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`.
- /// The default value is `true` for them.
+ /// The default value is `true` for them. Note: next ciphers can't be
+ /// disabled since they are required by Azure CloudService internal
+ /// components:
+ /// TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384
/// List of Certificates that need to be
/// installed in the API Management service. Max supported certificates
/// that can be installed is 10.
@@ -119,6 +124,9 @@ public ApiManagementServiceUpdateParameters()
/// certificate to be presented on each request to the gateway. This
/// also enables the ability to authenticate the certificate in the
/// policy on the gateway.
+ /// Property only valid for an Api
+ /// Management service deployed in multiple locations. This can be used
+ /// to disable the gateway in master region.
/// 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
@@ -127,6 +135,8 @@ public ApiManagementServiceUpdateParameters()
/// Internal means that API Management deployment is setup inside a
/// Virtual Network having an Intranet Facing Endpoint only. Possible
/// values include: 'None', 'External', 'Internal'
+ /// Control Plane Apis version
+ /// constraint for the API Management service.
/// Publisher email.
/// Publisher name.
/// SKU properties of the API Management
@@ -134,7 +144,7 @@ public ApiManagementServiceUpdateParameters()
/// Managed service identity of the Api
/// Management service.
/// ETag of the resource.
- public ApiManagementServiceUpdateParameters(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string notificationSenderEmail = default(string), string provisioningState = default(string), string targetProvisioningState = default(string), System.DateTime? createdAtUtc = default(System.DateTime?), string gatewayUrl = default(string), string gatewayRegionalUrl = default(string), string portalUrl = default(string), string managementApiUrl = default(string), string scmUrl = default(string), IList hostnameConfigurations = default(IList), IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), IList additionalLocations = default(IList), IDictionary customProperties = default(IDictionary), IList certificates = default(IList), bool? enableClientCertificate = default(bool?), string virtualNetworkType = default(string), string publisherEmail = default(string), string publisherName = default(string), ApiManagementServiceSkuProperties sku = default(ApiManagementServiceSkuProperties), ApiManagementServiceIdentity identity = default(ApiManagementServiceIdentity), string etag = default(string))
+ public ApiManagementServiceUpdateParameters(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string notificationSenderEmail = default(string), string provisioningState = default(string), string targetProvisioningState = default(string), System.DateTime? createdAtUtc = default(System.DateTime?), string gatewayUrl = default(string), string gatewayRegionalUrl = default(string), string portalUrl = default(string), string managementApiUrl = default(string), string scmUrl = default(string), string developerPortalUrl = default(string), IList hostnameConfigurations = default(IList), IList publicIPAddresses = default(IList), IList privateIPAddresses = default(IList