diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperations.cs
index 77bc6100ab2c..e28104968d66 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperations.cs
@@ -57,7 +57,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// or CDN profile which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -264,7 +265,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -479,7 +481,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -507,18 +510,14 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain - using
- /// AzureFrontDoor managed certificate or user's own certificate. If not
- /// specified, enabling ssl uses AzureFrontDoor managed certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
///
/// The headers that will be added to request.
@@ -526,10 +525,10 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, tlsSettings, azureDnsZone, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, customDomainUpdateProperties, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -541,7 +540,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -566,7 +566,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -577,10 +578,10 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
///
/// The cancellation token.
///
- public async Task> RefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task RefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginRefreshValidationTokenWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginRefreshValidationTokenWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -591,7 +592,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -860,18 +862,14 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain - using
- /// AzureFrontDoor managed certificate or user's own certificate. If not
- /// specified, enabling ssl uses AzureFrontDoor managed certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
///
/// Headers that will be added to request.
@@ -894,7 +892,7 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -923,6 +921,10 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "customDomainName");
}
+ if (customDomainUpdateProperties == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "customDomainUpdateProperties");
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -931,16 +933,6 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
- if (tlsSettings != null)
- {
- tlsSettings.Validate();
- }
- AFDDomainUpdateParameters customDomainUpdateProperties = new AFDDomainUpdateParameters();
- if (tlsSettings != null || azureDnsZone != null)
- {
- customDomainUpdateProperties.TlsSettings = tlsSettings;
- customDomainUpdateProperties.AzureDnsZone = azureDnsZone;
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1119,7 +1111,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -1313,7 +1306,8 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -1327,9 +1321,6 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -1339,7 +1330,7 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginRefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginRefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1459,7 +1450,7 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new AfdErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1489,31 +1480,13 @@ internal AFDCustomDomainsOperations(CdnManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperationsExtensions.cs
index 15cfe867924a..55bb73f36b47 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDCustomDomainsOperationsExtensions.cs
@@ -31,7 +31,8 @@ public static partial class AFDCustomDomainsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// or CDN profile which is unique within the resource group.
///
public static IPage ListByProfile(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName)
{
@@ -48,7 +49,8 @@ public static IPage ListByProfile(this IAFDCustomDomainsOperations op
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// or CDN profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -72,7 +74,8 @@ public static IPage ListByProfile(this IAFDCustomDomainsOperations op
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -93,7 +96,8 @@ public static AFDDomain Get(this IAFDCustomDomainsOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -119,7 +123,8 @@ public static AFDDomain Get(this IAFDCustomDomainsOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -142,7 +147,8 @@ public static AFDDomain Create(this IAFDCustomDomainsOperations operations, stri
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -171,22 +177,18 @@ public static AFDDomain Create(this IAFDCustomDomainsOperations operations, stri
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain - using
- /// AzureFrontDoor managed certificate or user's own certificate. If not
- /// specified, enabling ssl uses AzureFrontDoor managed certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
- public static AFDDomain Update(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference))
+ public static AFDDomain Update(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties)
{
- return operations.UpdateAsync(resourceGroupName, profileName, customDomainName, tlsSettings, azureDnsZone).GetAwaiter().GetResult();
+ return operations.UpdateAsync(resourceGroupName, profileName, customDomainName, customDomainUpdateProperties).GetAwaiter().GetResult();
}
///
@@ -199,25 +201,21 @@ public static AFDDomain Create(this IAFDCustomDomainsOperations operations, stri
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain - using
- /// AzureFrontDoor managed certificate or user's own certificate. If not
- /// specified, enabling ssl uses AzureFrontDoor managed certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, tlsSettings, azureDnsZone, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, customDomainUpdateProperties, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -234,7 +232,8 @@ public static AFDDomain Create(this IAFDCustomDomainsOperations operations, stri
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -255,7 +254,8 @@ public static void Delete(this IAFDCustomDomainsOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -278,14 +278,15 @@ public static void Delete(this IAFDCustomDomainsOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
///
- public static ValidationToken RefreshValidationToken(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName)
+ public static void RefreshValidationToken(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName)
{
- return operations.RefreshValidationTokenAsync(resourceGroupName, profileName, customDomainName).GetAwaiter().GetResult();
+ operations.RefreshValidationTokenAsync(resourceGroupName, profileName, customDomainName).GetAwaiter().GetResult();
}
///
@@ -298,7 +299,8 @@ public static ValidationToken RefreshValidationToken(this IAFDCustomDomainsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -306,12 +308,9 @@ public static ValidationToken RefreshValidationToken(this IAFDCustomDomainsOpera
///
/// The cancellation token.
///
- public static async Task RefreshValidationTokenAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RefreshValidationTokenAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.RefreshValidationTokenWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.RefreshValidationTokenWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -324,7 +323,8 @@ public static ValidationToken RefreshValidationToken(this IAFDCustomDomainsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -347,7 +347,8 @@ public static AFDDomain BeginCreate(this IAFDCustomDomainsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -376,22 +377,18 @@ public static AFDDomain BeginCreate(this IAFDCustomDomainsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain - using
- /// AzureFrontDoor managed certificate or user's own certificate. If not
- /// specified, enabling ssl uses AzureFrontDoor managed certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
- public static AFDDomain BeginUpdate(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference))
+ public static AFDDomain BeginUpdate(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties)
{
- return operations.BeginUpdateAsync(resourceGroupName, profileName, customDomainName, tlsSettings, azureDnsZone).GetAwaiter().GetResult();
+ return operations.BeginUpdateAsync(resourceGroupName, profileName, customDomainName, customDomainUpdateProperties).GetAwaiter().GetResult();
}
///
@@ -404,25 +401,21 @@ public static AFDDomain BeginCreate(this IAFDCustomDomainsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain - using
- /// AzureFrontDoor managed certificate or user's own certificate. If not
- /// specified, enabling ssl uses AzureFrontDoor managed certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
///
/// The cancellation token.
///
- public static async Task BeginUpdateAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginUpdateAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, tlsSettings, azureDnsZone, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, customDomainUpdateProperties, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -439,7 +432,8 @@ public static AFDDomain BeginCreate(this IAFDCustomDomainsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -460,7 +454,8 @@ public static void BeginDelete(this IAFDCustomDomainsOperations operations, stri
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -483,14 +478,15 @@ public static void BeginDelete(this IAFDCustomDomainsOperations operations, stri
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
///
- public static ValidationToken BeginRefreshValidationToken(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName)
+ public static void BeginRefreshValidationToken(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName)
{
- return operations.BeginRefreshValidationTokenAsync(resourceGroupName, profileName, customDomainName).GetAwaiter().GetResult();
+ operations.BeginRefreshValidationTokenAsync(resourceGroupName, profileName, customDomainName).GetAwaiter().GetResult();
}
///
@@ -503,7 +499,8 @@ public static ValidationToken BeginRefreshValidationToken(this IAFDCustomDomains
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -511,12 +508,9 @@ public static ValidationToken BeginRefreshValidationToken(this IAFDCustomDomains
///
/// The cancellation token.
///
- public static async Task BeginRefreshValidationTokenAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginRefreshValidationTokenAsync(this IAFDCustomDomainsOperations operations, string resourceGroupName, string profileName, string customDomainName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginRefreshValidationTokenWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.BeginRefreshValidationTokenWithHttpMessagesAsync(resourceGroupName, profileName, customDomainName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperations.cs
index 66c12f70ba73..3d375b02f90b 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperations.cs
@@ -57,7 +57,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -264,7 +265,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -480,7 +482,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -512,13 +515,18 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
+ ///
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled' or
+ /// 'Disabled'. Possible values include: 'Enabled', 'Disabled'
///
///
/// The headers that will be added to request.
@@ -526,10 +534,10 @@ internal AFDEndpointsOperations(CdnManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, tags, enabledState, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -541,7 +549,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -566,7 +575,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -598,7 +608,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -814,7 +825,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -1049,7 +1061,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -1322,13 +1335,18 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
+ ///
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled' or
+ /// 'Disabled'. Possible values include: 'Enabled', 'Disabled'
///
///
/// Headers that will be added to request.
@@ -1351,7 +1369,7 @@ internal AFDEndpointsOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1380,10 +1398,6 @@ internal AFDEndpointsOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "endpointName");
}
- if (endpointUpdateProperties == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "endpointUpdateProperties");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -1392,6 +1406,12 @@ internal AFDEndpointsOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+ AFDEndpointUpdateParameters endpointUpdateProperties = new AFDEndpointUpdateParameters();
+ if (tags != null || enabledState != null)
+ {
+ endpointUpdateProperties.Tags = tags;
+ endpointUpdateProperties.EnabledState = enabledState;
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1570,7 +1590,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -1764,7 +1785,8 @@ internal AFDEndpointsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperationsExtensions.cs
index 394beb12549c..3eefe9bacd07 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDEndpointsOperationsExtensions.cs
@@ -33,7 +33,8 @@ public static partial class AFDEndpointsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
public static IPage ListByProfile(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName)
{
@@ -50,7 +51,8 @@ public static IPage ListByProfile(this IAFDEndpointsOperations oper
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// The cancellation token.
@@ -74,7 +76,8 @@ public static IPage ListByProfile(this IAFDEndpointsOperations oper
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -95,7 +98,8 @@ public static AFDEndpoint Get(this IAFDEndpointsOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -122,7 +126,8 @@ public static AFDEndpoint Get(this IAFDEndpointsOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -146,7 +151,8 @@ public static AFDEndpoint Create(this IAFDEndpointsOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -179,17 +185,22 @@ public static AFDEndpoint Create(this IAFDEndpointsOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
///
- public static AFDEndpoint Update(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties)
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled' or
+ /// 'Disabled'. Possible values include: 'Enabled', 'Disabled'
+ ///
+ public static AFDEndpoint Update(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string))
{
- return operations.UpdateAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties).GetAwaiter().GetResult();
+ return operations.UpdateAsync(resourceGroupName, profileName, endpointName, tags, enabledState).GetAwaiter().GetResult();
}
///
@@ -206,20 +217,25 @@ public static AFDEndpoint Update(this IAFDEndpointsOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
+ ///
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled' or
+ /// 'Disabled'. Possible values include: 'Enabled', 'Disabled'
///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, tags, enabledState, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -236,7 +252,8 @@ public static AFDEndpoint Update(this IAFDEndpointsOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -257,7 +274,8 @@ public static void Delete(this IAFDEndpointsOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -280,7 +298,8 @@ public static void Delete(this IAFDEndpointsOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -307,7 +326,8 @@ public static void Delete(this IAFDEndpointsOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -337,7 +357,8 @@ public static void Delete(this IAFDEndpointsOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -357,7 +378,8 @@ public static IPage ListResourceUsage(this IAFDEndpointsOperations operat
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -384,7 +406,8 @@ public static IPage ListResourceUsage(this IAFDEndpointsOperations operat
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -408,7 +431,8 @@ public static ValidateCustomDomainOutput ValidateCustomDomain(this IAFDEndpoints
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -438,7 +462,8 @@ public static ValidateCustomDomainOutput ValidateCustomDomain(this IAFDEndpoints
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -462,7 +487,8 @@ public static AFDEndpoint BeginCreate(this IAFDEndpointsOperations operations, s
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -495,17 +521,22 @@ public static AFDEndpoint BeginCreate(this IAFDEndpointsOperations operations, s
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
///
- public static AFDEndpoint BeginUpdate(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties)
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled' or
+ /// 'Disabled'. Possible values include: 'Enabled', 'Disabled'
+ ///
+ public static AFDEndpoint BeginUpdate(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string))
{
- return operations.BeginUpdateAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties).GetAwaiter().GetResult();
+ return operations.BeginUpdateAsync(resourceGroupName, profileName, endpointName, tags, enabledState).GetAwaiter().GetResult();
}
///
@@ -522,20 +553,25 @@ public static AFDEndpoint BeginUpdate(this IAFDEndpointsOperations operations, s
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
+ ///
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled' or
+ /// 'Disabled'. Possible values include: 'Enabled', 'Disabled'
///
///
/// The cancellation token.
///
- public static async Task BeginUpdateAsync(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginUpdateAsync(this IAFDEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, tags, enabledState, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -552,7 +588,8 @@ public static AFDEndpoint BeginUpdate(this IAFDEndpointsOperations operations, s
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -573,7 +610,8 @@ public static void BeginDelete(this IAFDEndpointsOperations operations, string r
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -596,7 +634,8 @@ public static void BeginDelete(this IAFDEndpointsOperations operations, string r
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -623,7 +662,8 @@ public static void BeginDelete(this IAFDEndpointsOperations operations, string r
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperations.cs
index 031659d6e55a..389784e8b656 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperations.cs
@@ -57,7 +57,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -263,7 +264,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -478,7 +480,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -506,7 +509,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -534,7 +538,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -559,7 +564,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -774,7 +780,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -1043,7 +1050,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -1290,7 +1298,8 @@ internal AFDOriginGroupsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperationsExtensions.cs
index 3e92f655f7f0..5117136b131e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginGroupsOperationsExtensions.cs
@@ -31,7 +31,8 @@ public static partial class AFDOriginGroupsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
public static IPage ListByProfile(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName)
{
@@ -48,7 +49,8 @@ public static IPage ListByProfile(this IAFDOriginGroupsOperation
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// The cancellation token.
@@ -71,7 +73,8 @@ public static IPage ListByProfile(this IAFDOriginGroupsOperation
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -91,7 +94,8 @@ public static AFDOriginGroup Get(this IAFDOriginGroupsOperations operations, str
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -117,7 +121,8 @@ public static AFDOriginGroup Get(this IAFDOriginGroupsOperations operations, str
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -140,7 +145,8 @@ public static AFDOriginGroup Create(this IAFDOriginGroupsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -169,7 +175,8 @@ public static AFDOriginGroup Create(this IAFDOriginGroupsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -192,7 +199,8 @@ public static AFDOriginGroup Update(this IAFDOriginGroupsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -221,7 +229,8 @@ public static AFDOriginGroup Update(this IAFDOriginGroupsOperations operations,
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -241,7 +250,8 @@ public static void Delete(this IAFDOriginGroupsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -264,7 +274,8 @@ public static void Delete(this IAFDOriginGroupsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -284,7 +295,8 @@ public static IPage ListResourceUsage(this IAFDOriginGroupsOperations ope
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -310,7 +322,8 @@ public static IPage ListResourceUsage(this IAFDOriginGroupsOperations ope
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -333,7 +346,8 @@ public static AFDOriginGroup BeginCreate(this IAFDOriginGroupsOperations operati
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -362,7 +376,8 @@ public static AFDOriginGroup BeginCreate(this IAFDOriginGroupsOperations operati
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -385,7 +400,8 @@ public static AFDOriginGroup BeginUpdate(this IAFDOriginGroupsOperations operati
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -414,7 +430,8 @@ public static AFDOriginGroup BeginUpdate(this IAFDOriginGroupsOperations operati
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -434,7 +451,8 @@ public static void BeginDelete(this IAFDOriginGroupsOperations operations, strin
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperations.cs
index 25448d1d9213..b83c2bb20591 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperations.cs
@@ -57,7 +57,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -272,7 +273,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -496,7 +498,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -527,7 +530,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -558,7 +562,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -586,7 +591,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -864,7 +870,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -1120,7 +1127,8 @@ internal AFDOriginsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperationsExtensions.cs
index 61071fc1c844..9d84b97498e7 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDOriginsOperationsExtensions.cs
@@ -31,7 +31,8 @@ public static partial class AFDOriginsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -51,7 +52,8 @@ public static IPage ListByOriginGroup(this IAFDOriginsOperations oper
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -77,7 +79,8 @@ public static IPage ListByOriginGroup(this IAFDOriginsOperations oper
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -100,7 +103,8 @@ public static AFDOrigin Get(this IAFDOriginsOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -129,7 +133,8 @@ public static AFDOrigin Get(this IAFDOriginsOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -155,7 +160,8 @@ public static AFDOrigin Create(this IAFDOriginsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -187,7 +193,8 @@ public static AFDOrigin Create(this IAFDOriginsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -213,7 +220,8 @@ public static AFDOrigin Update(this IAFDOriginsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -245,7 +253,8 @@ public static AFDOrigin Update(this IAFDOriginsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -268,7 +277,8 @@ public static void Delete(this IAFDOriginsOperations operations, string resource
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -294,7 +304,8 @@ public static void Delete(this IAFDOriginsOperations operations, string resource
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -320,7 +331,8 @@ public static AFDOrigin BeginCreate(this IAFDOriginsOperations operations, strin
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -352,7 +364,8 @@ public static AFDOrigin BeginCreate(this IAFDOriginsOperations operations, strin
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -378,7 +391,8 @@ public static AFDOrigin BeginUpdate(this IAFDOriginsOperations operations, strin
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -410,7 +424,8 @@ public static AFDOrigin BeginUpdate(this IAFDOriginsOperations operations, strin
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -433,7 +448,8 @@ public static void BeginDelete(this IAFDOriginsOperations operations, string res
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperations.cs
index 4561a892dc5d..ed049186eaa5 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperations.cs
@@ -57,7 +57,8 @@ internal AFDProfilesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -264,10 +265,11 @@ internal AFDProfilesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
- /// The host name of the custom domain. Must be a domain name.
+ /// The host name to validate.
///
///
/// Headers that will be added to request.
@@ -290,7 +292,7 @@ internal AFDProfilesOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CheckHostNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string profileName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CheckHostNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string profileName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -327,7 +329,7 @@ internal AFDProfilesOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "hostName");
}
- ValidateCustomDomainInput checkHostNameAvailabilityInput = new ValidateCustomDomainInput();
+ CheckHostNameAvailabilityInput checkHostNameAvailabilityInput = new CheckHostNameAvailabilityInput();
if (hostName != null)
{
checkHostNameAvailabilityInput.HostName = hostName;
@@ -450,7 +452,7 @@ internal AFDProfilesOperations(CdnManagementClient 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"))
@@ -463,7 +465,7 @@ internal AFDProfilesOperations(CdnManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperationsExtensions.cs
index ea1223c68430..06ec70eeae62 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/AFDProfilesOperationsExtensions.cs
@@ -31,7 +31,8 @@ public static partial class AFDProfilesOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
public static IPage ListResourceUsage(this IAFDProfilesOperations operations, string resourceGroupName, string profileName)
{
@@ -48,7 +49,8 @@ public static IPage ListResourceUsage(this IAFDProfilesOperations operati
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -72,12 +74,13 @@ public static IPage ListResourceUsage(this IAFDProfilesOperations operati
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
- /// The host name of the custom domain. Must be a domain name.
+ /// The host name to validate.
///
- public static ValidateCustomDomainOutput CheckHostNameAvailability(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, string hostName)
+ public static CheckNameAvailabilityOutput CheckHostNameAvailability(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, string hostName)
{
return operations.CheckHostNameAvailabilityAsync(resourceGroupName, profileName, hostName).GetAwaiter().GetResult();
}
@@ -93,15 +96,16 @@ public static ValidateCustomDomainOutput CheckHostNameAvailability(this IAFDProf
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
- /// The host name of the custom domain. Must be a domain name.
+ /// The host name to validate.
///
///
/// The cancellation token.
///
- public static async Task CheckHostNameAvailabilityAsync(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, string hostName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CheckHostNameAvailabilityAsync(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, string hostName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CheckHostNameAvailabilityWithHttpMessagesAsync(resourceGroupName, profileName, hostName, null, cancellationToken).ConfigureAwait(false))
{
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClient.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClient.cs
index f21f12c90987..dc437c9b9bfe 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClient.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClient.cs
@@ -55,7 +55,7 @@ public partial class CdnManagementClient : ServiceClient, I
///
/// Version of the API to be used with the client request. Current version is
- /// 2020-09-01.
+ /// 2021-06-01.
///
public string ApiVersion { get; private set; }
@@ -77,46 +77,6 @@ public partial class CdnManagementClient : ServiceClient, I
///
public bool? GenerateClientRequestId { get; set; }
- ///
- /// Gets the IProfilesOperations.
- ///
- public virtual IProfilesOperations Profiles { get; private set; }
-
- ///
- /// Gets the IEndpointsOperations.
- ///
- public virtual IEndpointsOperations Endpoints { get; private set; }
-
- ///
- /// Gets the IOriginsOperations.
- ///
- public virtual IOriginsOperations Origins { get; private set; }
-
- ///
- /// Gets the IOriginGroupsOperations.
- ///
- public virtual IOriginGroupsOperations OriginGroups { get; private set; }
-
- ///
- /// Gets the ICustomDomainsOperations.
- ///
- public virtual ICustomDomainsOperations CustomDomains { get; private set; }
-
- ///
- /// Gets the IResourceUsageOperations.
- ///
- public virtual IResourceUsageOperations ResourceUsage { get; private set; }
-
- ///
- /// Gets the IOperations.
- ///
- public virtual IOperations Operations { get; private set; }
-
- ///
- /// Gets the IEdgeNodesOperations.
- ///
- public virtual IEdgeNodesOperations EdgeNodes { get; private set; }
-
///
/// Gets the IAFDProfilesOperations.
///
@@ -177,6 +137,46 @@ public partial class CdnManagementClient : ServiceClient, I
///
public virtual ILogAnalyticsOperations LogAnalytics { get; private set; }
+ ///
+ /// Gets the IProfilesOperations.
+ ///
+ public virtual IProfilesOperations Profiles { get; private set; }
+
+ ///
+ /// Gets the IEndpointsOperations.
+ ///
+ public virtual IEndpointsOperations Endpoints { get; private set; }
+
+ ///
+ /// Gets the IOriginsOperations.
+ ///
+ public virtual IOriginsOperations Origins { get; private set; }
+
+ ///
+ /// Gets the IOriginGroupsOperations.
+ ///
+ public virtual IOriginGroupsOperations OriginGroups { get; private set; }
+
+ ///
+ /// Gets the ICustomDomainsOperations.
+ ///
+ public virtual ICustomDomainsOperations CustomDomains { get; private set; }
+
+ ///
+ /// Gets the IResourceUsageOperations.
+ ///
+ public virtual IResourceUsageOperations ResourceUsage { get; private set; }
+
+ ///
+ /// Gets the IOperations.
+ ///
+ public virtual IOperations Operations { get; private set; }
+
+ ///
+ /// Gets the IEdgeNodesOperations.
+ ///
+ public virtual IEdgeNodesOperations EdgeNodes { get; private set; }
+
///
/// Gets the IPoliciesOperations.
///
@@ -428,14 +428,6 @@ public CdnManagementClient(System.Uri baseUri, ServiceClientCredentials credenti
///
private void Initialize()
{
- Profiles = new ProfilesOperations(this);
- Endpoints = new EndpointsOperations(this);
- Origins = new OriginsOperations(this);
- OriginGroups = new OriginGroupsOperations(this);
- CustomDomains = new CustomDomainsOperations(this);
- ResourceUsage = new ResourceUsageOperations(this);
- Operations = new Operations(this);
- EdgeNodes = new EdgeNodesOperations(this);
AFDProfiles = new AFDProfilesOperations(this);
AFDCustomDomains = new AFDCustomDomainsOperations(this);
AFDEndpoints = new AFDEndpointsOperations(this);
@@ -448,10 +440,18 @@ private void Initialize()
Secrets = new SecretsOperations(this);
Validate = new ValidateOperations(this);
LogAnalytics = new LogAnalyticsOperations(this);
+ Profiles = new ProfilesOperations(this);
+ Endpoints = new EndpointsOperations(this);
+ Origins = new OriginsOperations(this);
+ OriginGroups = new OriginGroupsOperations(this);
+ CustomDomains = new CustomDomainsOperations(this);
+ ResourceUsage = new ResourceUsageOperations(this);
+ Operations = new Operations(this);
+ EdgeNodes = new EdgeNodesOperations(this);
Policies = new PoliciesOperations(this);
ManagedRuleSets = new ManagedRuleSetsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2020-09-01";
+ ApiVersion = "2021-06-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -481,20 +481,236 @@ private void Initialize()
new Iso8601TimeSpanConverter()
}
};
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("name"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("name"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("name"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("name"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("certificateSource"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("certificateSource"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
}
+ ///
+ /// Check the availability of a resource name. This is needed for resources
+ /// where name is globally unique, such as a afdx endpoint.
+ ///
+ ///
+ /// Input to check.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// 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> CheckEndpointNameAvailabilityWithHttpMessagesAsync(CheckEndpointNameAvailabilityInput checkEndpointNameAvailabilityInput, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (checkEndpointNameAvailabilityInput == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "checkEndpointNameAvailabilityInput");
+ }
+ if (checkEndpointNameAvailabilityInput != null)
+ {
+ checkEndpointNameAvailabilityInput.Validate();
+ }
+ if (SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("checkEndpointNameAvailabilityInput", checkEndpointNameAvailabilityInput);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "CheckEndpointNameAvailability", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ List _queryParameters = new List();
+ if (ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (GenerateClientRequestId != null && GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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;
+ if(checkEndpointNameAvailabilityInput != null)
+ {
+ _requestContent = SafeJsonConvert.SerializeObject(checkEndpointNameAvailabilityInput, 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 (Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await 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 AfdErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ AfdErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, 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 = SafeJsonConvert.DeserializeObject(_responseContent, 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;
+ }
+
///
/// Check the availability of a resource name. This is needed for resources
/// where name is globally unique, such as a CDN endpoint.
@@ -502,6 +718,11 @@ private void Initialize()
///
/// The resource name to validate.
///
+ ///
+ /// The type of the resource whose name is to be validated. Possible values
+ /// include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
///
/// Headers that will be added to request.
///
@@ -523,7 +744,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, string type, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (ApiVersion == null)
{
@@ -533,10 +754,15 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
+ if (type == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "type");
+ }
CheckNameAvailabilityInput checkNameAvailabilityInput = new CheckNameAvailabilityInput();
- if (name != null)
+ if (name != null || type != null)
{
checkNameAvailabilityInput.Name = name;
+ checkNameAvailabilityInput.Type = type;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -690,6 +916,11 @@ private void Initialize()
///
/// The resource name to validate.
///
+ ///
+ /// The type of the resource whose name is to be validated. Possible values
+ /// include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
///
/// Headers that will be added to request.
///
@@ -711,7 +942,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(string name, string type, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (SubscriptionId == null)
{
@@ -725,10 +956,15 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "name");
}
+ if (type == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "type");
+ }
CheckNameAvailabilityInput checkNameAvailabilityInput = new CheckNameAvailabilityInput();
- if (name != null)
+ if (name != null || type != null)
{
checkNameAvailabilityInput.Name = name;
+ checkNameAvailabilityInput.Type = type;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClientExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClientExtensions.cs
index d22a1b7c2552..6da2068f050f 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClientExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/CdnManagementClientExtensions.cs
@@ -21,6 +21,48 @@ namespace Microsoft.Azure.Management.Cdn
///
public static partial class CdnManagementClientExtensions
{
+ ///
+ /// Check the availability of a resource name. This is needed for resources
+ /// where name is globally unique, such as a afdx endpoint.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Input to check.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ public static CheckEndpointNameAvailabilityOutput CheckEndpointNameAvailability(this ICdnManagementClient operations, CheckEndpointNameAvailabilityInput checkEndpointNameAvailabilityInput, string resourceGroupName)
+ {
+ return operations.CheckEndpointNameAvailabilityAsync(checkEndpointNameAvailabilityInput, resourceGroupName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Check the availability of a resource name. This is needed for resources
+ /// where name is globally unique, such as a afdx endpoint.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Input to check.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CheckEndpointNameAvailabilityAsync(this ICdnManagementClient operations, CheckEndpointNameAvailabilityInput checkEndpointNameAvailabilityInput, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CheckEndpointNameAvailabilityWithHttpMessagesAsync(checkEndpointNameAvailabilityInput, resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Check the availability of a resource name. This is needed for resources
/// where name is globally unique, such as a CDN endpoint.
@@ -31,9 +73,14 @@ public static partial class CdnManagementClientExtensions
///
/// The resource name to validate.
///
- public static CheckNameAvailabilityOutput CheckNameAvailability(this ICdnManagementClient operations, string name)
+ ///
+ /// The type of the resource whose name is to be validated. Possible values
+ /// include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
+ public static CheckNameAvailabilityOutput CheckNameAvailability(this ICdnManagementClient operations, string name, string type)
{
- return operations.CheckNameAvailabilityAsync(name).GetAwaiter().GetResult();
+ return operations.CheckNameAvailabilityAsync(name, type).GetAwaiter().GetResult();
}
///
@@ -46,12 +93,17 @@ public static CheckNameAvailabilityOutput CheckNameAvailability(this ICdnManagem
///
/// The resource name to validate.
///
+ ///
+ /// The type of the resource whose name is to be validated. Possible values
+ /// include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
///
/// The cancellation token.
///
- public static async Task CheckNameAvailabilityAsync(this ICdnManagementClient operations, string name, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CheckNameAvailabilityAsync(this ICdnManagementClient operations, string name, string type, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, type, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -67,9 +119,14 @@ public static CheckNameAvailabilityOutput CheckNameAvailability(this ICdnManagem
///
/// The resource name to validate.
///
- public static CheckNameAvailabilityOutput CheckNameAvailabilityWithSubscription(this ICdnManagementClient operations, string name)
+ ///
+ /// The type of the resource whose name is to be validated. Possible values
+ /// include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
+ public static CheckNameAvailabilityOutput CheckNameAvailabilityWithSubscription(this ICdnManagementClient operations, string name, string type)
{
- return operations.CheckNameAvailabilityWithSubscriptionAsync(name).GetAwaiter().GetResult();
+ return operations.CheckNameAvailabilityWithSubscriptionAsync(name, type).GetAwaiter().GetResult();
}
///
@@ -82,12 +139,17 @@ public static CheckNameAvailabilityOutput CheckNameAvailabilityWithSubscription(
///
/// The resource name to validate.
///
+ ///
+ /// The type of the resource whose name is to be validated. Possible values
+ /// include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
///
/// The cancellation token.
///
- public static async Task CheckNameAvailabilityWithSubscriptionAsync(this ICdnManagementClient operations, string name, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CheckNameAvailabilityWithSubscriptionAsync(this ICdnManagementClient operations, string name, string type, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(name, type, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/EndpointsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/EndpointsOperations.cs
index fec815fba377..455227f6af5e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/EndpointsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/EndpointsOperations.cs
@@ -1792,7 +1792,7 @@ internal EndpointsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDCustomDomainsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDCustomDomainsOperations.cs
index 47f83c65ee9c..a0dedb37baad 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDCustomDomainsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDCustomDomainsOperations.cs
@@ -30,7 +30,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -56,7 +57,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -84,7 +86,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -115,19 +118,14 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain -
- /// using AzureFrontDoor managed certificate or user's own certificate.
- /// If not specified, enabling ssl uses AzureFrontDoor managed
- /// certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
///
/// The headers that will be added to request.
@@ -144,7 +142,7 @@ public partial interface IAFDCustomDomainsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes an existing AzureFrontDoor domain with the specified domain
/// name under the specified subscription, resource group and profile.
@@ -153,7 +151,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -178,7 +177,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -192,13 +192,10 @@ public partial interface IAFDCustomDomainsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> RefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task RefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates a new domain within the specified profile.
///
@@ -206,7 +203,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
@@ -237,19 +235,14 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally
///
- ///
- /// The configuration specifying how to enable HTTPS for the domain -
- /// using AzureFrontDoor managed certificate or user's own certificate.
- /// If not specified, enabling ssl uses AzureFrontDoor managed
- /// certificate by default.
- ///
- ///
- /// Resource reference to the Azure DNS zone
+ ///
+ /// Domain properties
///
///
/// The headers that will be added to request.
@@ -266,7 +259,7 @@ public partial interface IAFDCustomDomainsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, AFDDomainUpdateParameters customDomainUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes an existing AzureFrontDoor domain with the specified domain
/// name under the specified subscription, resource group and profile.
@@ -275,7 +268,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -300,7 +294,8 @@ public partial interface IAFDCustomDomainsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the domain under the profile which is unique globally.
@@ -314,13 +309,10 @@ public partial interface IAFDCustomDomainsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> BeginRefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginRefreshValidationTokenWithHttpMessagesAsync(string resourceGroupName, string profileName, string customDomainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists existing AzureFrontDoor domains.
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDEndpointsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDEndpointsOperations.cs
index 5fcf64078011..3821ab369933 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDEndpointsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDEndpointsOperations.cs
@@ -30,7 +30,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -57,7 +58,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -86,7 +88,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -122,13 +125,18 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
+ ///
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled'
+ /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
///
///
/// The headers that will be added to request.
@@ -145,7 +153,7 @@ public partial interface IAFDEndpointsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes an existing AzureFrontDoor endpoint with the specified
/// endpoint name under the specified subscription, resource group and
@@ -155,7 +163,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -180,7 +189,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -213,7 +223,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -242,7 +253,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -274,7 +286,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -310,13 +323,18 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
///
- ///
- /// Endpoint update properties
+ ///
+ /// Endpoint tags.
+ ///
+ ///
+ /// Whether to enable use of this rule. Permitted values are 'Enabled'
+ /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
///
///
/// The headers that will be added to request.
@@ -333,7 +351,7 @@ public partial interface IAFDEndpointsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointName, IDictionary tags = default(IDictionary), string enabledState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes an existing AzureFrontDoor endpoint with the specified
/// endpoint name under the specified subscription, resource group and
@@ -343,7 +361,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -368,7 +387,8 @@ public partial interface IAFDEndpointsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginGroupsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginGroupsOperations.cs
index 379c8ad734cb..a284f1fafbe6 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginGroupsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginGroupsOperations.cs
@@ -30,7 +30,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -55,7 +56,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -83,7 +85,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -114,7 +117,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -145,7 +149,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -171,7 +176,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -199,7 +205,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the endpoint.
@@ -230,7 +237,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -261,7 +269,8 @@ public partial interface IAFDOriginGroupsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginsOperations.cs
index 4a1e58ec45ee..3772aa33862a 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDOriginsOperations.cs
@@ -30,7 +30,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -58,7 +59,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -89,7 +91,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -123,7 +126,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -157,7 +161,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -185,7 +190,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -219,7 +225,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
@@ -253,7 +260,8 @@ public partial interface IAFDOriginsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the origin group which is unique within the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDProfilesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDProfilesOperations.cs
index 53b7f56e9658..6b2280f547d4 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDProfilesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IAFDProfilesOperations.cs
@@ -31,7 +31,8 @@ public partial interface IAFDProfilesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -57,10 +58,11 @@ public partial interface IAFDProfilesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
- /// The host name of the custom domain. Must be a domain name.
+ /// The host name to validate.
///
///
/// The headers that will be added to request.
@@ -77,7 +79,7 @@ public partial interface IAFDProfilesOperations
///
/// Thrown when a required parameter is null
///
- Task> CheckHostNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string profileName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CheckHostNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string profileName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Checks the quota and actual usage of endpoints under the given CDN
/// profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ICdnManagementClient.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ICdnManagementClient.cs
index 150069dbd188..c02feae63f72 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ICdnManagementClient.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ICdnManagementClient.cs
@@ -51,7 +51,7 @@ public partial interface ICdnManagementClient : System.IDisposable
///
/// Version of the API to be used with the client request. Current
- /// version is 2020-09-01.
+ /// version is 2021-06-01.
///
string ApiVersion { get; }
@@ -74,46 +74,6 @@ public partial interface ICdnManagementClient : System.IDisposable
bool? GenerateClientRequestId { get; set; }
- ///
- /// Gets the IProfilesOperations.
- ///
- IProfilesOperations Profiles { get; }
-
- ///
- /// Gets the IEndpointsOperations.
- ///
- IEndpointsOperations Endpoints { get; }
-
- ///
- /// Gets the IOriginsOperations.
- ///
- IOriginsOperations Origins { get; }
-
- ///
- /// Gets the IOriginGroupsOperations.
- ///
- IOriginGroupsOperations OriginGroups { get; }
-
- ///
- /// Gets the ICustomDomainsOperations.
- ///
- ICustomDomainsOperations CustomDomains { get; }
-
- ///
- /// Gets the IResourceUsageOperations.
- ///
- IResourceUsageOperations ResourceUsage { get; }
-
- ///
- /// Gets the IOperations.
- ///
- IOperations Operations { get; }
-
- ///
- /// Gets the IEdgeNodesOperations.
- ///
- IEdgeNodesOperations EdgeNodes { get; }
-
///
/// Gets the IAFDProfilesOperations.
///
@@ -174,6 +134,46 @@ public partial interface ICdnManagementClient : System.IDisposable
///
ILogAnalyticsOperations LogAnalytics { get; }
+ ///
+ /// Gets the IProfilesOperations.
+ ///
+ IProfilesOperations Profiles { get; }
+
+ ///
+ /// Gets the IEndpointsOperations.
+ ///
+ IEndpointsOperations Endpoints { get; }
+
+ ///
+ /// Gets the IOriginsOperations.
+ ///
+ IOriginsOperations Origins { get; }
+
+ ///
+ /// Gets the IOriginGroupsOperations.
+ ///
+ IOriginGroupsOperations OriginGroups { get; }
+
+ ///
+ /// Gets the ICustomDomainsOperations.
+ ///
+ ICustomDomainsOperations CustomDomains { get; }
+
+ ///
+ /// Gets the IResourceUsageOperations.
+ ///
+ IResourceUsageOperations ResourceUsage { get; }
+
+ ///
+ /// Gets the IOperations.
+ ///
+ IOperations Operations { get; }
+
+ ///
+ /// Gets the IEdgeNodesOperations.
+ ///
+ IEdgeNodesOperations EdgeNodes { get; }
+
///
/// Gets the IPoliciesOperations.
///
@@ -184,6 +184,24 @@ public partial interface ICdnManagementClient : System.IDisposable
///
IManagedRuleSetsOperations ManagedRuleSets { get; }
+ ///
+ /// Check the availability of a resource name. This is needed for
+ /// resources where name is globally unique, such as a afdx endpoint.
+ ///
+ ///
+ /// Input to check.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ Task> CheckEndpointNameAvailabilityWithHttpMessagesAsync(CheckEndpointNameAvailabilityInput checkEndpointNameAvailabilityInput, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
///
/// Check the availability of a resource name. This is needed for
/// resources where name is globally unique, such as a CDN endpoint.
@@ -191,13 +209,18 @@ public partial interface ICdnManagementClient : System.IDisposable
///
/// The resource name to validate.
///
+ ///
+ /// The type of the resource whose name is to be validated. Possible
+ /// values include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, string type, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Check the availability of a resource name. This is needed for
@@ -206,13 +229,18 @@ public partial interface ICdnManagementClient : System.IDisposable
///
/// The resource name to validate.
///
+ ///
+ /// The type of the resource whose name is to be validated. Possible
+ /// values include: 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- Task> CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(string name, string type, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Check if the probe path is a valid path and the file can be
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ILogAnalyticsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ILogAnalyticsOperations.cs
index d0ec6ba9c6ea..dcafb2fe196c 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ILogAnalyticsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ILogAnalyticsOperations.cs
@@ -30,7 +30,9 @@ public partial interface ILogAnalyticsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group. which is unique
+ /// within the resource group.
///
///
///
@@ -74,7 +76,9 @@ public partial interface ILogAnalyticsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group. which is unique
+ /// within the resource group.
///
///
///
@@ -111,7 +115,9 @@ public partial interface ILogAnalyticsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group. which is unique
+ /// within the resource group.
///
///
/// The headers that will be added to request.
@@ -136,7 +142,9 @@ public partial interface ILogAnalyticsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group. which is unique
+ /// within the resource group.
///
///
/// The headers that will be added to request.
@@ -161,7 +169,9 @@ public partial interface ILogAnalyticsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group. which is unique
+ /// within the resource group.
///
///
///
@@ -201,7 +211,9 @@ public partial interface ILogAnalyticsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group. which is unique
+ /// within the resource group.
///
///
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IPoliciesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IPoliciesOperations.cs
index 770a55698172..fd91e2ff40bf 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IPoliciesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IPoliciesOperations.cs
@@ -145,7 +145,7 @@ public partial interface IPoliciesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IProfilesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IProfilesOperations.cs
index 56b356497c48..93f25403a18f 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IProfilesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IProfilesOperations.cs
@@ -24,7 +24,8 @@ namespace Microsoft.Azure.Management.Cdn
public partial interface IProfilesOperations
{
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door
+ /// Premium, and CDN profiles within an Azure subscription.
///
///
/// The headers that will be added to request.
@@ -43,7 +44,8 @@ public partial interface IProfilesOperations
///
Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door
+ /// Premium, and CDN profiles within a resource group.
///
///
/// Name of the Resource group within the Azure subscription.
@@ -65,14 +67,16 @@ public partial interface IProfilesOperations
///
Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Gets an Azure Front Door Standard or Azure Front Door Premium or
+ /// CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -91,14 +95,16 @@ public partial interface IProfilesOperations
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with a profile name under the specified subscription
+ /// and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -120,18 +126,24 @@ public partial interface IProfilesOperations
///
Task> CreateWithHttpMessagesAsync(string resourceGroupName, string profileName, Profile profile, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing CDN profile with the specified profile name
- /// under the specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door
+ /// Premium or CDN profile with the specified profile name under the
+ /// specified subscription and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// Profile tags
///
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When
+ /// timeout is reached, the request fails and returns.
+ ///
///
/// The headers that will be added to request.
///
@@ -147,17 +159,19 @@ public partial interface IProfilesOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes an existing CDN profile with the specified parameters.
- /// Deleting a profile will result in the deletion of all of the
- /// sub-resources including endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door
+ /// Premium or CDN profile with the specified parameters. Deleting a
+ /// profile will result in the deletion of all of the sub-resources
+ /// including endpoints, origins and custom domains.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -211,7 +225,8 @@ public partial interface IProfilesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -230,14 +245,16 @@ public partial interface IProfilesOperations
///
Task> ListSupportedOptimizationTypesWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Checks the quota and actual usage of endpoints under the given CDN
+ /// Checks the quota and actual usage of endpoints under the given
+ /// Azure Front Door Standard or Azure Front Door Premium or CDN
/// profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -256,14 +273,16 @@ public partial interface IProfilesOperations
///
Task>> ListResourceUsageWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with a profile name under the specified subscription
+ /// and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -285,18 +304,24 @@ public partial interface IProfilesOperations
///
Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string profileName, Profile profile, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing CDN profile with the specified profile name
- /// under the specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door
+ /// Premium or CDN profile with the specified profile name under the
+ /// specified subscription and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// Profile tags
///
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When
+ /// timeout is reached, the request fails and returns.
+ ///
///
/// The headers that will be added to request.
///
@@ -312,17 +337,19 @@ public partial interface IProfilesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes an existing CDN profile with the specified parameters.
- /// Deleting a profile will result in the deletion of all of the
- /// sub-resources including endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door
+ /// Premium or CDN profile with the specified parameters. Deleting a
+ /// profile will result in the deletion of all of the sub-resources
+ /// including endpoints, origins and custom domains.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -338,7 +365,8 @@ public partial interface IProfilesOperations
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door
+ /// Premium, and CDN profiles within an Azure subscription.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -360,7 +388,8 @@ public partial interface IProfilesOperations
///
Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door
+ /// Premium, and CDN profiles within a resource group.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -382,7 +411,8 @@ public partial interface IProfilesOperations
///
Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Checks the quota and actual usage of endpoints under the given CDN
+ /// Checks the quota and actual usage of endpoints under the given
+ /// Azure Front Door Standard or Azure Front Door Premium or CDN
/// profile.
///
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRoutesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRoutesOperations.cs
index 812dd0a6e4dc..2af750275c53 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRoutesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRoutesOperations.cs
@@ -30,7 +30,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -60,7 +61,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -93,7 +95,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -129,7 +132,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -165,7 +169,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -195,7 +200,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -231,7 +237,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -267,7 +274,8 @@ public partial interface IRoutesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRuleSetsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRuleSetsOperations.cs
index 85db52393a25..9b5aca96d9ac 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRuleSetsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRuleSetsOperations.cs
@@ -30,7 +30,8 @@ public partial interface IRuleSetsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -57,7 +58,8 @@ public partial interface IRuleSetsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally.
@@ -85,7 +87,8 @@ public partial interface IRuleSetsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally
@@ -115,7 +118,8 @@ public partial interface IRuleSetsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally.
@@ -141,7 +145,8 @@ public partial interface IRuleSetsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally.
@@ -163,34 +168,6 @@ public partial interface IRuleSetsOperations
///
Task>> ListResourceUsageWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new rule set within the specified profile.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the CDN profile which is unique within the resource group.
- ///
- ///
- /// Name of the rule set under the profile which is unique globally
- ///
- ///
- /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Deletes an existing AzureFrontDoor rule set with the specified rule
/// set name under the specified subscription, resource group and
/// profile.
@@ -199,7 +176,8 @@ public partial interface IRuleSetsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRulesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRulesOperations.cs
index f82c10ae730f..72d7e89dd215 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRulesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IRulesOperations.cs
@@ -30,7 +30,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -58,7 +59,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -89,7 +91,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -123,7 +126,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -157,7 +161,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -185,7 +190,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -219,7 +225,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
@@ -253,7 +260,8 @@ public partial interface IRulesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the rule set under the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecretsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecretsOperations.cs
index 984742bc493e..2404515a3412 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecretsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecretsOperations.cs
@@ -30,7 +30,8 @@ public partial interface ISecretsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -55,7 +56,8 @@ public partial interface ISecretsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the Secret under the profile.
@@ -83,7 +85,8 @@ public partial interface ISecretsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the Secret under the profile.
@@ -108,44 +111,14 @@ public partial interface ISecretsOperations
///
Task> CreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string secretName, SecretParameters parameters = default(SecretParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing Secret within a profile.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the CDN profile which is unique within the resource group.
- ///
- ///
- /// Name of the Secret under the profile.
- ///
- ///
- /// object which contains secret parameters
- ///
- ///
- /// 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 profileName, string secretName, SecretParameters parameters = default(SecretParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Deletes an existing Secret within profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the Secret under the profile.
@@ -170,7 +143,8 @@ public partial interface ISecretsOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the Secret under the profile.
@@ -195,44 +169,14 @@ public partial interface ISecretsOperations
///
Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string secretName, SecretParameters parameters = default(SecretParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing Secret within a profile.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the CDN profile which is unique within the resource group.
- ///
- ///
- /// Name of the Secret under the profile.
- ///
- ///
- /// object which contains secret parameters
- ///
- ///
- /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string secretName, SecretParameters parameters = default(SecretParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Deletes an existing Secret within profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the Secret under the profile.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecurityPoliciesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecurityPoliciesOperations.cs
index 4a3b2a6520bf..eec3602ddd5d 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecurityPoliciesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ISecurityPoliciesOperations.cs
@@ -30,7 +30,8 @@ public partial interface ISecurityPoliciesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -55,7 +56,8 @@ public partial interface ISecurityPoliciesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the security policy under the profile.
@@ -83,7 +85,8 @@ public partial interface ISecurityPoliciesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the security policy under the profile.
@@ -106,15 +109,16 @@ public partial interface ISecurityPoliciesOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyParameters parameters = default(SecurityPolicyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyPropertiesParameters parameters = default(SecurityPolicyPropertiesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing Secret within a profile.
+ /// Updates an existing security policy within a profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the security policy under the profile.
@@ -137,7 +141,7 @@ public partial interface ISecurityPoliciesOperations
///
/// Thrown when a required parameter is null
///
- Task> PatchWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyParameters parameters = default(SecurityPolicyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PatchWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyPropertiesParameters parameters = default(SecurityPolicyPropertiesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes an existing security policy within profile.
///
@@ -145,10 +149,11 @@ public partial interface ISecurityPoliciesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
- /// Name of the Secret under the profile.
+ /// Name of the security policy under the profile.
///
///
/// The headers that will be added to request.
@@ -170,7 +175,8 @@ public partial interface ISecurityPoliciesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the security policy under the profile.
@@ -193,15 +199,16 @@ public partial interface ISecurityPoliciesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyParameters parameters = default(SecurityPolicyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyPropertiesParameters parameters = default(SecurityPolicyPropertiesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing Secret within a profile.
+ /// Updates an existing security policy within a profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
/// Name of the security policy under the profile.
@@ -224,7 +231,7 @@ public partial interface ISecurityPoliciesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginPatchWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyParameters parameters = default(SecurityPolicyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginPatchWithHttpMessagesAsync(string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyPropertiesParameters parameters = default(SecurityPolicyPropertiesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes an existing security policy within profile.
///
@@ -232,10 +239,11 @@ public partial interface ISecurityPoliciesOperations
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium
+ /// profile which is unique within the resource group.
///
///
- /// Name of the Secret under the profile.
+ /// Name of the security policy under the profile.
///
///
/// The headers that will be added to request.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IValidateOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IValidateOperations.cs
index 16dc555a43a5..0a51c4d74561 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IValidateOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/IValidateOperations.cs
@@ -26,12 +26,8 @@ public partial interface IValidateOperations
///
/// Validate a Secret in the profile.
///
- ///
- /// The secret source.
- ///
- ///
- /// The secret type. Possible values include: 'UrlSigningKey',
- /// 'ManagedCertificate', 'CustomerCertificate'
+ ///
+ /// The Secret source.
///
///
/// The headers that will be added to request.
@@ -48,6 +44,6 @@ public partial interface IValidateOperations
///
/// Thrown when a required parameter is null
///
- Task> SecretMethodWithHttpMessagesAsync(ResourceReference secretSource, string secretType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> SecretMethodWithHttpMessagesAsync(ValidateSecretInput validateSecretInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperations.cs
index 2f8265caa4e8..9a6333b2cf25 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperations.cs
@@ -57,7 +57,9 @@ internal LogAnalyticsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -397,7 +399,9 @@ internal LogAnalyticsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -674,7 +678,9 @@ internal LogAnalyticsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
/// Headers that will be added to request.
@@ -880,7 +886,9 @@ internal LogAnalyticsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
/// Headers that will be added to request.
@@ -1086,7 +1094,9 @@ internal LogAnalyticsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -1384,7 +1394,9 @@ internal LogAnalyticsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperationsExtensions.cs
index b13a68568071..a75a8168e471 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/LogAnalyticsOperationsExtensions.cs
@@ -33,7 +33,9 @@ public static partial class LogAnalyticsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -69,7 +71,9 @@ public static partial class LogAnalyticsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -111,7 +115,9 @@ public static partial class LogAnalyticsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -140,7 +146,9 @@ public static partial class LogAnalyticsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -175,7 +183,9 @@ public static partial class LogAnalyticsOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
public static ContinentsResponse GetLogAnalyticsLocations(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName)
{
@@ -192,7 +202,9 @@ public static ContinentsResponse GetLogAnalyticsLocations(this ILogAnalyticsOper
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
/// The cancellation token.
@@ -215,7 +227,9 @@ public static ContinentsResponse GetLogAnalyticsLocations(this ILogAnalyticsOper
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
public static ResourcesResponse GetLogAnalyticsResources(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName)
{
@@ -232,7 +246,9 @@ public static ResourcesResponse GetLogAnalyticsResources(this ILogAnalyticsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
/// The cancellation token.
@@ -255,7 +271,9 @@ public static ResourcesResponse GetLogAnalyticsResources(this ILogAnalyticsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -287,7 +305,9 @@ public static ResourcesResponse GetLogAnalyticsResources(this ILogAnalyticsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -325,7 +345,9 @@ public static ResourcesResponse GetLogAnalyticsResources(this ILogAnalyticsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
@@ -356,7 +378,9 @@ public static ResourcesResponse GetLogAnalyticsResources(this ILogAnalyticsOpera
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group. which is unique within the
+ /// resource group.
///
///
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ManagedRuleSetsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ManagedRuleSetsOperations.cs
index 2e2943428c72..535850c2e786 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ManagedRuleSetsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ManagedRuleSetsOperations.cs
@@ -96,7 +96,7 @@ internal ManagedRuleSetsOperations(CdnManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Cdn/cdnWebApplicationFirewallManagedRuleSets").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomain.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomain.cs
index 9e689784fb72..c7c61cf871fe 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomain.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomain.cs
@@ -38,12 +38,17 @@ public AFDDomain()
/// Resource ID.
/// Resource name.
/// Resource type.
+ /// The name of the profile which holds the
+ /// domain.
/// The configuration specifying how to
/// enable HTTPS for the domain - using AzureFrontDoor managed
/// certificate or user's own certificate. If not specified, enabling
/// ssl uses AzureFrontDoor managed certificate by default.
/// Resource reference to the Azure DNS
/// zone
+ /// Resource reference
+ /// to the Azure resource where custom domain ownership was
+ /// prevalidated
/// Provisioning status. Possible
/// values include: 'Succeeded', 'Failed', 'Updating', 'Deleting',
/// 'Creating'
@@ -52,15 +57,18 @@ public AFDDomain()
/// Provisioning substate shows the
/// progress of custom HTTPS enabling/disabling process step by step.
/// DCV stands for DomainControlValidation. Possible values include:
- /// 'Unknown', 'Submitting', 'Pending', 'TimedOut',
- /// 'PendingRevalidation', 'Approved'
+ /// 'Unknown', 'Submitting', 'Pending', 'Rejected', 'TimedOut',
+ /// 'PendingRevalidation', 'Approved', 'RefreshingValidationToken',
+ /// 'InternalError'
/// Values the customer needs to
/// validate domain ownership
- public AFDDomain(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), string provisioningState = default(string), string deploymentStatus = default(string), string domainValidationState = default(string), DomainValidationProperties validationProperties = default(DomainValidationProperties))
+ public AFDDomain(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string profileName = default(string), AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), ResourceReference preValidatedCustomDomainResourceId = default(ResourceReference), string provisioningState = default(string), string deploymentStatus = default(string), string domainValidationState = default(string), DomainValidationProperties validationProperties = default(DomainValidationProperties))
: base(id, name, type, systemData)
{
+ ProfileName = profileName;
TlsSettings = tlsSettings;
AzureDnsZone = azureDnsZone;
+ PreValidatedCustomDomainResourceId = preValidatedCustomDomainResourceId;
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
DomainValidationState = domainValidationState;
@@ -74,6 +82,12 @@ public AFDDomain()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the profile which holds the domain.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
///
/// Gets or sets the configuration specifying how to enable HTTPS for
/// the domain - using AzureFrontDoor managed certificate or user's own
@@ -89,6 +103,13 @@ public AFDDomain()
[JsonProperty(PropertyName = "properties.azureDnsZone")]
public ResourceReference AzureDnsZone { get; set; }
+ ///
+ /// Gets or sets resource reference to the Azure resource where custom
+ /// domain ownership was prevalidated
+ ///
+ [JsonProperty(PropertyName = "properties.preValidatedCustomDomainResourceId")]
+ public ResourceReference PreValidatedCustomDomainResourceId { get; set; }
+
///
/// Gets provisioning status. Possible values include: 'Succeeded',
/// 'Failed', 'Updating', 'Deleting', 'Creating'
@@ -107,8 +128,9 @@ public AFDDomain()
/// Gets provisioning substate shows the progress of custom HTTPS
/// enabling/disabling process step by step. DCV stands for
/// DomainControlValidation. Possible values include: 'Unknown',
- /// 'Submitting', 'Pending', 'TimedOut', 'PendingRevalidation',
- /// 'Approved'
+ /// 'Submitting', 'Pending', 'Rejected', 'TimedOut',
+ /// 'PendingRevalidation', 'Approved', 'RefreshingValidationToken',
+ /// 'InternalError'
///
[JsonProperty(PropertyName = "properties.domainValidationState")]
public string DomainValidationState { get; private set; }
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainHttpsParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainHttpsParameters.cs
index 3b4f1dff1860..0b6a15f8224a 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainHttpsParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainHttpsParameters.cs
@@ -32,7 +32,7 @@ public AFDDomainHttpsParameters()
///
/// Defines the source of the SSL
/// certificate. Possible values include: 'CustomerCertificate',
- /// 'ManagedCertificate'
+ /// 'ManagedCertificate', 'AzureFirstPartyManagedCertificate'
/// TLS protocol version that will be
/// used for Https. Possible values include: 'TLS10', 'TLS12'
/// Resource reference to the secret. ie.
@@ -52,7 +52,8 @@ public AFDDomainHttpsParameters()
///
/// Gets or sets defines the source of the SSL certificate. Possible
- /// values include: 'CustomerCertificate', 'ManagedCertificate'
+ /// values include: 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
///
[JsonProperty(PropertyName = "certificateType")]
public string CertificateType { get; set; }
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainUpdateParameters.cs
index 63651f4c661f..8ed6d730aa6c 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDDomainUpdateParameters.cs
@@ -32,16 +32,23 @@ public AFDDomainUpdateParameters()
///
/// Initializes a new instance of the AFDDomainUpdateParameters class.
///
+ /// The name of the profile which holds the
+ /// domain.
/// The configuration specifying how to
/// enable HTTPS for the domain - using AzureFrontDoor managed
/// certificate or user's own certificate. If not specified, enabling
/// ssl uses AzureFrontDoor managed certificate by default.
/// Resource reference to the Azure DNS
/// zone
- public AFDDomainUpdateParameters(AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference))
+ /// Resource reference
+ /// to the Azure resource where custom domain ownership was
+ /// prevalidated
+ public AFDDomainUpdateParameters(string profileName = default(string), AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), ResourceReference preValidatedCustomDomainResourceId = default(ResourceReference))
{
+ ProfileName = profileName;
TlsSettings = tlsSettings;
AzureDnsZone = azureDnsZone;
+ PreValidatedCustomDomainResourceId = preValidatedCustomDomainResourceId;
CustomInit();
}
@@ -50,6 +57,12 @@ public AFDDomainUpdateParameters()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the profile which holds the domain.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
///
/// Gets or sets the configuration specifying how to enable HTTPS for
/// the domain - using AzureFrontDoor managed certificate or user's own
@@ -65,6 +78,13 @@ public AFDDomainUpdateParameters()
[JsonProperty(PropertyName = "properties.azureDnsZone")]
public ResourceReference AzureDnsZone { get; set; }
+ ///
+ /// Gets or sets resource reference to the Azure resource where custom
+ /// domain ownership was prevalidated
+ ///
+ [JsonProperty(PropertyName = "properties.preValidatedCustomDomainResourceId")]
+ public ResourceReference PreValidatedCustomDomainResourceId { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpoint.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpoint.cs
index e8025ec61052..ed33f44d27c4 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpoint.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpoint.cs
@@ -42,9 +42,8 @@ public AFDEndpoint()
/// Resource name.
/// Resource type.
/// Resource tags.
- /// Send and receive timeout
- /// on forwarding request to the origin. When timeout is reached, the
- /// request fails and returns.
+ /// The name of the profile which holds the
+ /// endpoint.
/// Whether to enable use of this rule.
/// Permitted values are 'Enabled' or 'Disabled'. Possible values
/// include: 'Enabled', 'Disabled'
@@ -55,14 +54,19 @@ public AFDEndpoint()
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
/// The host name of the endpoint structured as
/// {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- public AFDEndpoint(string location, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), string enabledState = default(string), string provisioningState = default(string), string deploymentStatus = default(string), string hostName = default(string))
+ /// Indicates the
+ /// endpoint name reuse scope. The default value is TenantReuse.
+ /// Possible values include: 'TenantReuse', 'SubscriptionReuse',
+ /// 'ResourceGroupReuse', 'NoReuse'
+ public AFDEndpoint(string location, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary), string profileName = default(string), string enabledState = default(string), string provisioningState = default(string), string deploymentStatus = default(string), string hostName = default(string), string autoGeneratedDomainNameLabelScope = default(string))
: base(location, id, name, type, systemData, tags)
{
- OriginResponseTimeoutSeconds = originResponseTimeoutSeconds;
+ ProfileName = profileName;
EnabledState = enabledState;
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
HostName = hostName;
+ AutoGeneratedDomainNameLabelScope = autoGeneratedDomainNameLabelScope;
CustomInit();
}
@@ -72,11 +76,10 @@ public AFDEndpoint()
partial void CustomInit();
///
- /// Gets or sets send and receive timeout on forwarding request to the
- /// origin. When timeout is reached, the request fails and returns.
+ /// Gets the name of the profile which holds the endpoint.
///
- [JsonProperty(PropertyName = "properties.originResponseTimeoutSeconds")]
- public int? OriginResponseTimeoutSeconds { get; set; }
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
///
/// Gets or sets whether to enable use of this rule. Permitted values
@@ -107,6 +110,14 @@ public AFDEndpoint()
[JsonProperty(PropertyName = "properties.hostName")]
public string HostName { get; private set; }
+ ///
+ /// Gets or sets indicates the endpoint name reuse scope. The default
+ /// value is TenantReuse. Possible values include: 'TenantReuse',
+ /// 'SubscriptionReuse', 'ResourceGroupReuse', 'NoReuse'
+ ///
+ [JsonProperty(PropertyName = "properties.autoGeneratedDomainNameLabelScope")]
+ public string AutoGeneratedDomainNameLabelScope { get; set; }
+
///
/// Validate the object.
///
@@ -116,10 +127,6 @@ public AFDEndpoint()
public override void Validate()
{
base.Validate();
- if (OriginResponseTimeoutSeconds < 16)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "OriginResponseTimeoutSeconds", 16);
- }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpointUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpointUpdateParameters.cs
index ef1e5f875ccc..139cdb7aa2c6 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpointUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDEndpointUpdateParameters.cs
@@ -38,16 +38,15 @@ public AFDEndpointUpdateParameters()
/// class.
///
/// Endpoint tags.
- /// Send and receive timeout
- /// on forwarding request to the origin. When timeout is reached, the
- /// request fails and returns.
+ /// The name of the profile which holds the
+ /// endpoint.
/// Whether to enable use of this rule.
/// Permitted values are 'Enabled' or 'Disabled'. Possible values
/// include: 'Enabled', 'Disabled'
- public AFDEndpointUpdateParameters(IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), string enabledState = default(string))
+ public AFDEndpointUpdateParameters(IDictionary tags = default(IDictionary), string profileName = default(string), string enabledState = default(string))
{
Tags = tags;
- OriginResponseTimeoutSeconds = originResponseTimeoutSeconds;
+ ProfileName = profileName;
EnabledState = enabledState;
CustomInit();
}
@@ -64,11 +63,10 @@ public AFDEndpointUpdateParameters()
public IDictionary Tags { get; set; }
///
- /// Gets or sets send and receive timeout on forwarding request to the
- /// origin. When timeout is reached, the request fails and returns.
+ /// Gets the name of the profile which holds the endpoint.
///
- [JsonProperty(PropertyName = "properties.originResponseTimeoutSeconds")]
- public int? OriginResponseTimeoutSeconds { get; set; }
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
///
/// Gets or sets whether to enable use of this rule. Permitted values
@@ -78,18 +76,5 @@ public AFDEndpointUpdateParameters()
[JsonProperty(PropertyName = "properties.enabledState")]
public string EnabledState { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (OriginResponseTimeoutSeconds < 16)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "OriginResponseTimeoutSeconds", 16);
- }
- }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOrigin.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOrigin.cs
index 91f28d089f87..86d98708e797 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOrigin.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOrigin.cs
@@ -41,6 +41,8 @@ public AFDOrigin()
/// Resource ID.
/// Resource name.
/// Resource type.
+ /// The name of the origin group which
+ /// contains this origin.
/// Resource reference to the Azure origin
/// resource.
/// The value of the HTTP port. Must be between
@@ -66,14 +68,17 @@ public AFDOrigin()
/// only be disabled if there is a single enabled backend in single
/// enabled backend pool. Possible values include: 'Enabled',
/// 'Disabled'
+ /// Whether to enable
+ /// certificate name check at origin level
/// Provisioning status. Possible
/// values include: 'Succeeded', 'Failed', 'Updating', 'Deleting',
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
- public AFDOrigin(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), ResourceReference azureOrigin = default(ResourceReference), int? httpPort = default(int?), int? httpsPort = default(int?), string originHostHeader = default(string), int? priority = default(int?), int? weight = default(int?), object sharedPrivateLinkResource = default(object), string enabledState = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
+ public AFDOrigin(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string originGroupName = default(string), ResourceReference azureOrigin = default(ResourceReference), int? httpPort = default(int?), int? httpsPort = default(int?), string originHostHeader = default(string), int? priority = default(int?), int? weight = default(int?), SharedPrivateLinkResourceProperties sharedPrivateLinkResource = default(SharedPrivateLinkResourceProperties), string enabledState = default(string), bool? enforceCertificateNameCheck = default(bool?), string provisioningState = default(string), string deploymentStatus = default(string))
: base(id, name, type, systemData)
{
+ OriginGroupName = originGroupName;
AzureOrigin = azureOrigin;
HostName = hostName;
HttpPort = httpPort;
@@ -83,6 +88,7 @@ public AFDOrigin()
Weight = weight;
SharedPrivateLinkResource = sharedPrivateLinkResource;
EnabledState = enabledState;
+ EnforceCertificateNameCheck = enforceCertificateNameCheck;
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
CustomInit();
@@ -93,6 +99,12 @@ public AFDOrigin()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the origin group which contains this origin.
+ ///
+ [JsonProperty(PropertyName = "properties.originGroupName")]
+ public string OriginGroupName { get; private set; }
+
///
/// Gets or sets resource reference to the Azure origin resource.
///
@@ -152,7 +164,7 @@ public AFDOrigin()
/// private origin.
///
[JsonProperty(PropertyName = "properties.sharedPrivateLinkResource")]
- public object SharedPrivateLinkResource { get; set; }
+ public SharedPrivateLinkResourceProperties SharedPrivateLinkResource { get; set; }
///
/// Gets or sets whether to enable health probes to be made against
@@ -163,6 +175,13 @@ public AFDOrigin()
[JsonProperty(PropertyName = "properties.enabledState")]
public string EnabledState { get; set; }
+ ///
+ /// Gets or sets whether to enable certificate name check at origin
+ /// level
+ ///
+ [JsonProperty(PropertyName = "properties.enforceCertificateNameCheck")]
+ public bool? EnforceCertificateNameCheck { get; set; }
+
///
/// Gets provisioning status. Possible values include: 'Succeeded',
/// 'Failed', 'Updating', 'Deleting', 'Creating'
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroup.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroup.cs
index 7e2e1563d7e6..95de7d8ae97d 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroup.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroup.cs
@@ -36,6 +36,8 @@ public AFDOriginGroup()
/// Resource ID.
/// Resource name.
/// Resource type.
+ /// The name of the profile which holds the
+ /// origin group.
/// Load balancing settings for a
/// backend pool
/// Health probe settings to the
@@ -46,10 +48,6 @@ public AFDOriginGroup()
/// unhealthy endpoint comes healthy or a new endpoint is added.
/// Default is 10 mins. This property is currently not
/// supported.
- /// The JSON
- /// object that contains the properties to determine origin health
- /// using real requests/responses. This property is currently not
- /// supported.
/// Whether to allow session
/// affinity on this host. Valid options are 'Enabled' or 'Disabled'.
/// Possible values include: 'Enabled', 'Disabled'
@@ -58,13 +56,13 @@ public AFDOriginGroup()
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
- public AFDOriginGroup(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), LoadBalancingSettingsParameters loadBalancingSettings = default(LoadBalancingSettingsParameters), HealthProbeParameters healthProbeSettings = default(HealthProbeParameters), int? trafficRestorationTimeToHealedOrNewEndpointsInMinutes = default(int?), ResponseBasedOriginErrorDetectionParameters responseBasedAfdOriginErrorDetectionSettings = default(ResponseBasedOriginErrorDetectionParameters), string sessionAffinityState = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
+ public AFDOriginGroup(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string profileName = default(string), LoadBalancingSettingsParameters loadBalancingSettings = default(LoadBalancingSettingsParameters), HealthProbeParameters healthProbeSettings = default(HealthProbeParameters), int? trafficRestorationTimeToHealedOrNewEndpointsInMinutes = default(int?), string sessionAffinityState = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
: base(id, name, type, systemData)
{
+ ProfileName = profileName;
LoadBalancingSettings = loadBalancingSettings;
HealthProbeSettings = healthProbeSettings;
TrafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
- ResponseBasedAfdOriginErrorDetectionSettings = responseBasedAfdOriginErrorDetectionSettings;
SessionAffinityState = sessionAffinityState;
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
@@ -76,6 +74,12 @@ public AFDOriginGroup()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the profile which holds the origin group.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
///
/// Gets or sets load balancing settings for a backend pool
///
@@ -98,14 +102,6 @@ public AFDOriginGroup()
[JsonProperty(PropertyName = "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes")]
public int? TrafficRestorationTimeToHealedOrNewEndpointsInMinutes { get; set; }
- ///
- /// Gets or sets the JSON object that contains the properties to
- /// determine origin health using real requests/responses. This
- /// property is currently not supported.
- ///
- [JsonProperty(PropertyName = "properties.responseBasedAfdOriginErrorDetectionSettings")]
- public ResponseBasedOriginErrorDetectionParameters ResponseBasedAfdOriginErrorDetectionSettings { get; set; }
-
///
/// Gets or sets whether to allow session affinity on this host. Valid
/// options are 'Enabled' or 'Disabled'. Possible values include:
@@ -148,10 +144,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "TrafficRestorationTimeToHealedOrNewEndpointsInMinutes", 0);
}
- if (ResponseBasedAfdOriginErrorDetectionSettings != null)
- {
- ResponseBasedAfdOriginErrorDetectionSettings.Validate();
- }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroupUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroupUpdateParameters.cs
index c4476da2e015..43b683431ee8 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroupUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginGroupUpdateParameters.cs
@@ -35,6 +35,8 @@ public AFDOriginGroupUpdateParameters()
/// Initializes a new instance of the AFDOriginGroupUpdateParameters
/// class.
///
+ /// The name of the profile which holds the
+ /// origin group.
/// Load balancing settings for a
/// backend pool
/// Health probe settings to the
@@ -45,19 +47,15 @@ public AFDOriginGroupUpdateParameters()
/// unhealthy endpoint comes healthy or a new endpoint is added.
/// Default is 10 mins. This property is currently not
/// supported.
- /// The JSON
- /// object that contains the properties to determine origin health
- /// using real requests/responses. This property is currently not
- /// supported.
/// Whether to allow session
/// affinity on this host. Valid options are 'Enabled' or 'Disabled'.
/// Possible values include: 'Enabled', 'Disabled'
- public AFDOriginGroupUpdateParameters(LoadBalancingSettingsParameters loadBalancingSettings = default(LoadBalancingSettingsParameters), HealthProbeParameters healthProbeSettings = default(HealthProbeParameters), int? trafficRestorationTimeToHealedOrNewEndpointsInMinutes = default(int?), ResponseBasedOriginErrorDetectionParameters responseBasedAfdOriginErrorDetectionSettings = default(ResponseBasedOriginErrorDetectionParameters), string sessionAffinityState = default(string))
+ public AFDOriginGroupUpdateParameters(string profileName = default(string), LoadBalancingSettingsParameters loadBalancingSettings = default(LoadBalancingSettingsParameters), HealthProbeParameters healthProbeSettings = default(HealthProbeParameters), int? trafficRestorationTimeToHealedOrNewEndpointsInMinutes = default(int?), string sessionAffinityState = default(string))
{
+ ProfileName = profileName;
LoadBalancingSettings = loadBalancingSettings;
HealthProbeSettings = healthProbeSettings;
TrafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
- ResponseBasedAfdOriginErrorDetectionSettings = responseBasedAfdOriginErrorDetectionSettings;
SessionAffinityState = sessionAffinityState;
CustomInit();
}
@@ -67,6 +65,12 @@ public AFDOriginGroupUpdateParameters()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the profile which holds the origin group.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
///
/// Gets or sets load balancing settings for a backend pool
///
@@ -89,14 +93,6 @@ public AFDOriginGroupUpdateParameters()
[JsonProperty(PropertyName = "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes")]
public int? TrafficRestorationTimeToHealedOrNewEndpointsInMinutes { get; set; }
- ///
- /// Gets or sets the JSON object that contains the properties to
- /// determine origin health using real requests/responses. This
- /// property is currently not supported.
- ///
- [JsonProperty(PropertyName = "properties.responseBasedAfdOriginErrorDetectionSettings")]
- public ResponseBasedOriginErrorDetectionParameters ResponseBasedAfdOriginErrorDetectionSettings { get; set; }
-
///
/// Gets or sets whether to allow session affinity on this host. Valid
/// options are 'Enabled' or 'Disabled'. Possible values include:
@@ -125,10 +121,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "TrafficRestorationTimeToHealedOrNewEndpointsInMinutes", 0);
}
- if (ResponseBasedAfdOriginErrorDetectionSettings != null)
- {
- ResponseBasedAfdOriginErrorDetectionSettings.Validate();
- }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginUpdateParameters.cs
index 632d162e9cc1..64b542e78f97 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AFDOriginUpdateParameters.cs
@@ -33,6 +33,8 @@ public AFDOriginUpdateParameters()
///
/// Initializes a new instance of the AFDOriginUpdateParameters class.
///
+ /// The name of the origin group which
+ /// contains this origin.
/// Resource reference to the Azure origin
/// resource.
/// The address of the origin. Domain names,
@@ -61,8 +63,11 @@ public AFDOriginUpdateParameters()
/// only be disabled if there is a single enabled backend in single
/// enabled backend pool. Possible values include: 'Enabled',
/// 'Disabled'
- public AFDOriginUpdateParameters(ResourceReference azureOrigin = default(ResourceReference), string hostName = default(string), int? httpPort = default(int?), int? httpsPort = default(int?), string originHostHeader = default(string), int? priority = default(int?), int? weight = default(int?), object sharedPrivateLinkResource = default(object), string enabledState = default(string))
+ /// Whether to enable
+ /// certificate name check at origin level
+ public AFDOriginUpdateParameters(string originGroupName = default(string), ResourceReference azureOrigin = default(ResourceReference), string hostName = default(string), int? httpPort = default(int?), int? httpsPort = default(int?), string originHostHeader = default(string), int? priority = default(int?), int? weight = default(int?), SharedPrivateLinkResourceProperties sharedPrivateLinkResource = default(SharedPrivateLinkResourceProperties), string enabledState = default(string), bool? enforceCertificateNameCheck = default(bool?))
{
+ OriginGroupName = originGroupName;
AzureOrigin = azureOrigin;
HostName = hostName;
HttpPort = httpPort;
@@ -72,6 +77,7 @@ public AFDOriginUpdateParameters()
Weight = weight;
SharedPrivateLinkResource = sharedPrivateLinkResource;
EnabledState = enabledState;
+ EnforceCertificateNameCheck = enforceCertificateNameCheck;
CustomInit();
}
@@ -80,6 +86,12 @@ public AFDOriginUpdateParameters()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the origin group which contains this origin.
+ ///
+ [JsonProperty(PropertyName = "properties.originGroupName")]
+ public string OriginGroupName { get; private set; }
+
///
/// Gets or sets resource reference to the Azure origin resource.
///
@@ -139,7 +151,7 @@ public AFDOriginUpdateParameters()
/// private origin.
///
[JsonProperty(PropertyName = "properties.sharedPrivateLinkResource")]
- public object SharedPrivateLinkResource { get; set; }
+ public SharedPrivateLinkResourceProperties SharedPrivateLinkResource { get; set; }
///
/// Gets or sets whether to enable health probes to be made against
@@ -150,6 +162,13 @@ public AFDOriginUpdateParameters()
[JsonProperty(PropertyName = "properties.enabledState")]
public string EnabledState { get; set; }
+ ///
+ /// Gets or sets whether to enable certificate name check at origin
+ /// level
+ ///
+ [JsonProperty(PropertyName = "properties.enforceCertificateNameCheck")]
+ public bool? EnforceCertificateNameCheck { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ActivatedResourceReference.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ActivatedResourceReference.cs
new file mode 100644
index 000000000000..31a7f0b86c27
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ActivatedResourceReference.cs
@@ -0,0 +1,62 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Reference to another resource along with its state.
+ ///
+ public partial class ActivatedResourceReference : IResource
+ {
+ ///
+ /// Initializes a new instance of the ActivatedResourceReference class.
+ ///
+ public ActivatedResourceReference()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ActivatedResourceReference class.
+ ///
+ /// Resource ID.
+ /// Whether the resource is active or
+ /// inactive
+ public ActivatedResourceReference(string id = default(string), bool? isActive = default(bool?))
+ {
+ Id = id;
+ IsActive = isActive;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource ID.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ ///
+ /// Gets whether the resource is active or inactive
+ ///
+ [JsonProperty(PropertyName = "isActive")]
+ public bool? IsActive { get; private set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdCertificateType.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdCertificateType.cs
index 2fa03a70d14d..37dfe41a002e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdCertificateType.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdCertificateType.cs
@@ -18,5 +18,6 @@ public static class AfdCertificateType
{
public const string CustomerCertificate = "CustomerCertificate";
public const string ManagedCertificate = "ManagedCertificate";
+ public const string AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdErrorResponse.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdErrorResponse.cs
index aa71302bbb53..f55c615c67c4 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdErrorResponse.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdErrorResponse.cs
@@ -35,7 +35,7 @@ public AfdErrorResponse()
/// Initializes a new instance of the AfdErrorResponse class.
///
/// The error object.
- public AfdErrorResponse(ErrorResponse error = default(ErrorResponse))
+ public AfdErrorResponse(ErrorDetail error = default(ErrorDetail))
{
Error = error;
CustomInit();
@@ -50,7 +50,7 @@ public AfdErrorResponse()
/// Gets or sets the error object.
///
[JsonProperty(PropertyName = "error")]
- public ErrorResponse Error { get; set; }
+ public ErrorDetail Error { get; set; }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdQueryStringCachingBehavior.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdQueryStringCachingBehavior.cs
index 34b448cc2f4b..9dbe911d0ea2 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdQueryStringCachingBehavior.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdQueryStringCachingBehavior.cs
@@ -10,57 +10,15 @@
namespace Microsoft.Azure.Management.Cdn.Models
{
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using System.Runtime;
- using System.Runtime.Serialization;
///
/// Defines values for AfdQueryStringCachingBehavior.
///
- [JsonConverter(typeof(StringEnumConverter))]
- public enum AfdQueryStringCachingBehavior
+ public static class AfdQueryStringCachingBehavior
{
- [EnumMember(Value = "IgnoreQueryString")]
- IgnoreQueryString,
- [EnumMember(Value = "UseQueryString")]
- UseQueryString,
- [EnumMember(Value = "NotSet")]
- NotSet
- }
- internal static class AfdQueryStringCachingBehaviorEnumExtension
- {
- internal static string ToSerializedValue(this AfdQueryStringCachingBehavior? value)
- {
- return value == null ? null : ((AfdQueryStringCachingBehavior)value).ToSerializedValue();
- }
-
- internal static string ToSerializedValue(this AfdQueryStringCachingBehavior value)
- {
- switch( value )
- {
- case AfdQueryStringCachingBehavior.IgnoreQueryString:
- return "IgnoreQueryString";
- case AfdQueryStringCachingBehavior.UseQueryString:
- return "UseQueryString";
- case AfdQueryStringCachingBehavior.NotSet:
- return "NotSet";
- }
- return null;
- }
-
- internal static AfdQueryStringCachingBehavior? ParseAfdQueryStringCachingBehavior(this string value)
- {
- switch( value )
- {
- case "IgnoreQueryString":
- return AfdQueryStringCachingBehavior.IgnoreQueryString;
- case "UseQueryString":
- return AfdQueryStringCachingBehavior.UseQueryString;
- case "NotSet":
- return AfdQueryStringCachingBehavior.NotSet;
- }
- return null;
- }
+ public const string IgnoreQueryString = "IgnoreQueryString";
+ public const string UseQueryString = "UseQueryString";
+ public const string IgnoreSpecifiedQueryStrings = "IgnoreSpecifiedQueryStrings";
+ public const string IncludeSpecifiedQueryStrings = "IncludeSpecifiedQueryStrings";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdRouteCacheConfiguration.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdRouteCacheConfiguration.cs
new file mode 100644
index 000000000000..c0151c2bb005
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AfdRouteCacheConfiguration.cs
@@ -0,0 +1,81 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Caching settings for a caching-type route. To disable caching, do not
+ /// provide a cacheConfiguration object.
+ ///
+ public partial class AfdRouteCacheConfiguration
+ {
+ ///
+ /// Initializes a new instance of the AfdRouteCacheConfiguration class.
+ ///
+ public AfdRouteCacheConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AfdRouteCacheConfiguration class.
+ ///
+ /// Defines how Frontdoor
+ /// caches requests that include query strings. You can ignore any
+ /// query strings when caching, ignore specific query strings, cache
+ /// every request with a unique URL, or cache specific query strings.
+ /// Possible values include: 'IgnoreQueryString', 'UseQueryString',
+ /// 'IgnoreSpecifiedQueryStrings',
+ /// 'IncludeSpecifiedQueryStrings'
+ /// query parameters to include or
+ /// exclude (comma separated).
+ /// compression settings.
+ public AfdRouteCacheConfiguration(string queryStringCachingBehavior = default(string), string queryParameters = default(string), CompressionSettings compressionSettings = default(CompressionSettings))
+ {
+ QueryStringCachingBehavior = queryStringCachingBehavior;
+ QueryParameters = queryParameters;
+ CompressionSettings = compressionSettings;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines how Frontdoor caches requests that include
+ /// query strings. You can ignore any query strings when caching,
+ /// ignore specific query strings, cache every request with a unique
+ /// URL, or cache specific query strings. Possible values include:
+ /// 'IgnoreQueryString', 'UseQueryString',
+ /// 'IgnoreSpecifiedQueryStrings', 'IncludeSpecifiedQueryStrings'
+ ///
+ [JsonProperty(PropertyName = "queryStringCachingBehavior")]
+ public string QueryStringCachingBehavior { get; set; }
+
+ ///
+ /// Gets or sets query parameters to include or exclude (comma
+ /// separated).
+ ///
+ [JsonProperty(PropertyName = "queryParameters")]
+ public string QueryParameters { get; set; }
+
+ ///
+ /// Gets or sets compression settings.
+ ///
+ [JsonProperty(PropertyName = "compressionSettings")]
+ public CompressionSettings CompressionSettings { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs
new file mode 100644
index 000000000000..d06ee48293af
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs
@@ -0,0 +1,24 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for AutoGeneratedDomainNameLabelScope.
+ ///
+ public static class AutoGeneratedDomainNameLabelScope
+ {
+ public const string TenantReuse = "TenantReuse";
+ public const string SubscriptionReuse = "SubscriptionReuse";
+ public const string ResourceGroupReuse = "ResourceGroupReuse";
+ public const string NoReuse = "NoReuse";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AzureFirstPartyManagedCertificate.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AzureFirstPartyManagedCertificate.cs
new file mode 100644
index 000000000000..9c0751ebb2c7
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AzureFirstPartyManagedCertificate.cs
@@ -0,0 +1,51 @@
+//
+// 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.Cdn.Models
+{
+ using System.Linq;
+
+ ///
+ /// Azure FirstParty Managed Certificate provided by other first party
+ /// resource providers to enable HTTPS.
+ ///
+ public partial class AzureFirstPartyManagedCertificate : Certificate
+ {
+ ///
+ /// Initializes a new instance of the AzureFirstPartyManagedCertificate
+ /// class.
+ ///
+ public AzureFirstPartyManagedCertificate()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureFirstPartyManagedCertificate
+ /// class.
+ ///
+ /// Possible values include: 'UrlSigningKey',
+ /// 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
+ /// Subject name in the certificate.
+ /// Certificate expiration date.
+ public AzureFirstPartyManagedCertificate(string type = default(string), string subject = default(string), string expirationDate = default(string))
+ : base(type, subject, expirationDate)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AzureFirstPartyManagedCertificateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AzureFirstPartyManagedCertificateParameters.cs
new file mode 100644
index 000000000000..6ea3892414fc
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/AzureFirstPartyManagedCertificateParameters.cs
@@ -0,0 +1,39 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Azure FirstParty Managed Certificate provided by other first party
+ /// resource providers to enable HTTPS.
+ ///
+ [Newtonsoft.Json.JsonObject("AzureFirstPartyManagedCertificate")]
+ public partial class AzureFirstPartyManagedCertificateParameters : SecretParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AzureFirstPartyManagedCertificateParameters class.
+ ///
+ public AzureFirstPartyManagedCertificateParameters()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheConfiguration.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheConfiguration.cs
new file mode 100644
index 000000000000..f875101c6e3c
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheConfiguration.cs
@@ -0,0 +1,111 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Caching settings for a caching-type route. To disable caching, do not
+ /// provide a cacheConfiguration object.
+ ///
+ public partial class CacheConfiguration
+ {
+ ///
+ /// Initializes a new instance of the CacheConfiguration class.
+ ///
+ public CacheConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CacheConfiguration class.
+ ///
+ /// Defines how Frontdoor
+ /// caches requests that include query strings. You can ignore any
+ /// query strings when caching, ignore specific query strings, cache
+ /// every request with a unique URL, or cache specific query strings.
+ /// Possible values include: 'IgnoreQueryString', 'UseQueryString',
+ /// 'IgnoreSpecifiedQueryStrings',
+ /// 'IncludeSpecifiedQueryStrings'
+ /// query parameters to include or
+ /// exclude (comma separated).
+ /// Indicates whether content
+ /// compression is enabled. If compression is enabled, content will be
+ /// served as compressed if user requests for a compressed version.
+ /// Content won't be compressed on AzureFrontDoor when requested
+ /// content is smaller than 1 byte or larger than 1 MB. Possible values
+ /// include: 'Enabled', 'Disabled'
+ /// Caching behavior for the requests.
+ /// Possible values include: 'HonorOrigin', 'OverrideAlways',
+ /// 'OverrideIfOriginMissing'
+ /// The duration for which the content
+ /// needs to be cached. Allowed format is [d.]hh:mm:ss
+ public CacheConfiguration(string queryStringCachingBehavior = default(string), string queryParameters = default(string), string isCompressionEnabled = default(string), string cacheBehavior = default(string), string cacheDuration = default(string))
+ {
+ QueryStringCachingBehavior = queryStringCachingBehavior;
+ QueryParameters = queryParameters;
+ IsCompressionEnabled = isCompressionEnabled;
+ CacheBehavior = cacheBehavior;
+ CacheDuration = cacheDuration;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines how Frontdoor caches requests that include
+ /// query strings. You can ignore any query strings when caching,
+ /// ignore specific query strings, cache every request with a unique
+ /// URL, or cache specific query strings. Possible values include:
+ /// 'IgnoreQueryString', 'UseQueryString',
+ /// 'IgnoreSpecifiedQueryStrings', 'IncludeSpecifiedQueryStrings'
+ ///
+ [JsonProperty(PropertyName = "queryStringCachingBehavior")]
+ public string QueryStringCachingBehavior { get; set; }
+
+ ///
+ /// Gets or sets query parameters to include or exclude (comma
+ /// separated).
+ ///
+ [JsonProperty(PropertyName = "queryParameters")]
+ public string QueryParameters { get; set; }
+
+ ///
+ /// Gets or sets indicates whether content compression is enabled. If
+ /// compression is enabled, content will be served as compressed if
+ /// user requests for a compressed version. Content won't be compressed
+ /// on AzureFrontDoor when requested content is smaller than 1 byte or
+ /// larger than 1 MB. Possible values include: 'Enabled', 'Disabled'
+ ///
+ [JsonProperty(PropertyName = "isCompressionEnabled")]
+ public string IsCompressionEnabled { get; set; }
+
+ ///
+ /// Gets or sets caching behavior for the requests. Possible values
+ /// include: 'HonorOrigin', 'OverrideAlways', 'OverrideIfOriginMissing'
+ ///
+ [JsonProperty(PropertyName = "cacheBehavior")]
+ public string CacheBehavior { get; set; }
+
+ ///
+ /// Gets or sets the duration for which the content needs to be cached.
+ /// Allowed format is [d.]hh:mm:ss
+ ///
+ [JsonProperty(PropertyName = "cacheDuration")]
+ public string CacheDuration { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheExpirationActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheExpirationActionParameters.cs
index b26b723aec36..cfdb8662c5ce 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheExpirationActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheExpirationActionParameters.cs
@@ -48,7 +48,7 @@ public CacheExpirationActionParameters()
///
static CacheExpirationActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters";
+ TypeName = "DeliveryRuleCacheExpirationActionParameters";
CacheType = "All";
}
@@ -73,8 +73,8 @@ static CacheExpirationActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// The level at which the content needs to be cached.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheKeyQueryStringActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheKeyQueryStringActionParameters.cs
index 83fe224d5efc..97b60b2a60a3 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheKeyQueryStringActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CacheKeyQueryStringActionParameters.cs
@@ -48,7 +48,7 @@ public CacheKeyQueryStringActionParameters()
///
static CacheKeyQueryStringActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters";
+ TypeName = "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters";
}
///
@@ -72,8 +72,8 @@ static CacheKeyQueryStringActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CdnCertificateSourceParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CdnCertificateSourceParameters.cs
index 91d5534469f6..fc3583414ff7 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CdnCertificateSourceParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CdnCertificateSourceParameters.cs
@@ -45,7 +45,7 @@ public CdnCertificateSourceParameters(string certificateType)
///
static CdnCertificateSourceParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters";
+ TypeName = "CdnCertificateSourceParameters";
}
///
@@ -62,8 +62,8 @@ static CdnCertificateSourceParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Certificate.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Certificate.cs
index f268c76540ee..ffa5a14207f4 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Certificate.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Certificate.cs
@@ -29,14 +29,16 @@ public Certificate()
///
/// Initializes a new instance of the Certificate class.
///
+ /// Possible values include: 'UrlSigningKey',
+ /// 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
/// Subject name in the certificate.
/// Certificate expiration date.
- /// Certificate thumbprint.
- public Certificate(string subject = default(string), string expirationDate = default(string), string thumbprint = default(string))
+ public Certificate(string type = default(string), string subject = default(string), string expirationDate = default(string))
{
+ Type = type;
Subject = subject;
ExpirationDate = expirationDate;
- Thumbprint = thumbprint;
CustomInit();
}
@@ -46,22 +48,24 @@ public Certificate()
partial void CustomInit();
///
- /// Gets or sets subject name in the certificate.
+ /// Gets or sets possible values include: 'UrlSigningKey',
+ /// 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
///
- [JsonProperty(PropertyName = "subject")]
- public string Subject { get; set; }
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
///
- /// Gets or sets certificate expiration date.
+ /// Gets subject name in the certificate.
///
- [JsonProperty(PropertyName = "expirationDate")]
- public string ExpirationDate { get; set; }
+ [JsonProperty(PropertyName = "subject")]
+ public string Subject { get; private set; }
///
- /// Gets or sets certificate thumbprint.
+ /// Gets certificate expiration date.
///
- [JsonProperty(PropertyName = "thumbprint")]
- public string Thumbprint { get; set; }
+ [JsonProperty(PropertyName = "expirationDate")]
+ public string ExpirationDate { get; private set; }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckEndpointNameAvailabilityInput.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckEndpointNameAvailabilityInput.cs
new file mode 100644
index 000000000000..6cc5fe9c1db8
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckEndpointNameAvailabilityInput.cs
@@ -0,0 +1,98 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Input of CheckNameAvailability API.
+ ///
+ public partial class CheckEndpointNameAvailabilityInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// CheckEndpointNameAvailabilityInput class.
+ ///
+ public CheckEndpointNameAvailabilityInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// CheckEndpointNameAvailabilityInput class.
+ ///
+ /// The resource name to validate.
+ /// The type of the resource whose name is to be
+ /// validated. Possible values include:
+ /// 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ /// Indicates the
+ /// endpoint name reuse scope. The default value is TenantReuse.
+ /// Possible values include: 'TenantReuse', 'SubscriptionReuse',
+ /// 'ResourceGroupReuse', 'NoReuse'
+ public CheckEndpointNameAvailabilityInput(string name, string type, string autoGeneratedDomainNameLabelScope = default(string))
+ {
+ Name = name;
+ Type = type;
+ AutoGeneratedDomainNameLabelScope = autoGeneratedDomainNameLabelScope;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the resource name to validate.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets the type of the resource whose name is to be
+ /// validated. Possible values include:
+ /// 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ ///
+ /// Gets or sets indicates the endpoint name reuse scope. The default
+ /// value is TenantReuse. Possible values include: 'TenantReuse',
+ /// 'SubscriptionReuse', 'ResourceGroupReuse', 'NoReuse'
+ ///
+ [JsonProperty(PropertyName = "autoGeneratedDomainNameLabelScope")]
+ public string AutoGeneratedDomainNameLabelScope { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Name");
+ }
+ if (Type == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Type");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckEndpointNameAvailabilityOutput.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckEndpointNameAvailabilityOutput.cs
new file mode 100644
index 000000000000..671b09c8fd1b
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckEndpointNameAvailabilityOutput.cs
@@ -0,0 +1,85 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Output of check name availability API.
+ ///
+ public partial class CheckEndpointNameAvailabilityOutput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// CheckEndpointNameAvailabilityOutput class.
+ ///
+ public CheckEndpointNameAvailabilityOutput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// CheckEndpointNameAvailabilityOutput class.
+ ///
+ /// Indicates whether the name is
+ /// available.
+ /// Returns the available hostname
+ /// generated based on the AutoGeneratedDomainNameLabelScope when the
+ /// name is available, otherwise it returns empty string
+ /// The reason why the name is not
+ /// available.
+ /// The detailed error message describing why the
+ /// name is not available.
+ public CheckEndpointNameAvailabilityOutput(bool? nameAvailable = default(bool?), string availableHostname = default(string), string reason = default(string), string message = default(string))
+ {
+ NameAvailable = nameAvailable;
+ AvailableHostname = availableHostname;
+ Reason = reason;
+ Message = message;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets indicates whether the name is available.
+ ///
+ [JsonProperty(PropertyName = "nameAvailable")]
+ public bool? NameAvailable { get; private set; }
+
+ ///
+ /// Gets returns the available hostname generated based on the
+ /// AutoGeneratedDomainNameLabelScope when the name is available,
+ /// otherwise it returns empty string
+ ///
+ [JsonProperty(PropertyName = "availableHostname")]
+ public string AvailableHostname { get; private set; }
+
+ ///
+ /// Gets the reason why the name is not available.
+ ///
+ [JsonProperty(PropertyName = "reason")]
+ public string Reason { get; private set; }
+
+ ///
+ /// Gets the detailed error message describing why the name is not
+ /// available.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; private set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckHostNameAvailabilityInput.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckHostNameAvailabilityInput.cs
new file mode 100644
index 000000000000..f7c852615955
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckHostNameAvailabilityInput.cs
@@ -0,0 +1,67 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Input of CheckHostNameAvailability API.
+ ///
+ public partial class CheckHostNameAvailabilityInput
+ {
+ ///
+ /// Initializes a new instance of the CheckHostNameAvailabilityInput
+ /// class.
+ ///
+ public CheckHostNameAvailabilityInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CheckHostNameAvailabilityInput
+ /// class.
+ ///
+ /// The host name to validate.
+ public CheckHostNameAvailabilityInput(string hostName)
+ {
+ HostName = hostName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the host name to validate.
+ ///
+ [JsonProperty(PropertyName = "hostName")]
+ public string HostName { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (HostName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "HostName");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckNameAvailabilityInput.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckNameAvailabilityInput.cs
index 6176224191b9..81abe08ea737 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckNameAvailabilityInput.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CheckNameAvailabilityInput.cs
@@ -31,18 +31,16 @@ public CheckNameAvailabilityInput()
/// Initializes a new instance of the CheckNameAvailabilityInput class.
///
/// The resource name to validate.
- public CheckNameAvailabilityInput(string name)
+ /// The type of the resource whose name is to be
+ /// validated. Possible values include:
+ /// 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
+ public CheckNameAvailabilityInput(string name, string type)
{
Name = name;
+ Type = type;
CustomInit();
}
- ///
- /// Static constructor for CheckNameAvailabilityInput class.
- ///
- static CheckNameAvailabilityInput()
- {
- Type = "Microsoft.Cdn/Profiles/Endpoints";
- }
///
/// An initialization method that performs custom operations like setting defaults
@@ -56,10 +54,13 @@ static CheckNameAvailabilityInput()
public string Name { get; set; }
///
- /// The type of the resource whose name is to be validated.
+ /// Gets or sets the type of the resource whose name is to be
+ /// validated. Possible values include:
+ /// 'Microsoft.Cdn/Profiles/Endpoints',
+ /// 'Microsoft.Cdn/Profiles/AfdEndpoints'
///
[JsonProperty(PropertyName = "type")]
- public static string Type { get; private set; }
+ public string Type { get; set; }
///
/// Validate the object.
@@ -73,6 +74,10 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
+ if (Type == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Type");
+ }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ClientPortMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ClientPortMatchConditionParameters.cs
new file mode 100644
index 000000000000..611f3c235c67
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ClientPortMatchConditionParameters.cs
@@ -0,0 +1,113 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for ClientPort match conditions
+ ///
+ public partial class ClientPortMatchConditionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ClientPortMatchConditionParameters class.
+ ///
+ public ClientPortMatchConditionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ClientPortMatchConditionParameters class.
+ ///
+ /// Describes operator to be matched.
+ /// Possible values include: 'Any', 'Equal', 'Contains', 'BeginsWith',
+ /// 'EndsWith', 'LessThan', 'LessThanOrEqual', 'GreaterThan',
+ /// 'GreaterThanOrEqual', 'RegEx'
+ /// Describes if this is negate condition
+ /// or not
+ /// The match value for the condition of the
+ /// delivery rule
+ /// List of transforms
+ public ClientPortMatchConditionParameters(string operatorProperty, bool? negateCondition = default(bool?), IList matchValues = default(IList), IList transforms = default(IList))
+ {
+ OperatorProperty = operatorProperty;
+ NegateCondition = negateCondition;
+ MatchValues = matchValues;
+ Transforms = transforms;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for ClientPortMatchConditionParameters class.
+ ///
+ static ClientPortMatchConditionParameters()
+ {
+ TypeName = "DeliveryRuleClientPortConditionParameters";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes operator to be matched. Possible values
+ /// include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
+ /// 'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual',
+ /// 'RegEx'
+ ///
+ [JsonProperty(PropertyName = "operator")]
+ public string OperatorProperty { get; set; }
+
+ ///
+ /// Gets or sets describes if this is negate condition or not
+ ///
+ [JsonProperty(PropertyName = "negateCondition")]
+ public bool? NegateCondition { get; set; }
+
+ ///
+ /// Gets or sets the match value for the condition of the delivery rule
+ ///
+ [JsonProperty(PropertyName = "matchValues")]
+ public IList MatchValues { get; set; }
+
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (OperatorProperty == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ClientPortOperator.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ClientPortOperator.cs
new file mode 100644
index 000000000000..8d18a38398b6
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ClientPortOperator.cs
@@ -0,0 +1,30 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for ClientPortOperator.
+ ///
+ public static class ClientPortOperator
+ {
+ public const string Any = "Any";
+ public const string Equal = "Equal";
+ public const string Contains = "Contains";
+ public const string BeginsWith = "BeginsWith";
+ public const string EndsWith = "EndsWith";
+ public const string LessThan = "LessThan";
+ public const string LessThanOrEqual = "LessThanOrEqual";
+ public const string GreaterThan = "GreaterThan";
+ public const string GreaterThanOrEqual = "GreaterThanOrEqual";
+ public const string RegEx = "RegEx";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CookiesMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CookiesMatchConditionParameters.cs
index 1a07982f3cdd..53c939f360a2 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CookiesMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CookiesMatchConditionParameters.cs
@@ -58,7 +58,7 @@ public CookiesMatchConditionParameters()
///
static CookiesMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters";
+ TypeName = "DeliveryRuleCookiesConditionParameters";
}
///
@@ -101,8 +101,8 @@ static CookiesMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomDomain.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomDomain.cs
index 455786263358..208a5eb1c317 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomDomain.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomDomain.cs
@@ -53,19 +53,22 @@ public CustomDomain()
/// 'DomainControlValidationRequestTimedOut', 'IssuingCertificate',
/// 'DeployingCertificate', 'CertificateDeployed',
/// 'DeletingCertificate', 'CertificateDeleted'
+ /// Certificate parameters for
+ /// securing custom HTTPS
/// Special validation or data may be
/// required when delivering CDN to some regions due to local
/// compliance reasons. E.g. ICP license number of a custom domain is
/// required to deliver content in China.
/// Provisioning status of the custom
/// domain.
- public CustomDomain(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string resourceState = default(string), string customHttpsProvisioningState = default(string), string customHttpsProvisioningSubstate = default(string), string validationData = default(string), string provisioningState = default(string))
+ public CustomDomain(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string resourceState = default(string), string customHttpsProvisioningState = default(string), string customHttpsProvisioningSubstate = default(string), CustomDomainHttpsParameters customHttpsParameters = default(CustomDomainHttpsParameters), string validationData = default(string), string provisioningState = default(string))
: base(id, name, type, systemData)
{
HostName = hostName;
ResourceState = resourceState;
CustomHttpsProvisioningState = customHttpsProvisioningState;
CustomHttpsProvisioningSubstate = customHttpsProvisioningSubstate;
+ CustomHttpsParameters = customHttpsParameters;
ValidationData = validationData;
ProvisioningState = provisioningState;
CustomInit();
@@ -112,6 +115,12 @@ public CustomDomain()
[JsonProperty(PropertyName = "properties.customHttpsProvisioningSubstate")]
public string CustomHttpsProvisioningSubstate { get; private set; }
+ ///
+ /// Gets or sets certificate parameters for securing custom HTTPS
+ ///
+ [JsonProperty(PropertyName = "properties.customHttpsParameters")]
+ public CustomDomainHttpsParameters CustomHttpsParameters { get; set; }
+
///
/// Gets or sets special validation or data may be required when
/// delivering CDN to some regions due to local compliance reasons.
@@ -139,6 +148,10 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "HostName");
}
+ if (CustomHttpsParameters != null)
+ {
+ CustomHttpsParameters.Validate();
+ }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificate.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificate.cs
index 68993224bb7a..7de0ed85c0c4 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificate.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificate.cs
@@ -10,7 +10,6 @@
namespace Microsoft.Azure.Management.Cdn.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -32,25 +31,30 @@ public CustomerCertificate()
///
/// Initializes a new instance of the CustomerCertificate class.
///
- /// Complete Url to the
- /// certificate
+ /// Possible values include: 'UrlSigningKey',
+ /// 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
/// Subject name in the certificate.
/// Certificate expiration date.
- /// Certificate thumbprint.
- /// Certificate version.
+ /// Resource reference to the Azure Key
+ /// Vault certificate. Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
+ /// Certificate version.
/// Certificate issuing
/// authority.
/// Whether to use the latest version
/// for the certificate
/// The list of SANs.
- public CustomerCertificate(string certificateUrl, string subject = default(string), string expirationDate = default(string), string thumbprint = default(string), string version = default(string), string certificateAuthority = default(string), bool? useLatestVersion = default(bool?), IList subjectAlternativeNames = default(IList))
- : base(subject, expirationDate, thumbprint)
+ /// Certificate thumbprint.
+ public CustomerCertificate(string type = default(string), string subject = default(string), string expirationDate = default(string), ResourceReference secretSource = default(ResourceReference), string secretVersion = default(string), string certificateAuthority = default(string), bool? useLatestVersion = default(bool?), IList subjectAlternativeNames = default(IList), string thumbprint = default(string))
+ : base(type, subject, expirationDate)
{
- Version = version;
+ SecretSource = secretSource;
+ SecretVersion = secretVersion;
CertificateAuthority = certificateAuthority;
- CertificateUrl = certificateUrl;
UseLatestVersion = useLatestVersion;
SubjectAlternativeNames = subjectAlternativeNames;
+ Thumbprint = thumbprint;
CustomInit();
}
@@ -60,22 +64,24 @@ public CustomerCertificate()
partial void CustomInit();
///
- /// Gets or sets certificate version.
+ /// Gets or sets resource reference to the Azure Key Vault certificate.
+ /// Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
///
- [JsonProperty(PropertyName = "version")]
- public string Version { get; set; }
+ [JsonProperty(PropertyName = "secretSource")]
+ public ResourceReference SecretSource { get; set; }
///
- /// Gets or sets certificate issuing authority.
+ /// Gets or sets certificate version.
///
- [JsonProperty(PropertyName = "certificateAuthority")]
- public string CertificateAuthority { get; set; }
+ [JsonProperty(PropertyName = "secretVersion")]
+ public string SecretVersion { get; set; }
///
- /// Gets or sets complete Url to the certificate
+ /// Gets certificate issuing authority.
///
- [JsonProperty(PropertyName = "certificateUrl")]
- public string CertificateUrl { get; set; }
+ [JsonProperty(PropertyName = "certificateAuthority")]
+ public string CertificateAuthority { get; private set; }
///
/// Gets or sets whether to use the latest version for the certificate
@@ -90,17 +96,10 @@ public CustomerCertificate()
public IList SubjectAlternativeNames { get; set; }
///
- /// Validate the object.
+ /// Gets certificate thumbprint.
///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (CertificateUrl == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "CertificateUrl");
- }
- }
+ [JsonProperty(PropertyName = "thumbprint")]
+ public string Thumbprint { get; private set; }
+
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificateParameters.cs
index 573dfaca0f53..1d31bedadf53 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/CustomerCertificateParameters.cs
@@ -35,22 +35,29 @@ public CustomerCertificateParameters()
/// Initializes a new instance of the CustomerCertificateParameters
/// class.
///
- /// Resource reference to the KV
- /// secret
+ /// Resource reference to the Azure Key
+ /// Vault certificate. Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
/// Version of the secret to be
/// used
- /// Certificate issuing
- /// authority.
/// Whether to use the latest version
/// for the certificate
+ /// Subject name in the certificate.
+ /// Certificate expiration date.
+ /// Certificate issuing
+ /// authority.
/// The list of SANs.
- public CustomerCertificateParameters(ResourceReference secretSource, string secretVersion = default(string), string certificateAuthority = default(string), bool? useLatestVersion = default(bool?), IList subjectAlternativeNames = default(IList))
+ /// Certificate thumbprint.
+ public CustomerCertificateParameters(ResourceReference secretSource, string secretVersion = default(string), bool? useLatestVersion = default(bool?), string subject = default(string), string expirationDate = default(string), string certificateAuthority = default(string), IList subjectAlternativeNames = default(IList), string thumbprint = default(string))
{
SecretSource = secretSource;
SecretVersion = secretVersion;
- CertificateAuthority = certificateAuthority;
UseLatestVersion = useLatestVersion;
+ Subject = subject;
+ ExpirationDate = expirationDate;
+ CertificateAuthority = certificateAuthority;
SubjectAlternativeNames = subjectAlternativeNames;
+ Thumbprint = thumbprint;
CustomInit();
}
@@ -60,7 +67,9 @@ public CustomerCertificateParameters()
partial void CustomInit();
///
- /// Gets or sets resource reference to the KV secret
+ /// Gets or sets resource reference to the Azure Key Vault certificate.
+ /// Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
///
[JsonProperty(PropertyName = "secretSource")]
public ResourceReference SecretSource { get; set; }
@@ -71,24 +80,42 @@ public CustomerCertificateParameters()
[JsonProperty(PropertyName = "secretVersion")]
public string SecretVersion { get; set; }
- ///
- /// Gets or sets certificate issuing authority.
- ///
- [JsonProperty(PropertyName = "certificateAuthority")]
- public string CertificateAuthority { get; set; }
-
///
/// Gets or sets whether to use the latest version for the certificate
///
[JsonProperty(PropertyName = "useLatestVersion")]
public bool? UseLatestVersion { get; set; }
+ ///
+ /// Gets subject name in the certificate.
+ ///
+ [JsonProperty(PropertyName = "subject")]
+ public string Subject { get; private set; }
+
+ ///
+ /// Gets certificate expiration date.
+ ///
+ [JsonProperty(PropertyName = "expirationDate")]
+ public string ExpirationDate { get; private set; }
+
+ ///
+ /// Gets certificate issuing authority.
+ ///
+ [JsonProperty(PropertyName = "certificateAuthority")]
+ public string CertificateAuthority { get; private set; }
+
///
/// Gets or sets the list of SANs.
///
[JsonProperty(PropertyName = "subjectAlternativeNames")]
public IList SubjectAlternativeNames { get; set; }
+ ///
+ /// Gets certificate thumbprint.
+ ///
+ [JsonProperty(PropertyName = "thumbprint")]
+ public string Thumbprint { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeepCreatedOrigin.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeepCreatedOrigin.cs
index 22def4861a22..8b8a3dc3d5c2 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeepCreatedOrigin.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeepCreatedOrigin.cs
@@ -68,7 +68,10 @@ public DeepCreatedOrigin()
/// A custom message to be
/// included in the approval request to connect to the Private
/// Link.
- public DeepCreatedOrigin(string name, string hostName, int? httpPort = default(int?), int? httpsPort = default(int?), string originHostHeader = default(string), int? priority = default(int?), int? weight = default(int?), bool? enabled = default(bool?), string privateLinkAlias = default(string), string privateLinkResourceId = default(string), string privateLinkLocation = default(string), string privateLinkApprovalMessage = default(string))
+ /// The approval status for the
+ /// connection to the Private Link. Possible values include: 'Pending',
+ /// 'Approved', 'Rejected', 'Disconnected', 'Timeout'
+ public DeepCreatedOrigin(string name, string hostName, int? httpPort = default(int?), int? httpsPort = default(int?), string originHostHeader = default(string), int? priority = default(int?), int? weight = default(int?), bool? enabled = default(bool?), string privateLinkAlias = default(string), string privateLinkResourceId = default(string), string privateLinkLocation = default(string), string privateLinkApprovalMessage = default(string), string privateEndpointStatus = default(string))
{
Name = name;
HostName = hostName;
@@ -82,6 +85,7 @@ public DeepCreatedOrigin()
PrivateLinkResourceId = privateLinkResourceId;
PrivateLinkLocation = privateLinkLocation;
PrivateLinkApprovalMessage = privateLinkApprovalMessage;
+ PrivateEndpointStatus = privateEndpointStatus;
CustomInit();
}
@@ -179,6 +183,14 @@ public DeepCreatedOrigin()
[JsonProperty(PropertyName = "properties.privateLinkApprovalMessage")]
public string PrivateLinkApprovalMessage { get; set; }
+ ///
+ /// Gets the approval status for the connection to the Private Link.
+ /// Possible values include: 'Pending', 'Approved', 'Rejected',
+ /// 'Disconnected', 'Timeout'
+ ///
+ [JsonProperty(PropertyName = "properties.privateEndpointStatus")]
+ public string PrivateEndpointStatus { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleClientPortCondition.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleClientPortCondition.cs
new file mode 100644
index 000000000000..0b7976806d7e
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleClientPortCondition.cs
@@ -0,0 +1,74 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the ClientPort condition for the delivery rule.
+ ///
+ [Newtonsoft.Json.JsonObject("ClientPort")]
+ public partial class DeliveryRuleClientPortCondition : DeliveryRuleCondition
+ {
+ ///
+ /// Initializes a new instance of the DeliveryRuleClientPortCondition
+ /// class.
+ ///
+ public DeliveryRuleClientPortCondition()
+ {
+ Parameters = new ClientPortMatchConditionParameters();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DeliveryRuleClientPortCondition
+ /// class.
+ ///
+ /// Defines the parameters for the
+ /// condition.
+ public DeliveryRuleClientPortCondition(ClientPortMatchConditionParameters parameters)
+ {
+ Parameters = parameters;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the parameters for the condition.
+ ///
+ [JsonProperty(PropertyName = "parameters")]
+ public ClientPortMatchConditionParameters Parameters { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
+ }
+ if (Parameters != null)
+ {
+ Parameters.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleHostNameCondition.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleHostNameCondition.cs
new file mode 100644
index 000000000000..90078938df5e
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleHostNameCondition.cs
@@ -0,0 +1,74 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the HostName condition for the delivery rule.
+ ///
+ [Newtonsoft.Json.JsonObject("HostName")]
+ public partial class DeliveryRuleHostNameCondition : DeliveryRuleCondition
+ {
+ ///
+ /// Initializes a new instance of the DeliveryRuleHostNameCondition
+ /// class.
+ ///
+ public DeliveryRuleHostNameCondition()
+ {
+ Parameters = new HostNameMatchConditionParameters();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DeliveryRuleHostNameCondition
+ /// class.
+ ///
+ /// Defines the parameters for the
+ /// condition.
+ public DeliveryRuleHostNameCondition(HostNameMatchConditionParameters parameters)
+ {
+ Parameters = parameters;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the parameters for the condition.
+ ///
+ [JsonProperty(PropertyName = "parameters")]
+ public HostNameMatchConditionParameters Parameters { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
+ }
+ if (Parameters != null)
+ {
+ Parameters.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleRouteConfigurationOverrideAction.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleRouteConfigurationOverrideAction.cs
new file mode 100644
index 000000000000..3147ab4841b3
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleRouteConfigurationOverrideAction.cs
@@ -0,0 +1,71 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the route configuration override action for the delivery rule.
+ /// Only applicable to Frontdoor Standard/Premium Profiles.
+ ///
+ [Newtonsoft.Json.JsonObject("RouteConfigurationOverride")]
+ public partial class DeliveryRuleRouteConfigurationOverrideAction : DeliveryRuleAction
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DeliveryRuleRouteConfigurationOverrideAction class.
+ ///
+ public DeliveryRuleRouteConfigurationOverrideAction()
+ {
+ Parameters = new RouteConfigurationOverrideActionParameters();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DeliveryRuleRouteConfigurationOverrideAction class.
+ ///
+ /// Defines the parameters for the
+ /// action.
+ public DeliveryRuleRouteConfigurationOverrideAction(RouteConfigurationOverrideActionParameters parameters)
+ {
+ Parameters = parameters;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the parameters for the action.
+ ///
+ [JsonProperty(PropertyName = "parameters")]
+ public RouteConfigurationOverrideActionParameters Parameters { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleServerPortCondition.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleServerPortCondition.cs
new file mode 100644
index 000000000000..ad8fb38ab6a6
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleServerPortCondition.cs
@@ -0,0 +1,74 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the ServerPort condition for the delivery rule.
+ ///
+ [Newtonsoft.Json.JsonObject("ServerPort")]
+ public partial class DeliveryRuleServerPortCondition : DeliveryRuleCondition
+ {
+ ///
+ /// Initializes a new instance of the DeliveryRuleServerPortCondition
+ /// class.
+ ///
+ public DeliveryRuleServerPortCondition()
+ {
+ Parameters = new ServerPortMatchConditionParameters();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DeliveryRuleServerPortCondition
+ /// class.
+ ///
+ /// Defines the parameters for the
+ /// condition.
+ public DeliveryRuleServerPortCondition(ServerPortMatchConditionParameters parameters)
+ {
+ Parameters = parameters;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the parameters for the condition.
+ ///
+ [JsonProperty(PropertyName = "parameters")]
+ public ServerPortMatchConditionParameters Parameters { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
+ }
+ if (Parameters != null)
+ {
+ Parameters.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleSocketAddrCondition.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleSocketAddrCondition.cs
new file mode 100644
index 000000000000..a9784f07f707
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleSocketAddrCondition.cs
@@ -0,0 +1,74 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the SocketAddress condition for the delivery rule.
+ ///
+ [Newtonsoft.Json.JsonObject("SocketAddr")]
+ public partial class DeliveryRuleSocketAddrCondition : DeliveryRuleCondition
+ {
+ ///
+ /// Initializes a new instance of the DeliveryRuleSocketAddrCondition
+ /// class.
+ ///
+ public DeliveryRuleSocketAddrCondition()
+ {
+ Parameters = new SocketAddrMatchConditionParameters();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DeliveryRuleSocketAddrCondition
+ /// class.
+ ///
+ /// Defines the parameters for the
+ /// condition.
+ public DeliveryRuleSocketAddrCondition(SocketAddrMatchConditionParameters parameters)
+ {
+ Parameters = parameters;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the parameters for the condition.
+ ///
+ [JsonProperty(PropertyName = "parameters")]
+ public SocketAddrMatchConditionParameters Parameters { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
+ }
+ if (Parameters != null)
+ {
+ Parameters.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleSslProtocolCondition.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleSslProtocolCondition.cs
new file mode 100644
index 000000000000..d90f6f305b89
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DeliveryRuleSslProtocolCondition.cs
@@ -0,0 +1,70 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the SslProtocol condition for the delivery rule.
+ ///
+ [Newtonsoft.Json.JsonObject("SslProtocol")]
+ public partial class DeliveryRuleSslProtocolCondition : DeliveryRuleCondition
+ {
+ ///
+ /// Initializes a new instance of the DeliveryRuleSslProtocolCondition
+ /// class.
+ ///
+ public DeliveryRuleSslProtocolCondition()
+ {
+ Parameters = new SslProtocolMatchConditionParameters();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DeliveryRuleSslProtocolCondition
+ /// class.
+ ///
+ /// Defines the parameters for the
+ /// condition.
+ public DeliveryRuleSslProtocolCondition(SslProtocolMatchConditionParameters parameters)
+ {
+ Parameters = parameters;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the parameters for the condition.
+ ///
+ [JsonProperty(PropertyName = "parameters")]
+ public SslProtocolMatchConditionParameters Parameters { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DimensionProperties.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DimensionProperties.cs
new file mode 100644
index 000000000000..bb9aa49226a5
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DimensionProperties.cs
@@ -0,0 +1,67 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Type of operation: get, read, delete, etc.
+ ///
+ public partial class DimensionProperties
+ {
+ ///
+ /// Initializes a new instance of the DimensionProperties class.
+ ///
+ public DimensionProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DimensionProperties class.
+ ///
+ /// Name of dimension.
+ /// Display name of dimension.
+ /// Internal name of dimension.
+ public DimensionProperties(string name = default(string), string displayName = default(string), string internalName = default(string))
+ {
+ Name = name;
+ DisplayName = displayName;
+ InternalName = internalName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of dimension.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets display name of dimension.
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets internal name of dimension.
+ ///
+ [JsonProperty(PropertyName = "internalName")]
+ public string InternalName { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DomainValidationState.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DomainValidationState.cs
index 9039d32ee69c..40a6fe7bec1e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DomainValidationState.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/DomainValidationState.cs
@@ -19,8 +19,11 @@ public static class DomainValidationState
public const string Unknown = "Unknown";
public const string Submitting = "Submitting";
public const string Pending = "Pending";
+ public const string Rejected = "Rejected";
public const string TimedOut = "TimedOut";
public const string PendingRevalidation = "PendingRevalidation";
public const string Approved = "Approved";
+ public const string RefreshingValidationToken = "RefreshingValidationToken";
+ public const string InternalError = "InternalError";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Endpoint.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Endpoint.cs
index 45f3b7a27984..d1527eb63784 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Endpoint.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Endpoint.cs
@@ -103,12 +103,14 @@ public Endpoint()
/// The origin groups comprising of origins
/// that are used for load balancing the traffic based on
/// availability.
+ /// The custom domains under the
+ /// endpoint.
/// Resource status of the endpoint.
/// Possible values include: 'Creating', 'Deleting', 'Running',
/// 'Starting', 'Stopped', 'Stopping'
/// Provisioning status of the
/// endpoint.
- public Endpoint(string location, IList origins, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary), string originPath = default(string), IList contentTypesToCompress = default(IList), string originHostHeader = default(string), bool? isCompressionEnabled = default(bool?), bool? isHttpAllowed = default(bool?), bool? isHttpsAllowed = default(bool?), QueryStringCachingBehavior? queryStringCachingBehavior = default(QueryStringCachingBehavior?), string optimizationType = default(string), string probePath = default(string), IList geoFilters = default(IList), ResourceReference defaultOriginGroup = default(ResourceReference), IList urlSigningKeys = default(IList), EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default(EndpointPropertiesUpdateParametersDeliveryPolicy), EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink), string hostName = default(string), IList originGroups = default(IList), string resourceState = default(string), string provisioningState = default(string))
+ public Endpoint(string location, IList origins, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary), string originPath = default(string), IList contentTypesToCompress = default(IList), string originHostHeader = default(string), bool? isCompressionEnabled = default(bool?), bool? isHttpAllowed = default(bool?), bool? isHttpsAllowed = default(bool?), QueryStringCachingBehavior? queryStringCachingBehavior = default(QueryStringCachingBehavior?), string optimizationType = default(string), string probePath = default(string), IList geoFilters = default(IList), ResourceReference defaultOriginGroup = default(ResourceReference), IList urlSigningKeys = default(IList), EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default(EndpointPropertiesUpdateParametersDeliveryPolicy), EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink), string hostName = default(string), IList originGroups = default(IList), IList customDomains = default(IList), string resourceState = default(string), string provisioningState = default(string))
: base(location, id, name, type, systemData, tags)
{
OriginPath = originPath;
@@ -128,6 +130,7 @@ public Endpoint()
HostName = hostName;
Origins = origins;
OriginGroups = originGroups;
+ CustomDomains = customDomains;
ResourceState = resourceState;
ProvisioningState = provisioningState;
CustomInit();
@@ -275,6 +278,12 @@ public Endpoint()
[JsonProperty(PropertyName = "properties.originGroups")]
public IList OriginGroups { get; set; }
+ ///
+ /// Gets the custom domains under the endpoint.
+ ///
+ [JsonProperty(PropertyName = "properties.customDomains")]
+ public IList CustomDomains { get; private set; }
+
///
/// Gets resource status of the endpoint. Possible values include:
/// 'Creating', 'Deleting', 'Running', 'Starting', 'Stopped',
@@ -346,6 +355,16 @@ public override void Validate()
}
}
}
+ if (CustomDomains != null)
+ {
+ foreach (var element4 in CustomDomains)
+ {
+ if (element4 != null)
+ {
+ element4.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorAdditionalInfo.cs
new file mode 100644
index 000000000000..b0ad01cf95a4
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorAdditionalInfo.cs
@@ -0,0 +1,59 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The resource management error additional info.
+ ///
+ public partial class ErrorAdditionalInfo
+ {
+ ///
+ /// Initializes a new instance of the ErrorAdditionalInfo class.
+ ///
+ public ErrorAdditionalInfo()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorAdditionalInfo class.
+ ///
+ /// The additional info type.
+ /// The additional info.
+ public ErrorAdditionalInfo(string type = default(string), object info = default(object))
+ {
+ Type = type;
+ Info = info;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the additional info type.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ ///
+ /// Gets the additional info.
+ ///
+ [JsonProperty(PropertyName = "info")]
+ public object Info { get; private set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorDetail.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorDetail.cs
new file mode 100644
index 000000000000..91e5822ce876
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorDetail.cs
@@ -0,0 +1,85 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The error detail.
+ ///
+ public partial class ErrorDetail
+ {
+ ///
+ /// Initializes a new instance of the ErrorDetail class.
+ ///
+ public ErrorDetail()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorDetail class.
+ ///
+ /// The error code.
+ /// The error message.
+ /// The error target.
+ /// The error details.
+ /// The error additional info.
+ public ErrorDetail(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList), IList additionalInfo = default(IList))
+ {
+ Code = code;
+ Message = message;
+ Target = target;
+ Details = details;
+ AdditionalInfo = additionalInfo;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the error code.
+ ///
+ [JsonProperty(PropertyName = "code")]
+ public string Code { get; private set; }
+
+ ///
+ /// Gets the error message.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; private set; }
+
+ ///
+ /// Gets the error target.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public string Target { get; private set; }
+
+ ///
+ /// Gets the error details.
+ ///
+ [JsonProperty(PropertyName = "details")]
+ public IList Details { get; private set; }
+
+ ///
+ /// Gets the error additional info.
+ ///
+ [JsonProperty(PropertyName = "additionalInfo")]
+ public IList AdditionalInfo { get; private set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorResponse.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorResponse.cs
index a3cf1d493e7f..6068a2afca95 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorResponse.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ErrorResponse.cs
@@ -14,9 +14,13 @@ namespace Microsoft.Azure.Management.Cdn.Models
using System.Linq;
///
- /// Error response indicates CDN service is not able to process the
- /// incoming request. The reason is provided in the error message.
+ /// Error response
///
+ ///
+ /// Error response indicates Azure Front Door Standard or Azure Front Door
+ /// Premium or CDN service is not able to process the incoming request. The
+ /// reason is provided in the error message.
+ ///
public partial class ErrorResponse
{
///
@@ -30,13 +34,10 @@ public ErrorResponse()
///
/// Initializes a new instance of the ErrorResponse class.
///
- /// Error code.
- /// Error message indicating why the operation
- /// failed.
- public ErrorResponse(string code = default(string), string message = default(string))
+ /// The error object.
+ public ErrorResponse(ErrorDetail error = default(ErrorDetail))
{
- Code = code;
- Message = message;
+ Error = error;
CustomInit();
}
@@ -46,16 +47,10 @@ public ErrorResponse()
partial void CustomInit();
///
- /// Gets error code.
+ /// Gets or sets the error object.
///
- [JsonProperty(PropertyName = "code")]
- public string Code { get; private set; }
-
- ///
- /// Gets error message indicating why the operation failed.
- ///
- [JsonProperty(PropertyName = "message")]
- public string Message { get; private set; }
+ [JsonProperty(PropertyName = "error")]
+ public ErrorDetail Error { get; set; }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/GeoFilter.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/GeoFilter.cs
index a80f019ed642..6cb14a6879b0 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/GeoFilter.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/GeoFilter.cs
@@ -36,8 +36,9 @@ public GeoFilter()
/// (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.)
/// Action of the geo filter, i.e. allow or block
/// access. Possible values include: 'Block', 'Allow'
- /// Two letter country codes defining user
- /// country access in a geo filter, e.g. AU, MX, US.
+ /// Two letter country or region codes
+ /// defining user country or region access in a geo filter, e.g. AU,
+ /// MX, US.
public GeoFilter(string relativePath, GeoFilterActions action, IList countryCodes)
{
RelativePath = relativePath;
@@ -66,8 +67,8 @@ public GeoFilter(string relativePath, GeoFilterActions action, IList cou
public GeoFilterActions Action { get; set; }
///
- /// Gets or sets two letter country codes defining user country access
- /// in a geo filter, e.g. AU, MX, US.
+ /// Gets or sets two letter country or region codes defining user
+ /// country or region access in a geo filter, e.g. AU, MX, US.
///
[JsonProperty(PropertyName = "countryCodes")]
public IList CountryCodes { get; set; }
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HeaderActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HeaderActionParameters.cs
index c65b9259b139..00d9f44f6352 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HeaderActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HeaderActionParameters.cs
@@ -46,7 +46,7 @@ public HeaderActionParameters()
///
static HeaderActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters";
+ TypeName = "DeliveryRuleHeaderActionParameters";
}
///
@@ -75,8 +75,8 @@ static HeaderActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HostNameMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HostNameMatchConditionParameters.cs
new file mode 100644
index 000000000000..f1ef8e27de1b
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HostNameMatchConditionParameters.cs
@@ -0,0 +1,113 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for HostName match conditions
+ ///
+ public partial class HostNameMatchConditionParameters
+ {
+ ///
+ /// Initializes a new instance of the HostNameMatchConditionParameters
+ /// class.
+ ///
+ public HostNameMatchConditionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the HostNameMatchConditionParameters
+ /// class.
+ ///
+ /// Describes operator to be matched.
+ /// Possible values include: 'Any', 'Equal', 'Contains', 'BeginsWith',
+ /// 'EndsWith', 'LessThan', 'LessThanOrEqual', 'GreaterThan',
+ /// 'GreaterThanOrEqual', 'RegEx'
+ /// Describes if this is negate condition
+ /// or not
+ /// The match value for the condition of the
+ /// delivery rule
+ /// List of transforms
+ public HostNameMatchConditionParameters(string operatorProperty, bool? negateCondition = default(bool?), IList matchValues = default(IList), IList transforms = default(IList))
+ {
+ OperatorProperty = operatorProperty;
+ NegateCondition = negateCondition;
+ MatchValues = matchValues;
+ Transforms = transforms;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for HostNameMatchConditionParameters class.
+ ///
+ static HostNameMatchConditionParameters()
+ {
+ TypeName = "DeliveryRuleHostNameConditionParameters";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes operator to be matched. Possible values
+ /// include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
+ /// 'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual',
+ /// 'RegEx'
+ ///
+ [JsonProperty(PropertyName = "operator")]
+ public string OperatorProperty { get; set; }
+
+ ///
+ /// Gets or sets describes if this is negate condition or not
+ ///
+ [JsonProperty(PropertyName = "negateCondition")]
+ public bool? NegateCondition { get; set; }
+
+ ///
+ /// Gets or sets the match value for the condition of the delivery rule
+ ///
+ [JsonProperty(PropertyName = "matchValues")]
+ public IList MatchValues { get; set; }
+
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (OperatorProperty == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HostNameOperator.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HostNameOperator.cs
new file mode 100644
index 000000000000..c59f9bf43507
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HostNameOperator.cs
@@ -0,0 +1,30 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for HostNameOperator.
+ ///
+ public static class HostNameOperator
+ {
+ public const string Any = "Any";
+ public const string Equal = "Equal";
+ public const string Contains = "Contains";
+ public const string BeginsWith = "BeginsWith";
+ public const string EndsWith = "EndsWith";
+ public const string LessThan = "LessThan";
+ public const string LessThanOrEqual = "LessThanOrEqual";
+ public const string GreaterThan = "GreaterThan";
+ public const string GreaterThanOrEqual = "GreaterThanOrEqual";
+ public const string RegEx = "RegEx";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HttpVersionMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HttpVersionMatchConditionParameters.cs
index 64ad0a484b5e..35f8db1f42ea 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HttpVersionMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/HttpVersionMatchConditionParameters.cs
@@ -37,10 +37,12 @@ public HttpVersionMatchConditionParameters()
/// or not
/// The match value for the condition of the
/// delivery rule
- public HttpVersionMatchConditionParameters(bool? negateCondition = default(bool?), IList matchValues = default(IList))
+ /// List of transforms
+ public HttpVersionMatchConditionParameters(bool? negateCondition = default(bool?), IList matchValues = default(IList), IList transforms = default(IList))
{
NegateCondition = negateCondition;
MatchValues = matchValues;
+ Transforms = transforms;
CustomInit();
}
///
@@ -48,7 +50,7 @@ public HttpVersionMatchConditionParameters()
///
static HttpVersionMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters";
+ TypeName = "DeliveryRuleHttpVersionConditionParameters";
OperatorProperty = "Equal";
}
@@ -70,9 +72,15 @@ static HttpVersionMatchConditionParameters()
public IList MatchValues { get; set; }
///
+ /// Gets or sets list of transforms
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Describes operator to be matched
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/IsDeviceMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/IsDeviceMatchConditionParameters.cs
index 7a38dc323700..3f9b00045da9 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/IsDeviceMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/IsDeviceMatchConditionParameters.cs
@@ -50,7 +50,7 @@ public IsDeviceMatchConditionParameters()
///
static IsDeviceMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters";
+ TypeName = "DeliveryRuleIsDeviceConditionParameters";
OperatorProperty = "Equal";
}
@@ -79,8 +79,8 @@ static IsDeviceMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Describes operator to be matched
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultCertificateSourceParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultCertificateSourceParameters.cs
index 130af5fb8e28..367d6d4a320a 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultCertificateSourceParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultCertificateSourceParameters.cs
@@ -57,7 +57,7 @@ public KeyVaultCertificateSourceParameters()
///
static KeyVaultCertificateSourceParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters";
+ TypeName = "KeyVaultCertificateSourceParameters";
UpdateRule = "NoAction";
DeleteRule = "NoAction";
}
@@ -103,8 +103,8 @@ static KeyVaultCertificateSourceParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Describes the action that shall be taken when the certificate is
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultSigningKeyParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultSigningKeyParameters.cs
index 30691579ea22..9ad2d14adf8d 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultSigningKeyParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/KeyVaultSigningKeyParameters.cs
@@ -56,7 +56,7 @@ public KeyVaultSigningKeyParameters(string subscriptionId, string resourceGroupN
///
static KeyVaultSigningKeyParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.KeyVaultSigningKeyParameters";
+ TypeName = "KeyVaultSigningKeyParameters";
}
///
@@ -98,8 +98,8 @@ static KeyVaultSigningKeyParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogMetricsGroupBy.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogMetricsGroupBy.cs
index 2abeede3f619..4d424dcf0bef 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogMetricsGroupBy.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogMetricsGroupBy.cs
@@ -19,7 +19,7 @@ public static class LogMetricsGroupBy
public const string HttpStatusCode = "httpStatusCode";
public const string Protocol = "protocol";
public const string CacheStatus = "cacheStatus";
- public const string Country = "country";
+ public const string CountryOrRegion = "countryOrRegion";
public const string CustomDomain = "customDomain";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogSpecification.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogSpecification.cs
new file mode 100644
index 000000000000..d2a4bcda8526
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/LogSpecification.cs
@@ -0,0 +1,77 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Log specification of operation.
+ ///
+ public partial class LogSpecification
+ {
+ ///
+ /// Initializes a new instance of the LogSpecification class.
+ ///
+ public LogSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the LogSpecification class.
+ ///
+ /// Name of log specification.
+ /// Display name of log
+ /// specification.
+ /// Blob duration of specification.
+ /// Pattern to filter based on
+ /// name
+ public LogSpecification(string name = default(string), string displayName = default(string), string blobDuration = default(string), string logFilterPattern = default(string))
+ {
+ Name = name;
+ DisplayName = displayName;
+ BlobDuration = blobDuration;
+ LogFilterPattern = logFilterPattern;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of log specification.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets display name of log specification.
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets blob duration of specification.
+ ///
+ [JsonProperty(PropertyName = "blobDuration")]
+ public string BlobDuration { get; set; }
+
+ ///
+ /// Gets or sets pattern to filter based on name
+ ///
+ [JsonProperty(PropertyName = "logFilterPattern")]
+ public string LogFilterPattern { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificate.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificate.cs
index d49393bd150a..ae84992764c0 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificate.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificate.cs
@@ -28,11 +28,13 @@ public ManagedCertificate()
///
/// Initializes a new instance of the ManagedCertificate class.
///
+ /// Possible values include: 'UrlSigningKey',
+ /// 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
/// Subject name in the certificate.
/// Certificate expiration date.
- /// Certificate thumbprint.
- public ManagedCertificate(string subject = default(string), string expirationDate = default(string), string thumbprint = default(string))
- : base(subject, expirationDate, thumbprint)
+ public ManagedCertificate(string type = default(string), string subject = default(string), string expirationDate = default(string))
+ : base(type, subject, expirationDate)
{
CustomInit();
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificateParameters.cs
index 6653ca35cd7e..80c7f98d8a54 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ManagedCertificateParameters.cs
@@ -28,11 +28,35 @@ public ManagedCertificateParameters()
CustomInit();
}
+ ///
+ /// Initializes a new instance of the ManagedCertificateParameters
+ /// class.
+ ///
+ /// Subject name in the certificate.
+ /// Certificate expiration date.
+ public ManagedCertificateParameters(string subject = default(string), string expirationDate = default(string))
+ {
+ Subject = subject;
+ ExpirationDate = expirationDate;
+ CustomInit();
+ }
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
+ ///
+ /// Gets subject name in the certificate.
+ ///
+ [JsonProperty(PropertyName = "subject")]
+ public string Subject { get; private set; }
+
+ ///
+ /// Gets certificate expiration date.
+ ///
+ [JsonProperty(PropertyName = "expirationDate")]
+ public string ExpirationDate { get; private set; }
+
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricAvailability.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricAvailability.cs
new file mode 100644
index 000000000000..c0b541b2872e
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricAvailability.cs
@@ -0,0 +1,55 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Retention policy of a resource metric.
+ ///
+ public partial class MetricAvailability
+ {
+ ///
+ /// Initializes a new instance of the MetricAvailability class.
+ ///
+ public MetricAvailability()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MetricAvailability class.
+ ///
+ public MetricAvailability(string timeGrain = default(string), string blobDuration = default(string))
+ {
+ TimeGrain = timeGrain;
+ BlobDuration = blobDuration;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "timeGrain")]
+ public string TimeGrain { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "blobDuration")]
+ public string BlobDuration { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricSpecification.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricSpecification.cs
new file mode 100644
index 000000000000..7ba2152e8f6c
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricSpecification.cs
@@ -0,0 +1,144 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Metric specification of operation.
+ ///
+ public partial class MetricSpecification
+ {
+ ///
+ /// Initializes a new instance of the MetricSpecification class.
+ ///
+ public MetricSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MetricSpecification class.
+ ///
+ /// Name of metric specification.
+ /// Display name of metric
+ /// specification.
+ /// Display description of metric
+ /// specification.
+ /// The metric unit. Possible values include:
+ /// 'Bytes', 'Count', 'Milliseconds'.
+ /// The metric aggregation type. Possible
+ /// values include: 'Average', 'Count', 'Total'.
+ /// Retention policies of a resource
+ /// metric.
+ /// The supported time grain
+ /// types for the metrics.
+ /// The dimensions of metric
+ /// Property to specify whether to fill
+ /// gap with zero.
+ /// Pattern to filter based on
+ /// name
+ /// Property to specify metric is internal or
+ /// not.
+ public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), IList availabilities = default(IList), IList supportedTimeGrainTypes = default(IList), IList dimensions = default(IList), bool? fillGapWithZero = default(bool?), string metricFilterPattern = default(string), bool? isInternal = default(bool?))
+ {
+ Name = name;
+ DisplayName = displayName;
+ DisplayDescription = displayDescription;
+ Unit = unit;
+ AggregationType = aggregationType;
+ Availabilities = availabilities;
+ SupportedTimeGrainTypes = supportedTimeGrainTypes;
+ Dimensions = dimensions;
+ FillGapWithZero = fillGapWithZero;
+ MetricFilterPattern = metricFilterPattern;
+ IsInternal = isInternal;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of metric specification.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets display name of metric specification.
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets display description of metric specification.
+ ///
+ [JsonProperty(PropertyName = "displayDescription")]
+ public string DisplayDescription { get; set; }
+
+ ///
+ /// Gets or sets the metric unit. Possible values include: 'Bytes',
+ /// 'Count', 'Milliseconds'.
+ ///
+ [JsonProperty(PropertyName = "unit")]
+ public string Unit { get; set; }
+
+ ///
+ /// Gets or sets the metric aggregation type. Possible values include:
+ /// 'Average', 'Count', 'Total'.
+ ///
+ [JsonProperty(PropertyName = "aggregationType")]
+ public string AggregationType { get; set; }
+
+ ///
+ /// Gets or sets retention policies of a resource metric.
+ ///
+ [JsonProperty(PropertyName = "availabilities")]
+ public IList Availabilities { get; set; }
+
+ ///
+ /// Gets or sets the supported time grain types for the metrics.
+ ///
+ [JsonProperty(PropertyName = "supportedTimeGrainTypes")]
+ public IList SupportedTimeGrainTypes { get; set; }
+
+ ///
+ /// Gets or sets the dimensions of metric
+ ///
+ [JsonProperty(PropertyName = "dimensions")]
+ public IList Dimensions { get; set; }
+
+ ///
+ /// Gets or sets property to specify whether to fill gap with zero.
+ ///
+ [JsonProperty(PropertyName = "fillGapWithZero")]
+ public bool? FillGapWithZero { get; set; }
+
+ ///
+ /// Gets or sets pattern to filter based on name
+ ///
+ [JsonProperty(PropertyName = "metricFilterPattern")]
+ public string MetricFilterPattern { get; set; }
+
+ ///
+ /// Gets or sets property to specify metric is internal or not.
+ ///
+ [JsonProperty(PropertyName = "isInternal")]
+ public bool? IsInternal { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs
index 33d75827663f..fc6265ebc908 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs
@@ -29,7 +29,7 @@ public MetricsResponseSeriesItem()
/// Initializes a new instance of the MetricsResponseSeriesItem class.
///
/// Possible values include: 'count', 'bytes',
- /// 'bitsPerSecond'
+ /// 'bitsPerSecond', 'milliSeconds'
public MetricsResponseSeriesItem(string metric = default(string), string unit = default(string), IList groups = default(IList), IList data = default(IList))
{
Metric = metric;
@@ -51,7 +51,7 @@ public MetricsResponseSeriesItem()
///
/// Gets or sets possible values include: 'count', 'bytes',
- /// 'bitsPerSecond'
+ /// 'bitsPerSecond', 'milliSeconds'
///
[JsonProperty(PropertyName = "unit")]
public string Unit { get; set; }
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Operation.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Operation.cs
index c1fbf6ac52b9..ffa014d6aa3e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Operation.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Operation.cs
@@ -10,12 +10,15 @@
namespace Microsoft.Azure.Management.Cdn.Models
{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;
///
/// CDN REST API operation
///
+ [Rest.Serialization.JsonTransformation]
public partial class Operation
{
///
@@ -31,12 +34,20 @@ public Operation()
///
/// Operation name:
/// {provider}/{resource}/{operation}
+ /// Indicates whether the operation is a
+ /// data action
/// The object that represents the
/// operation.
- public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay))
+ /// The origin of operations.
+ /// One property of operation,
+ /// include metric specifications.
+ public Operation(string name = default(string), bool? isDataAction = default(bool?), OperationDisplay display = default(OperationDisplay), string origin = default(string), ServiceSpecification serviceSpecification = default(ServiceSpecification))
{
Name = name;
+ IsDataAction = isDataAction;
Display = display;
+ Origin = origin;
+ ServiceSpecification = serviceSpecification;
CustomInit();
}
@@ -51,11 +62,30 @@ public Operation()
[JsonProperty(PropertyName = "name")]
public string Name { get; private set; }
+ ///
+ /// Gets or sets indicates whether the operation is a data action
+ ///
+ [JsonProperty(PropertyName = "isDataAction")]
+ public bool? IsDataAction { get; set; }
+
///
/// Gets or sets the object that represents the operation.
///
[JsonProperty(PropertyName = "display")]
public OperationDisplay Display { get; set; }
+ ///
+ /// Gets the origin of operations.
+ ///
+ [JsonProperty(PropertyName = "origin")]
+ public string Origin { get; private set; }
+
+ ///
+ /// Gets or sets one property of operation, include metric
+ /// specifications.
+ ///
+ [JsonProperty(PropertyName = "properties.serviceSpecification")]
+ public ServiceSpecification ServiceSpecification { get; set; }
+
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OperationDisplay.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OperationDisplay.cs
index d434da89a3da..f6e1ce18ecf9 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OperationDisplay.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OperationDisplay.cs
@@ -34,11 +34,13 @@ public OperationDisplay()
/// performed: Profile, endpoint, etc.
/// Operation type: Read, write, delete,
/// etc.
- public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string))
+ /// Description of operation.
+ public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string))
{
Provider = provider;
Resource = resource;
Operation = operation;
+ Description = description;
CustomInit();
}
@@ -66,5 +68,11 @@ public OperationDisplay()
[JsonProperty(PropertyName = "operation")]
public string Operation { get; private set; }
+ ///
+ /// Gets description of operation.
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; private set; }
+
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverride.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverride.cs
new file mode 100644
index 000000000000..3f44fac82f42
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverride.cs
@@ -0,0 +1,65 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for the origin group override configuration.
+ ///
+ public partial class OriginGroupOverride
+ {
+ ///
+ /// Initializes a new instance of the OriginGroupOverride class.
+ ///
+ public OriginGroupOverride()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the OriginGroupOverride class.
+ ///
+ /// defines the OriginGroup that would
+ /// override the DefaultOriginGroup on route.
+ /// Protocol this rule will use when
+ /// forwarding traffic to backends. Possible values include:
+ /// 'HttpOnly', 'HttpsOnly', 'MatchRequest'
+ public OriginGroupOverride(ResourceReference originGroup = default(ResourceReference), string forwardingProtocol = default(string))
+ {
+ OriginGroup = originGroup;
+ ForwardingProtocol = forwardingProtocol;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the OriginGroup that would override the
+ /// DefaultOriginGroup on route.
+ ///
+ [JsonProperty(PropertyName = "originGroup")]
+ public ResourceReference OriginGroup { get; set; }
+
+ ///
+ /// Gets or sets protocol this rule will use when forwarding traffic to
+ /// backends. Possible values include: 'HttpOnly', 'HttpsOnly',
+ /// 'MatchRequest'
+ ///
+ [JsonProperty(PropertyName = "forwardingProtocol")]
+ public string ForwardingProtocol { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverrideActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverrideActionParameters.cs
index 98e0afb2f006..2e12d581b7d3 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverrideActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/OriginGroupOverrideActionParameters.cs
@@ -44,7 +44,7 @@ public OriginGroupOverrideActionParameters(ResourceReference originGroup)
///
static OriginGroupOverrideActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters";
+ TypeName = "DeliveryRuleOriginGroupOverrideActionParameters";
}
///
@@ -61,8 +61,8 @@ static OriginGroupOverrideActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/PostArgsMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/PostArgsMatchConditionParameters.cs
index 23a26e93f871..7839e2c0dfdf 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/PostArgsMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/PostArgsMatchConditionParameters.cs
@@ -58,7 +58,7 @@ public PostArgsMatchConditionParameters()
///
static PostArgsMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters";
+ TypeName = "DeliveryRulePostArgsConditionParameters";
}
///
@@ -101,8 +101,8 @@ static PostArgsMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Profile.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Profile.cs
index 6c5879076d63..98fad77a5a7e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Profile.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Profile.cs
@@ -18,8 +18,8 @@ namespace Microsoft.Azure.Management.Cdn.Models
using System.Linq;
///
- /// CDN profile is a logical grouping of endpoints that share the same
- /// settings, such as CDN provider and pricing tier.
+ /// A profile is a logical grouping of endpoints that share the same
+ /// settings.
///
[Rest.Serialization.JsonTransformation]
public partial class Profile : TrackedResource
@@ -36,25 +36,33 @@ public Profile()
/// Initializes a new instance of the Profile class.
///
/// Resource location.
- /// The pricing tier (defines a CDN provider, feature
- /// list and rate) of the CDN profile.
+ /// The pricing tier (defines Azure Front Door
+ /// Standard or Premium or a CDN provider, feature list and rate) of
+ /// the profile.
/// Resource ID.
/// Resource name.
/// Resource type.
/// Resource tags.
+ /// Kind of the profile. Used by portal to
+ /// differentiate traditional CDN profile and new AFD profile.
/// Resource status of the profile.
/// Possible values include: 'Creating', 'Active', 'Deleting',
/// 'Disabled'
/// Provisioning status of the
/// profile.
- /// The Id of the frontdoor.
- public Profile(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary), string resourceState = default(string), string provisioningState = default(string), string frontdoorId = default(string))
+ /// The Id of the frontdoor.
+ /// Send and receive timeout
+ /// on forwarding request to the origin. When timeout is reached, the
+ /// request fails and returns.
+ public Profile(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary), string kind = default(string), string resourceState = default(string), string provisioningState = default(string), string frontDoorId = default(string), int? originResponseTimeoutSeconds = default(int?))
: base(location, id, name, type, systemData, tags)
{
Sku = sku;
+ Kind = kind;
ResourceState = resourceState;
ProvisioningState = provisioningState;
- FrontdoorId = frontdoorId;
+ FrontDoorId = frontDoorId;
+ OriginResponseTimeoutSeconds = originResponseTimeoutSeconds;
CustomInit();
}
@@ -64,12 +72,19 @@ public Profile()
partial void CustomInit();
///
- /// Gets or sets the pricing tier (defines a CDN provider, feature list
- /// and rate) of the CDN profile.
+ /// Gets or sets the pricing tier (defines Azure Front Door Standard or
+ /// Premium or a CDN provider, feature list and rate) of the profile.
///
[JsonProperty(PropertyName = "sku")]
public Sku Sku { get; set; }
+ ///
+ /// Gets kind of the profile. Used by portal to differentiate
+ /// traditional CDN profile and new AFD profile.
+ ///
+ [JsonProperty(PropertyName = "kind")]
+ public string Kind { get; private set; }
+
///
/// Gets resource status of the profile. Possible values include:
/// 'Creating', 'Active', 'Deleting', 'Disabled'
@@ -86,8 +101,15 @@ public Profile()
///
/// Gets the Id of the frontdoor.
///
- [JsonProperty(PropertyName = "properties.frontdoorId")]
- public string FrontdoorId { get; private set; }
+ [JsonProperty(PropertyName = "properties.frontDoorId")]
+ public string FrontDoorId { get; private set; }
+
+ ///
+ /// Gets or sets send and receive timeout on forwarding request to the
+ /// origin. When timeout is reached, the request fails and returns.
+ ///
+ [JsonProperty(PropertyName = "properties.originResponseTimeoutSeconds")]
+ public int? OriginResponseTimeoutSeconds { get; set; }
///
/// Validate the object.
@@ -102,6 +124,10 @@ public override void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Sku");
}
+ if (OriginResponseTimeoutSeconds < 16)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "OriginResponseTimeoutSeconds", 16);
+ }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ProfileUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ProfileUpdateParameters.cs
index 095aeaf08ff4..e9680636d9fe 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ProfileUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ProfileUpdateParameters.cs
@@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.Cdn.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -20,6 +21,7 @@ namespace Microsoft.Azure.Management.Cdn.Models
///
/// Properties required to update a profile.
///
+ [Rest.Serialization.JsonTransformation]
public partial class ProfileUpdateParameters : IResource
{
///
@@ -34,9 +36,13 @@ public ProfileUpdateParameters()
/// Initializes a new instance of the ProfileUpdateParameters class.
///
/// Profile tags
- public ProfileUpdateParameters(IDictionary tags = default(IDictionary))
+ /// Send and receive timeout
+ /// on forwarding request to the origin. When timeout is reached, the
+ /// request fails and returns.
+ public ProfileUpdateParameters(IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?))
{
Tags = tags;
+ OriginResponseTimeoutSeconds = originResponseTimeoutSeconds;
CustomInit();
}
@@ -51,5 +57,25 @@ public ProfileUpdateParameters()
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
+ ///
+ /// Gets or sets send and receive timeout on forwarding request to the
+ /// origin. When timeout is reached, the request fails and returns.
+ ///
+ [JsonProperty(PropertyName = "properties.originResponseTimeoutSeconds")]
+ public int? OriginResponseTimeoutSeconds { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (OriginResponseTimeoutSeconds < 16)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "OriginResponseTimeoutSeconds", 16);
+ }
+ }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/QueryStringMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/QueryStringMatchConditionParameters.cs
index c1fcaf5747e6..7cbfc6580d94 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/QueryStringMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/QueryStringMatchConditionParameters.cs
@@ -56,7 +56,7 @@ public QueryStringMatchConditionParameters()
///
static QueryStringMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters";
+ TypeName = "DeliveryRuleQueryStringConditionParameters";
}
///
@@ -93,8 +93,8 @@ static QueryStringMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RemoteAddressMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RemoteAddressMatchConditionParameters.cs
index 844f102fa3c5..919d2cd21bd7 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RemoteAddressMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RemoteAddressMatchConditionParameters.cs
@@ -56,7 +56,7 @@ public RemoteAddressMatchConditionParameters()
///
static RemoteAddressMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters";
+ TypeName = "DeliveryRuleRemoteAddressConditionParameters";
}
///
@@ -94,8 +94,8 @@ static RemoteAddressMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestBodyMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestBodyMatchConditionParameters.cs
index 87829dfdc604..307c1c39429a 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestBodyMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestBodyMatchConditionParameters.cs
@@ -56,7 +56,7 @@ public RequestBodyMatchConditionParameters()
///
static RequestBodyMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters";
+ TypeName = "DeliveryRuleRequestBodyConditionParameters";
}
///
@@ -93,8 +93,8 @@ static RequestBodyMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestHeaderMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestHeaderMatchConditionParameters.cs
index ec944c36ef4b..f73150c3b778 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestHeaderMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestHeaderMatchConditionParameters.cs
@@ -58,7 +58,7 @@ public RequestHeaderMatchConditionParameters()
///
static RequestHeaderMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters";
+ TypeName = "DeliveryRuleRequestHeaderConditionParameters";
}
///
@@ -101,8 +101,8 @@ static RequestHeaderMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestMethodMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestMethodMatchConditionParameters.cs
index addbf91c880e..7fa31c719463 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestMethodMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestMethodMatchConditionParameters.cs
@@ -35,11 +35,13 @@ public RequestMethodMatchConditionParameters()
///
/// Describes if this is negate condition
/// or not
+ /// List of transforms
/// The match value for the condition of the
/// delivery rule
- public RequestMethodMatchConditionParameters(bool? negateCondition = default(bool?), IList matchValues = default(IList))
+ public RequestMethodMatchConditionParameters(bool? negateCondition = default(bool?), IList transforms = default(IList), IList matchValues = default(IList))
{
NegateCondition = negateCondition;
+ Transforms = transforms;
MatchValues = matchValues;
CustomInit();
}
@@ -48,7 +50,7 @@ public RequestMethodMatchConditionParameters()
///
static RequestMethodMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters";
+ TypeName = "DeliveryRuleRequestMethodConditionParameters";
OperatorProperty = "Equal";
}
@@ -63,6 +65,12 @@ static RequestMethodMatchConditionParameters()
[JsonProperty(PropertyName = "negateCondition")]
public bool? NegateCondition { get; set; }
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
///
/// Gets or sets the match value for the condition of the delivery rule
///
@@ -71,8 +79,8 @@ static RequestMethodMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Describes operator to be matched
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestSchemeMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestSchemeMatchConditionParameters.cs
index 9cbfd8645d78..b37f0c0fbeee 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestSchemeMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestSchemeMatchConditionParameters.cs
@@ -35,11 +35,13 @@ public RequestSchemeMatchConditionParameters()
///
/// Describes if this is negate condition
/// or not
+ /// List of transforms
/// The match value for the condition of the
/// delivery rule
- public RequestSchemeMatchConditionParameters(bool? negateCondition = default(bool?), IList matchValues = default(IList))
+ public RequestSchemeMatchConditionParameters(bool? negateCondition = default(bool?), IList transforms = default(IList), IList matchValues = default(IList))
{
NegateCondition = negateCondition;
+ Transforms = transforms;
MatchValues = matchValues;
CustomInit();
}
@@ -48,7 +50,7 @@ public RequestSchemeMatchConditionParameters()
///
static RequestSchemeMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters";
+ TypeName = "DeliveryRuleRequestSchemeConditionParameters";
OperatorProperty = "Equal";
}
@@ -63,6 +65,12 @@ static RequestSchemeMatchConditionParameters()
[JsonProperty(PropertyName = "negateCondition")]
public bool? NegateCondition { get; set; }
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
///
/// Gets or sets the match value for the condition of the delivery rule
///
@@ -71,8 +79,8 @@ static RequestSchemeMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Describes operator to be matched
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestUriMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestUriMatchConditionParameters.cs
index 7e674179daf0..ae9aa56c9fc6 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestUriMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RequestUriMatchConditionParameters.cs
@@ -56,7 +56,7 @@ public RequestUriMatchConditionParameters()
///
static RequestUriMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters";
+ TypeName = "DeliveryRuleRequestUriConditionParameters";
}
///
@@ -93,8 +93,8 @@ static RequestUriMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ResourceType.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ResourceType.cs
index e21802bf8cac..ec54267ceb25 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ResourceType.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ResourceType.cs
@@ -10,45 +10,13 @@
namespace Microsoft.Azure.Management.Cdn.Models
{
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using System.Runtime;
- using System.Runtime.Serialization;
///
/// Defines values for ResourceType.
///
- [JsonConverter(typeof(StringEnumConverter))]
- public enum ResourceType
+ public static class ResourceType
{
- [EnumMember(Value = "Microsoft.Cdn/Profiles/Endpoints")]
- MicrosoftCdnProfilesEndpoints
- }
- internal static class ResourceTypeEnumExtension
- {
- internal static string ToSerializedValue(this ResourceType? value)
- {
- return value == null ? null : ((ResourceType)value).ToSerializedValue();
- }
-
- internal static string ToSerializedValue(this ResourceType value)
- {
- switch( value )
- {
- case ResourceType.MicrosoftCdnProfilesEndpoints:
- return "Microsoft.Cdn/Profiles/Endpoints";
- }
- return null;
- }
-
- internal static ResourceType? ParseResourceType(this string value)
- {
- switch( value )
- {
- case "Microsoft.Cdn/Profiles/Endpoints":
- return ResourceType.MicrosoftCdnProfilesEndpoints;
- }
- return null;
- }
+ public const string MicrosoftCdnProfilesEndpoints = "Microsoft.Cdn/Profiles/Endpoints";
+ public const string MicrosoftCdnProfilesAfdEndpoints = "Microsoft.Cdn/Profiles/AfdEndpoints";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Route.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Route.cs
index 9982a3e76b18..8a37c28133da 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Route.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Route.cs
@@ -39,6 +39,8 @@ public Route()
/// Resource ID.
/// Resource name.
/// Resource type.
+ /// The name of the endpoint which holds the
+ /// route.
/// Domains referenced by this
/// endpoint.
/// A directory path on the origin that
@@ -50,13 +52,9 @@ public Route()
/// this route.
/// The route patterns of the
/// rule.
- /// compression settings.
- /// Defines how CDN caches
- /// requests that include query strings. You can ignore any query
- /// strings when caching, bypass caching to prevent requests that
- /// contain query strings from being cached, or cache every request
- /// with a unique URL. Possible values include: 'IgnoreQueryString',
- /// 'UseQueryString', 'NotSet'
+ /// The caching configuration for this
+ /// route. To disable caching, do not provide a cacheConfiguration
+ /// object.
/// Protocol this rule will use when
/// forwarding traffic to backends. Possible values include:
/// 'HttpOnly', 'HttpsOnly', 'MatchRequest'
@@ -75,17 +73,17 @@ public Route()
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
- public Route(ResourceReference originGroup, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IList customDomains = default(IList), string originPath = default(string), IList ruleSets = default(IList), IList supportedProtocols = default(IList), IList patternsToMatch = default(IList), object compressionSettings = default(object), AfdQueryStringCachingBehavior? queryStringCachingBehavior = default(AfdQueryStringCachingBehavior?), string forwardingProtocol = default(string), string linkToDefaultDomain = default(string), string httpsRedirect = default(string), string enabledState = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
+ public Route(ResourceReference originGroup, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string endpointName = default(string), IList customDomains = default(IList), string originPath = default(string), IList ruleSets = default(IList), IList supportedProtocols = default(IList), IList patternsToMatch = default(IList), AfdRouteCacheConfiguration cacheConfiguration = default(AfdRouteCacheConfiguration), string forwardingProtocol = default(string), string linkToDefaultDomain = default(string), string httpsRedirect = default(string), string enabledState = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
: base(id, name, type, systemData)
{
+ EndpointName = endpointName;
CustomDomains = customDomains;
OriginGroup = originGroup;
OriginPath = originPath;
RuleSets = ruleSets;
SupportedProtocols = supportedProtocols;
PatternsToMatch = patternsToMatch;
- CompressionSettings = compressionSettings;
- QueryStringCachingBehavior = queryStringCachingBehavior;
+ CacheConfiguration = cacheConfiguration;
ForwardingProtocol = forwardingProtocol;
LinkToDefaultDomain = linkToDefaultDomain;
HttpsRedirect = httpsRedirect;
@@ -100,11 +98,17 @@ public Route()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the endpoint which holds the route.
+ ///
+ [JsonProperty(PropertyName = "properties.endpointName")]
+ public string EndpointName { get; private set; }
+
///
/// Gets or sets domains referenced by this endpoint.
///
[JsonProperty(PropertyName = "properties.customDomains")]
- public IList CustomDomains { get; set; }
+ public IList CustomDomains { get; set; }
///
/// Gets or sets a reference to the origin group.
@@ -138,20 +142,11 @@ public Route()
public IList PatternsToMatch { get; set; }
///
- /// Gets or sets compression settings.
- ///
- [JsonProperty(PropertyName = "properties.compressionSettings")]
- public object CompressionSettings { get; set; }
-
- ///
- /// Gets or sets defines how CDN caches requests that include query
- /// strings. You can ignore any query strings when caching, bypass
- /// caching to prevent requests that contain query strings from being
- /// cached, or cache every request with a unique URL. Possible values
- /// include: 'IgnoreQueryString', 'UseQueryString', 'NotSet'
+ /// Gets or sets the caching configuration for this route. To disable
+ /// caching, do not provide a cacheConfiguration object.
///
- [JsonProperty(PropertyName = "properties.queryStringCachingBehavior")]
- public AfdQueryStringCachingBehavior? QueryStringCachingBehavior { get; set; }
+ [JsonProperty(PropertyName = "properties.cacheConfiguration")]
+ public AfdRouteCacheConfiguration CacheConfiguration { get; set; }
///
/// Gets or sets protocol this rule will use when forwarding traffic to
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteConfigurationOverrideActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteConfigurationOverrideActionParameters.cs
new file mode 100644
index 000000000000..bb350ecae03c
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteConfigurationOverrideActionParameters.cs
@@ -0,0 +1,81 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for the route configuration override action.
+ ///
+ public partial class RouteConfigurationOverrideActionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// RouteConfigurationOverrideActionParameters class.
+ ///
+ public RouteConfigurationOverrideActionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// RouteConfigurationOverrideActionParameters class.
+ ///
+ /// A reference to the origin group
+ /// override configuration. Leave empty to use the default origin group
+ /// on route.
+ /// The caching configuration
+ /// associated with this rule. To disable caching, do not provide a
+ /// cacheConfiguration object.
+ public RouteConfigurationOverrideActionParameters(OriginGroupOverride originGroupOverride = default(OriginGroupOverride), CacheConfiguration cacheConfiguration = default(CacheConfiguration))
+ {
+ OriginGroupOverride = originGroupOverride;
+ CacheConfiguration = cacheConfiguration;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for RouteConfigurationOverrideActionParameters
+ /// class.
+ ///
+ static RouteConfigurationOverrideActionParameters()
+ {
+ TypeName = "DeliveryRuleRouteConfigurationOverrideActionParameters";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a reference to the origin group override
+ /// configuration. Leave empty to use the default origin group on
+ /// route.
+ ///
+ [JsonProperty(PropertyName = "originGroupOverride")]
+ public OriginGroupOverride OriginGroupOverride { get; set; }
+
+ ///
+ /// Gets or sets the caching configuration associated with this rule.
+ /// To disable caching, do not provide a cacheConfiguration object.
+ ///
+ [JsonProperty(PropertyName = "cacheConfiguration")]
+ public CacheConfiguration CacheConfiguration { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteUpdateParameters.cs
index 6a8da56753f0..91944afc305e 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RouteUpdateParameters.cs
@@ -34,6 +34,8 @@ public RouteUpdateParameters()
///
/// Initializes a new instance of the RouteUpdateParameters class.
///
+ /// The name of the endpoint which holds the
+ /// route.
/// Domains referenced by this
/// endpoint.
/// A reference to the origin group.
@@ -46,13 +48,9 @@ public RouteUpdateParameters()
/// this route.
/// The route patterns of the
/// rule.
- /// compression settings.
- /// Defines how CDN caches
- /// requests that include query strings. You can ignore any query
- /// strings when caching, bypass caching to prevent requests that
- /// contain query strings from being cached, or cache every request
- /// with a unique URL. Possible values include: 'IgnoreQueryString',
- /// 'UseQueryString', 'NotSet'
+ /// The caching configuration for this
+ /// route. To disable caching, do not provide a cacheConfiguration
+ /// object.
/// Protocol this rule will use when
/// forwarding traffic to backends. Possible values include:
/// 'HttpOnly', 'HttpsOnly', 'MatchRequest'
@@ -66,16 +64,16 @@ public RouteUpdateParameters()
/// Whether to enable use of this rule.
/// Permitted values are 'Enabled' or 'Disabled'. Possible values
/// include: 'Enabled', 'Disabled'
- public RouteUpdateParameters(IList customDomains = default(IList), ResourceReference originGroup = default(ResourceReference), string originPath = default(string), IList ruleSets = default(IList), IList supportedProtocols = default(IList), IList patternsToMatch = default(IList), object compressionSettings = default(object), AfdQueryStringCachingBehavior? queryStringCachingBehavior = default(AfdQueryStringCachingBehavior?), string forwardingProtocol = default(string), string linkToDefaultDomain = default(string), string httpsRedirect = default(string), string enabledState = default(string))
+ public RouteUpdateParameters(string endpointName = default(string), IList customDomains = default(IList), ResourceReference originGroup = default(ResourceReference), string originPath = default(string), IList ruleSets = default(IList), IList supportedProtocols = default(IList), IList patternsToMatch = default(IList), AfdRouteCacheConfiguration cacheConfiguration = default(AfdRouteCacheConfiguration), string forwardingProtocol = default(string), string linkToDefaultDomain = default(string), string httpsRedirect = default(string), string enabledState = default(string))
{
+ EndpointName = endpointName;
CustomDomains = customDomains;
OriginGroup = originGroup;
OriginPath = originPath;
RuleSets = ruleSets;
SupportedProtocols = supportedProtocols;
PatternsToMatch = patternsToMatch;
- CompressionSettings = compressionSettings;
- QueryStringCachingBehavior = queryStringCachingBehavior;
+ CacheConfiguration = cacheConfiguration;
ForwardingProtocol = forwardingProtocol;
LinkToDefaultDomain = linkToDefaultDomain;
HttpsRedirect = httpsRedirect;
@@ -88,11 +86,17 @@ public RouteUpdateParameters()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the endpoint which holds the route.
+ ///
+ [JsonProperty(PropertyName = "properties.endpointName")]
+ public string EndpointName { get; private set; }
+
///
/// Gets or sets domains referenced by this endpoint.
///
[JsonProperty(PropertyName = "properties.customDomains")]
- public IList CustomDomains { get; set; }
+ public IList CustomDomains { get; set; }
///
/// Gets or sets a reference to the origin group.
@@ -126,20 +130,11 @@ public RouteUpdateParameters()
public IList PatternsToMatch { get; set; }
///
- /// Gets or sets compression settings.
- ///
- [JsonProperty(PropertyName = "properties.compressionSettings")]
- public object CompressionSettings { get; set; }
-
- ///
- /// Gets or sets defines how CDN caches requests that include query
- /// strings. You can ignore any query strings when caching, bypass
- /// caching to prevent requests that contain query strings from being
- /// cached, or cache every request with a unique URL. Possible values
- /// include: 'IgnoreQueryString', 'UseQueryString', 'NotSet'
+ /// Gets or sets the caching configuration for this route. To disable
+ /// caching, do not provide a cacheConfiguration object.
///
- [JsonProperty(PropertyName = "properties.queryStringCachingBehavior")]
- public AfdQueryStringCachingBehavior? QueryStringCachingBehavior { get; set; }
+ [JsonProperty(PropertyName = "properties.cacheConfiguration")]
+ public AfdRouteCacheConfiguration CacheConfiguration { get; set; }
///
/// Gets or sets protocol this rule will use when forwarding traffic to
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Rule.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Rule.cs
index 97866c92ab94..190f13aef673 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Rule.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Rule.cs
@@ -45,6 +45,8 @@ public Rule()
/// Resource ID.
/// Resource name.
/// Resource type.
+ /// The name of the rule set containing the
+ /// rule.
/// A list of conditions that must be matched
/// for the actions to be executed
/// If this rule is a match
@@ -56,9 +58,10 @@ public Rule()
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
- public Rule(int order, IList actions, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IList conditions = default(IList), string matchProcessingBehavior = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
+ public Rule(int order, IList actions, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string ruleSetName = default(string), IList conditions = default(IList), string matchProcessingBehavior = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
: base(id, name, type, systemData)
{
+ RuleSetName = ruleSetName;
Order = order;
Conditions = conditions;
Actions = actions;
@@ -73,6 +76,12 @@ public Rule()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the rule set containing the rule.
+ ///
+ [JsonProperty(PropertyName = "properties.ruleSetName")]
+ public string RuleSetName { get; private set; }
+
///
/// Gets or sets the order in which the rules are applied for the
/// endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleCacheBehavior.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleCacheBehavior.cs
new file mode 100644
index 000000000000..062e77f16860
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleCacheBehavior.cs
@@ -0,0 +1,23 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for RuleCacheBehavior.
+ ///
+ public static class RuleCacheBehavior
+ {
+ public const string HonorOrigin = "HonorOrigin";
+ public const string OverrideAlways = "OverrideAlways";
+ public const string OverrideIfOriginMissing = "OverrideIfOriginMissing";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleIsCompressionEnabled.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleIsCompressionEnabled.cs
new file mode 100644
index 000000000000..e899a4b85489
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleIsCompressionEnabled.cs
@@ -0,0 +1,22 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for RuleIsCompressionEnabled.
+ ///
+ public static class RuleIsCompressionEnabled
+ {
+ public const string Enabled = "Enabled";
+ public const string Disabled = "Disabled";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleQueryStringCachingBehavior.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleQueryStringCachingBehavior.cs
new file mode 100644
index 000000000000..d82e471bba58
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleQueryStringCachingBehavior.cs
@@ -0,0 +1,24 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for RuleQueryStringCachingBehavior.
+ ///
+ public static class RuleQueryStringCachingBehavior
+ {
+ public const string IgnoreQueryString = "IgnoreQueryString";
+ public const string UseQueryString = "UseQueryString";
+ public const string IgnoreSpecifiedQueryStrings = "IgnoreSpecifiedQueryStrings";
+ public const string IncludeSpecifiedQueryStrings = "IncludeSpecifiedQueryStrings";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleSet.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleSet.cs
index a422868252c7..38819b01d9b3 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleSet.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleSet.cs
@@ -41,11 +41,14 @@ public RuleSet()
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
- public RuleSet(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string deploymentStatus = default(string))
+ /// The name of the profile which holds the
+ /// rule set.
+ public RuleSet(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string deploymentStatus = default(string), string profileName = default(string))
: base(id, name, type, systemData)
{
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
+ ProfileName = profileName;
CustomInit();
}
@@ -68,5 +71,11 @@ public RuleSet()
[JsonProperty(PropertyName = "properties.deploymentStatus")]
public string DeploymentStatus { get; private set; }
+ ///
+ /// Gets the name of the profile which holds the rule set.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleUpdateParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleUpdateParameters.cs
index 1ff36f5c04cd..fa34ade1b393 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleUpdateParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/RuleUpdateParameters.cs
@@ -34,6 +34,8 @@ public RuleUpdateParameters()
///
/// Initializes a new instance of the RuleUpdateParameters class.
///
+ /// The name of the rule set containing the
+ /// rule.
/// The order in which the rules are applied for
/// the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser
/// order will be applied before a rule with a greater order. Rule with
@@ -47,8 +49,9 @@ public RuleUpdateParameters()
/// should the rules engine continue running the remaining rules or
/// stop. If not present, defaults to Continue. Possible values
/// include: 'Continue', 'Stop'
- public RuleUpdateParameters(int? order = default(int?), IList conditions = default(IList), IList actions = default(IList), string matchProcessingBehavior = default(string))
+ public RuleUpdateParameters(string ruleSetName = default(string), int? order = default(int?), IList conditions = default(IList), IList actions = default(IList), string matchProcessingBehavior = default(string))
{
+ RuleSetName = ruleSetName;
Order = order;
Conditions = conditions;
Actions = actions;
@@ -61,6 +64,12 @@ public RuleUpdateParameters()
///
partial void CustomInit();
+ ///
+ /// Gets the name of the rule set containing the rule.
+ ///
+ [JsonProperty(PropertyName = "properties.ruleSetName")]
+ public string RuleSetName { get; private set; }
+
///
/// Gets or sets the order in which the rules are applied for the
/// endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Secret.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Secret.cs
index 1916219d80ec..b52a8a014325 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Secret.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Secret.cs
@@ -41,13 +41,16 @@ public Secret()
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
+ /// The name of the profile which holds the
+ /// secret.
/// object which contains secret
/// parameters
- public Secret(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string deploymentStatus = default(string), SecretParameters parameters = default(SecretParameters))
+ public Secret(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string deploymentStatus = default(string), string profileName = default(string), SecretParameters parameters = default(SecretParameters))
: base(id, name, type, systemData)
{
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
+ ProfileName = profileName;
Parameters = parameters;
CustomInit();
}
@@ -71,6 +74,12 @@ public Secret()
[JsonProperty(PropertyName = "properties.deploymentStatus")]
public string DeploymentStatus { get; private set; }
+ ///
+ /// Gets the name of the profile which holds the secret.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
///
/// Gets or sets object which contains secret parameters
///
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecretProperties.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecretProperties.cs
deleted file mode 100644
index 40e2d96c9fa4..000000000000
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecretProperties.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-//
-// 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.Cdn.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// The JSON object that contains the properties of the Secret to create.
- ///
- public partial class SecretProperties : AFDStateProperties
- {
- ///
- /// Initializes a new instance of the SecretProperties class.
- ///
- public SecretProperties()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the SecretProperties class.
- ///
- /// Provisioning status. Possible
- /// values include: 'Succeeded', 'Failed', 'Updating', 'Deleting',
- /// 'Creating'
- /// Possible values include:
- /// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
- /// object which contains secret
- /// parameters
- public SecretProperties(string provisioningState = default(string), string deploymentStatus = default(string), SecretParameters parameters = default(SecretParameters))
- : base(provisioningState, deploymentStatus)
- {
- Parameters = parameters;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets object which contains secret parameters
- ///
- [JsonProperty(PropertyName = "parameters")]
- public SecretParameters Parameters { get; set; }
-
- }
-}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretType.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecretType.cs
similarity index 79%
rename from sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretType.cs
rename to sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecretType.cs
index 8e94247c8b75..784258924a3a 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretType.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecretType.cs
@@ -12,12 +12,13 @@ namespace Microsoft.Azure.Management.Cdn.Models
{
///
- /// Defines values for ValidateSecretType.
+ /// Defines values for SecretType.
///
- public static class ValidateSecretType
+ public static class SecretType
{
public const string UrlSigningKey = "UrlSigningKey";
- public const string ManagedCertificate = "ManagedCertificate";
public const string CustomerCertificate = "CustomerCertificate";
+ public const string ManagedCertificate = "ManagedCertificate";
+ public const string AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicy.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicy.cs
index 07ee6d194402..094dc7d57e9b 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicy.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicy.cs
@@ -40,13 +40,16 @@ public SecurityPolicy()
/// 'Creating'
/// Possible values include:
/// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
+ /// The name of the profile which holds the
+ /// security policy.
/// object which contains security policy
/// parameters
- public SecurityPolicy(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string deploymentStatus = default(string), SecurityPolicyParameters parameters = default(SecurityPolicyParameters))
+ public SecurityPolicy(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string deploymentStatus = default(string), string profileName = default(string), SecurityPolicyPropertiesParameters parameters = default(SecurityPolicyPropertiesParameters))
: base(id, name, type, systemData)
{
ProvisioningState = provisioningState;
DeploymentStatus = deploymentStatus;
+ ProfileName = profileName;
Parameters = parameters;
CustomInit();
}
@@ -70,11 +73,17 @@ public SecurityPolicy()
[JsonProperty(PropertyName = "properties.deploymentStatus")]
public string DeploymentStatus { get; private set; }
+ ///
+ /// Gets the name of the profile which holds the security policy.
+ ///
+ [JsonProperty(PropertyName = "properties.profileName")]
+ public string ProfileName { get; private set; }
+
///
/// Gets or sets object which contains security policy parameters
///
[JsonProperty(PropertyName = "properties.parameters")]
- public SecurityPolicyParameters Parameters { get; set; }
+ public SecurityPolicyPropertiesParameters Parameters { get; set; }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyPropertiesParameters.cs
similarity index 79%
rename from sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyParameters.cs
rename to sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyPropertiesParameters.cs
index 8bbb42a95ac4..3c129b017e5b 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyPropertiesParameters.cs
@@ -15,12 +15,13 @@ namespace Microsoft.Azure.Management.Cdn.Models
///
/// The json object containing security policy parameters
///
- public partial class SecurityPolicyParameters
+ public partial class SecurityPolicyPropertiesParameters
{
///
- /// Initializes a new instance of the SecurityPolicyParameters class.
+ /// Initializes a new instance of the
+ /// SecurityPolicyPropertiesParameters class.
///
- public SecurityPolicyParameters()
+ public SecurityPolicyPropertiesParameters()
{
CustomInit();
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyProperties.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyUpdateParameters.cs
similarity index 51%
rename from sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyProperties.cs
rename to sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyUpdateParameters.cs
index 0d5ef24e7601..9ce939c93677 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyProperties.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyUpdateParameters.cs
@@ -10,35 +10,33 @@
namespace Microsoft.Azure.Management.Cdn.Models
{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;
///
- /// The json object that contains properties required to create a security
- /// policy
+ /// The JSON object containing security policy update parameters.
///
- public partial class SecurityPolicyProperties : AFDStateProperties
+ [Rest.Serialization.JsonTransformation]
+ public partial class SecurityPolicyUpdateParameters
{
///
- /// Initializes a new instance of the SecurityPolicyProperties class.
+ /// Initializes a new instance of the SecurityPolicyUpdateParameters
+ /// class.
///
- public SecurityPolicyProperties()
+ public SecurityPolicyUpdateParameters()
{
CustomInit();
}
///
- /// Initializes a new instance of the SecurityPolicyProperties class.
+ /// Initializes a new instance of the SecurityPolicyUpdateParameters
+ /// class.
///
- /// Provisioning status. Possible
- /// values include: 'Succeeded', 'Failed', 'Updating', 'Deleting',
- /// 'Creating'
- /// Possible values include:
- /// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'
/// object which contains security policy
/// parameters
- public SecurityPolicyProperties(string provisioningState = default(string), string deploymentStatus = default(string), SecurityPolicyParameters parameters = default(SecurityPolicyParameters))
- : base(provisioningState, deploymentStatus)
+ public SecurityPolicyUpdateParameters(SecurityPolicyPropertiesParameters parameters = default(SecurityPolicyPropertiesParameters))
{
Parameters = parameters;
CustomInit();
@@ -52,8 +50,8 @@ public SecurityPolicyProperties()
///
/// Gets or sets object which contains security policy parameters
///
- [JsonProperty(PropertyName = "parameters")]
- public SecurityPolicyParameters Parameters { get; set; }
+ [JsonProperty(PropertyName = "properties.parameters")]
+ public SecurityPolicyPropertiesParameters Parameters { get; set; }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs
index 2b21de9a2dc0..26ec43dc14a1 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs
@@ -35,7 +35,7 @@ public SecurityPolicyWebApplicationFirewallAssociation()
///
/// List of domains.
/// List of paths
- public SecurityPolicyWebApplicationFirewallAssociation(IList domains = default(IList), IList patternsToMatch = default(IList))
+ public SecurityPolicyWebApplicationFirewallAssociation(IList domains = default(IList), IList patternsToMatch = default(IList))
{
Domains = domains;
PatternsToMatch = patternsToMatch;
@@ -51,7 +51,7 @@ public SecurityPolicyWebApplicationFirewallAssociation()
/// Gets or sets list of domains.
///
[JsonProperty(PropertyName = "domains")]
- public IList Domains { get; set; }
+ public IList Domains { get; set; }
///
/// Gets or sets list of paths
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallParameters.cs
index eaf7844c35b0..63fd67bf1916 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallParameters.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Cdn.Models
/// The json object containing security policy waf parameters
///
[Newtonsoft.Json.JsonObject("WebApplicationFirewall")]
- public partial class SecurityPolicyWebApplicationFirewallParameters : SecurityPolicyParameters
+ public partial class SecurityPolicyWebApplicationFirewallParameters : SecurityPolicyPropertiesParameters
{
///
/// Initializes a new instance of the
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServerPortMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServerPortMatchConditionParameters.cs
new file mode 100644
index 000000000000..438a91646099
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServerPortMatchConditionParameters.cs
@@ -0,0 +1,113 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for ServerPort match conditions
+ ///
+ public partial class ServerPortMatchConditionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ServerPortMatchConditionParameters class.
+ ///
+ public ServerPortMatchConditionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ServerPortMatchConditionParameters class.
+ ///
+ /// Describes operator to be matched.
+ /// Possible values include: 'Any', 'Equal', 'Contains', 'BeginsWith',
+ /// 'EndsWith', 'LessThan', 'LessThanOrEqual', 'GreaterThan',
+ /// 'GreaterThanOrEqual', 'RegEx'
+ /// Describes if this is negate condition
+ /// or not
+ /// The match value for the condition of the
+ /// delivery rule
+ /// List of transforms
+ public ServerPortMatchConditionParameters(string operatorProperty, bool? negateCondition = default(bool?), IList matchValues = default(IList), IList transforms = default(IList))
+ {
+ OperatorProperty = operatorProperty;
+ NegateCondition = negateCondition;
+ MatchValues = matchValues;
+ Transforms = transforms;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for ServerPortMatchConditionParameters class.
+ ///
+ static ServerPortMatchConditionParameters()
+ {
+ TypeName = "DeliveryRuleServerPortConditionParameters";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes operator to be matched. Possible values
+ /// include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
+ /// 'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual',
+ /// 'RegEx'
+ ///
+ [JsonProperty(PropertyName = "operator")]
+ public string OperatorProperty { get; set; }
+
+ ///
+ /// Gets or sets describes if this is negate condition or not
+ ///
+ [JsonProperty(PropertyName = "negateCondition")]
+ public bool? NegateCondition { get; set; }
+
+ ///
+ /// Gets or sets the match value for the condition of the delivery rule
+ ///
+ [JsonProperty(PropertyName = "matchValues")]
+ public IList MatchValues { get; set; }
+
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (OperatorProperty == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServerPortOperator.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServerPortOperator.cs
new file mode 100644
index 000000000000..94076b141ae1
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServerPortOperator.cs
@@ -0,0 +1,30 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for ServerPortOperator.
+ ///
+ public static class ServerPortOperator
+ {
+ public const string Any = "Any";
+ public const string Equal = "Equal";
+ public const string Contains = "Contains";
+ public const string BeginsWith = "BeginsWith";
+ public const string EndsWith = "EndsWith";
+ public const string LessThan = "LessThan";
+ public const string LessThanOrEqual = "LessThanOrEqual";
+ public const string GreaterThan = "GreaterThan";
+ public const string GreaterThanOrEqual = "GreaterThanOrEqual";
+ public const string RegEx = "RegEx";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServiceSpecification.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServiceSpecification.cs
new file mode 100644
index 000000000000..06fd43e6da43
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ServiceSpecification.cs
@@ -0,0 +1,63 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// One property of operation, include log specifications.
+ ///
+ public partial class ServiceSpecification
+ {
+ ///
+ /// Initializes a new instance of the ServiceSpecification class.
+ ///
+ public ServiceSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ServiceSpecification class.
+ ///
+ /// Log specifications of
+ /// operation.
+ /// Metric specifications of
+ /// operation.
+ public ServiceSpecification(IList logSpecifications = default(IList), IList metricSpecifications = default(IList))
+ {
+ LogSpecifications = logSpecifications;
+ MetricSpecifications = metricSpecifications;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets log specifications of operation.
+ ///
+ [JsonProperty(PropertyName = "logSpecifications")]
+ public IList LogSpecifications { get; set; }
+
+ ///
+ /// Gets or sets metric specifications of operation.
+ ///
+ [JsonProperty(PropertyName = "metricSpecifications")]
+ public IList MetricSpecifications { get; set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Sku.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Sku.cs
index ccd0a432db93..7cda369e0468 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Sku.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Sku.cs
@@ -14,8 +14,31 @@ namespace Microsoft.Azure.Management.Cdn.Models
using System.Linq;
///
- /// The pricing tier (defines a CDN provider, feature list and rate) of the
- /// CDN profile.
+ /// Standard_Verizon = The SKU name for a Standard Verizon CDN profile.
+ /// Premium_Verizon = The SKU name for a Premium Verizon CDN profile.
+ /// Custom_Verizon = The SKU name for a Custom Verizon CDN profile.
+ /// Standard_Akamai = The SKU name for an Akamai CDN profile.
+ /// Standard_ChinaCdn = The SKU name for a China CDN profile for VOD, Web
+ /// and download scenarios using GB based billing model.
+ /// Standard_Microsoft = The SKU name for a Standard Microsoft CDN profile.
+ /// Standard_AzureFrontDoor = The SKU name for an Azure Front Door
+ /// Standard profile.
+ /// Premium_AzureFrontDoor = The SKU name for an Azure Front Door Premium
+ /// profile.
+ /// Standard_955BandWidth_ChinaCdn = The SKU name for a China CDN profile
+ /// for VOD, Web and download scenarios using 95-5 peak bandwidth billing
+ /// model.
+ /// Standard_AvgBandWidth_ChinaCdn = The SKU name for a China CDN profile
+ /// for VOD, Web and download scenarios using monthly average peak
+ /// bandwidth billing model.
+ /// StandardPlus_ChinaCdn = The SKU name for a China CDN profile for
+ /// live-streaming using GB based billing model.
+ /// StandardPlus_955BandWidth_ChinaCdn = The SKU name for a China CDN
+ /// live-streaming profile using 95-5 peak bandwidth billing model.
+ /// StandardPlus_AvgBandWidth_ChinaCdn = The SKU name for a China CDN
+ /// live-streaming profile using monthly average peak bandwidth billing
+ /// model.
+ ///
///
public partial class Sku
{
@@ -33,10 +56,9 @@ public Sku()
/// Name of the pricing tier. Possible values
/// include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
/// 'Standard_Akamai', 'Standard_ChinaCdn', 'Standard_Microsoft',
- /// 'Premium_ChinaCdn', 'Standard_AzureFrontDoor',
- /// 'Premium_AzureFrontDoor', 'Standard_955BandWidth_ChinaCdn',
- /// 'Standard_AvgBandWidth_ChinaCdn', 'StandardPlus_ChinaCdn',
- /// 'StandardPlus_955BandWidth_ChinaCdn',
+ /// 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor',
+ /// 'Standard_955BandWidth_ChinaCdn', 'Standard_AvgBandWidth_ChinaCdn',
+ /// 'StandardPlus_ChinaCdn', 'StandardPlus_955BandWidth_ChinaCdn',
/// 'StandardPlus_AvgBandWidth_ChinaCdn'
public Sku(string name = default(string))
{
@@ -53,10 +75,9 @@ public Sku()
/// Gets or sets name of the pricing tier. Possible values include:
/// 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
/// 'Standard_Akamai', 'Standard_ChinaCdn', 'Standard_Microsoft',
- /// 'Premium_ChinaCdn', 'Standard_AzureFrontDoor',
- /// 'Premium_AzureFrontDoor', 'Standard_955BandWidth_ChinaCdn',
- /// 'Standard_AvgBandWidth_ChinaCdn', 'StandardPlus_ChinaCdn',
- /// 'StandardPlus_955BandWidth_ChinaCdn',
+ /// 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor',
+ /// 'Standard_955BandWidth_ChinaCdn', 'Standard_AvgBandWidth_ChinaCdn',
+ /// 'StandardPlus_ChinaCdn', 'StandardPlus_955BandWidth_ChinaCdn',
/// 'StandardPlus_AvgBandWidth_ChinaCdn'
///
[JsonProperty(PropertyName = "name")]
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SkuName.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SkuName.cs
index f94cb2ade9b2..71307b538b38 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SkuName.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SkuName.cs
@@ -22,7 +22,6 @@ public static class SkuName
public const string StandardAkamai = "Standard_Akamai";
public const string StandardChinaCdn = "Standard_ChinaCdn";
public const string StandardMicrosoft = "Standard_Microsoft";
- public const string PremiumChinaCdn = "Premium_ChinaCdn";
public const string StandardAzureFrontDoor = "Standard_AzureFrontDoor";
public const string PremiumAzureFrontDoor = "Premium_AzureFrontDoor";
public const string Standard955BandWidthChinaCdn = "Standard_955BandWidth_ChinaCdn";
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SocketAddrMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SocketAddrMatchConditionParameters.cs
new file mode 100644
index 000000000000..5d95b0d313a0
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SocketAddrMatchConditionParameters.cs
@@ -0,0 +1,109 @@
+//
+// 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.Cdn.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for SocketAddress match conditions
+ ///
+ public partial class SocketAddrMatchConditionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SocketAddrMatchConditionParameters class.
+ ///
+ public SocketAddrMatchConditionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// SocketAddrMatchConditionParameters class.
+ ///
+ /// Describes operator to be matched.
+ /// Possible values include: 'Any', 'IPMatch'
+ /// Describes if this is negate condition
+ /// or not
+ /// The match value for the condition of the
+ /// delivery rule
+ /// List of transforms
+ public SocketAddrMatchConditionParameters(string operatorProperty, bool? negateCondition = default(bool?), IList matchValues = default(IList), IList transforms = default(IList))
+ {
+ OperatorProperty = operatorProperty;
+ NegateCondition = negateCondition;
+ MatchValues = matchValues;
+ Transforms = transforms;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for SocketAddrMatchConditionParameters class.
+ ///
+ static SocketAddrMatchConditionParameters()
+ {
+ TypeName = "DeliveryRuleSocketAddrConditionParameters";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes operator to be matched. Possible values
+ /// include: 'Any', 'IPMatch'
+ ///
+ [JsonProperty(PropertyName = "operator")]
+ public string OperatorProperty { get; set; }
+
+ ///
+ /// Gets or sets describes if this is negate condition or not
+ ///
+ [JsonProperty(PropertyName = "negateCondition")]
+ public bool? NegateCondition { get; set; }
+
+ ///
+ /// Gets or sets the match value for the condition of the delivery rule
+ ///
+ [JsonProperty(PropertyName = "matchValues")]
+ public IList MatchValues { get; set; }
+
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (OperatorProperty == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty");
+ }
+ }
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SocketAddrOperator.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SocketAddrOperator.cs
new file mode 100644
index 000000000000..1a7cef5940c3
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SocketAddrOperator.cs
@@ -0,0 +1,22 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for SocketAddrOperator.
+ ///
+ public static class SocketAddrOperator
+ {
+ public const string Any = "Any";
+ public const string IPMatch = "IPMatch";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SslProtocol.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SslProtocol.cs
new file mode 100644
index 000000000000..b1e9acc90813
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SslProtocol.cs
@@ -0,0 +1,23 @@
+//
+// 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.Cdn.Models
+{
+
+ ///
+ /// Defines values for SslProtocol.
+ ///
+ public static class SslProtocol
+ {
+ public const string TLSv1 = "TLSv1";
+ public const string TLSv11 = "TLSv1.1";
+ public const string TLSv12 = "TLSv1.2";
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SslProtocolMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SslProtocolMatchConditionParameters.cs
new file mode 100644
index 000000000000..6250f3c9850e
--- /dev/null
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/SslProtocolMatchConditionParameters.cs
@@ -0,0 +1,92 @@
+//
+// 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.Cdn.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines the parameters for SslProtocol match conditions
+ ///
+ public partial class SslProtocolMatchConditionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SslProtocolMatchConditionParameters class.
+ ///
+ public SslProtocolMatchConditionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// SslProtocolMatchConditionParameters class.
+ ///
+ /// Describes if this is negate condition
+ /// or not
+ /// The match value for the condition of the
+ /// delivery rule
+ /// List of transforms
+ public SslProtocolMatchConditionParameters(bool? negateCondition = default(bool?), IList matchValues = default(IList), IList transforms = default(IList))
+ {
+ NegateCondition = negateCondition;
+ MatchValues = matchValues;
+ Transforms = transforms;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for SslProtocolMatchConditionParameters class.
+ ///
+ static SslProtocolMatchConditionParameters()
+ {
+ TypeName = "DeliveryRuleSslProtocolConditionParameters";
+ OperatorProperty = "Equal";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes if this is negate condition or not
+ ///
+ [JsonProperty(PropertyName = "negateCondition")]
+ public bool? NegateCondition { get; set; }
+
+ ///
+ /// Gets or sets the match value for the condition of the delivery rule
+ ///
+ [JsonProperty(PropertyName = "matchValues")]
+ public IList MatchValues { get; set; }
+
+ ///
+ /// Gets or sets list of transforms
+ ///
+ [JsonProperty(PropertyName = "transforms")]
+ public IList Transforms { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
+
+ ///
+ /// Describes operator to be matched
+ ///
+ [JsonProperty(PropertyName = "operator")]
+ public static string OperatorProperty { get; private set; }
+
+ }
+}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Transform.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Transform.cs
index 5fdf9e212ff1..ef9a4eb693c8 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Transform.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Transform.cs
@@ -18,5 +18,9 @@ public static class Transform
{
public const string Lowercase = "Lowercase";
public const string Uppercase = "Uppercase";
+ public const string Trim = "Trim";
+ public const string UrlDecode = "UrlDecode";
+ public const string UrlEncode = "UrlEncode";
+ public const string RemoveNulls = "RemoveNulls";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileExtensionMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileExtensionMatchConditionParameters.cs
index 4eb342df95c1..74874d76e019 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileExtensionMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileExtensionMatchConditionParameters.cs
@@ -57,7 +57,7 @@ public UrlFileExtensionMatchConditionParameters()
///
static UrlFileExtensionMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters";
+ TypeName = "DeliveryRuleUrlFileExtensionMatchConditionParameters";
}
///
@@ -94,8 +94,8 @@ static UrlFileExtensionMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileNameMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileNameMatchConditionParameters.cs
index fc615f11027a..8f2c657902fd 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileNameMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlFileNameMatchConditionParameters.cs
@@ -56,7 +56,7 @@ public UrlFileNameMatchConditionParameters()
///
static UrlFileNameMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters";
+ TypeName = "DeliveryRuleUrlFilenameConditionParameters";
}
///
@@ -93,8 +93,8 @@ static UrlFileNameMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlPathMatchConditionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlPathMatchConditionParameters.cs
index 6649caf80cef..a20fc65bcd1b 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlPathMatchConditionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlPathMatchConditionParameters.cs
@@ -56,7 +56,7 @@ public UrlPathMatchConditionParameters()
///
static UrlPathMatchConditionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters";
+ TypeName = "DeliveryRuleUrlPathMatchConditionParameters";
}
///
@@ -93,8 +93,8 @@ static UrlPathMatchConditionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRedirectActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRedirectActionParameters.cs
index 04b45bdfe52b..f881b62de3f2 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRedirectActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRedirectActionParameters.cs
@@ -67,7 +67,7 @@ public UrlRedirectActionParameters()
///
static UrlRedirectActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters";
+ TypeName = "DeliveryRuleUrlRedirectActionParameters";
}
///
@@ -125,8 +125,8 @@ static UrlRedirectActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRewriteActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRewriteActionParameters.cs
index 6a37beac1862..1210714977c0 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRewriteActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlRewriteActionParameters.cs
@@ -49,7 +49,7 @@ public UrlRewriteActionParameters()
///
static UrlRewriteActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters";
+ TypeName = "DeliveryRuleUrlRewriteActionParameters";
}
///
@@ -81,8 +81,8 @@ static UrlRewriteActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
///
/// Validate the object.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningActionParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningActionParameters.cs
index 2c32d08aaccd..725f276db0eb 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningActionParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningActionParameters.cs
@@ -47,7 +47,7 @@ public UrlSigningActionParameters()
///
static UrlSigningActionParameters()
{
- Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters";
+ TypeName = "DeliveryRuleUrlSigningActionParameters";
}
///
@@ -71,8 +71,8 @@ static UrlSigningActionParameters()
///
///
- [JsonProperty(PropertyName = "@odata.type")]
- public static string Odatatype { get; private set; }
+ [JsonProperty(PropertyName = "typeName")]
+ public static string TypeName { get; private set; }
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningKeyParameters.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningKeyParameters.cs
index 4f1118bd354a..73c26eabdf89 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningKeyParameters.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningKeyParameters.cs
@@ -34,8 +34,9 @@ public UrlSigningKeyParameters()
/// Defines the customer defined key Id. This id
/// will exist in the incoming request to indicate the key used to form
/// the hash.
- /// Resource reference to the KV
- /// secret
+ /// Resource reference to the Azure Key
+ /// Vault secret. Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
/// Version of the secret to be
/// used
public UrlSigningKeyParameters(string keyId, ResourceReference secretSource, string secretVersion = default(string))
@@ -60,7 +61,9 @@ public UrlSigningKeyParameters()
public string KeyId { get; set; }
///
- /// Gets or sets resource reference to the KV secret
+ /// Gets or sets resource reference to the Azure Key Vault secret.
+ /// Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
///
[JsonProperty(PropertyName = "secretSource")]
public ResourceReference SecretSource { get; set; }
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretInput.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretInput.cs
index a799388dec15..af69e06ec0f3 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretInput.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/ValidateSecretInput.cs
@@ -30,14 +30,19 @@ public ValidateSecretInput()
///
/// Initializes a new instance of the ValidateSecretInput class.
///
- /// The secret source.
/// The secret type. Possible values include:
- /// 'UrlSigningKey', 'ManagedCertificate',
- /// 'CustomerCertificate'
- public ValidateSecretInput(ResourceReference secretSource, string secretType)
+ /// 'UrlSigningKey', 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
+ /// Resource reference to the Azure Key
+ /// Vault secret. Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​���​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
+ /// Secret version, if customer is using a
+ /// specific version.
+ public ValidateSecretInput(string secretType, ResourceReference secretSource, string secretVersion = default(string))
{
- SecretSource = secretSource;
SecretType = secretType;
+ SecretSource = secretSource;
+ SecretVersion = secretVersion;
CustomInit();
}
@@ -47,17 +52,27 @@ public ValidateSecretInput(ResourceReference secretSource, string secretType)
partial void CustomInit();
///
- /// Gets or sets the secret source.
+ /// Gets or sets the secret type. Possible values include:
+ /// 'UrlSigningKey', 'CustomerCertificate', 'ManagedCertificate',
+ /// 'AzureFirstPartyManagedCertificate'
+ ///
+ [JsonProperty(PropertyName = "secretType")]
+ public string SecretType { get; set; }
+
+ ///
+ /// Gets or sets resource reference to the Azure Key Vault secret.
+ /// Expected to be in format of
+ /// /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​���​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
///
[JsonProperty(PropertyName = "secretSource")]
public ResourceReference SecretSource { get; set; }
///
- /// Gets or sets the secret type. Possible values include:
- /// 'UrlSigningKey', 'ManagedCertificate', 'CustomerCertificate'
+ /// Gets or sets secret version, if customer is using a specific
+ /// version.
///
- [JsonProperty(PropertyName = "secretType")]
- public string SecretType { get; set; }
+ [JsonProperty(PropertyName = "secretVersion")]
+ public string SecretVersion { get; set; }
///
/// Validate the object.
@@ -67,14 +82,14 @@ public ValidateSecretInput(ResourceReference secretSource, string secretType)
///
public virtual void Validate()
{
- if (SecretSource == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "SecretSource");
- }
if (SecretType == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "SecretType");
}
+ if (SecretSource == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "SecretSource");
+ }
}
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MatchVariable.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafMatchVariable.cs
similarity index 91%
rename from sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MatchVariable.cs
rename to sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafMatchVariable.cs
index 41075c8d9d17..745a15f4ee8c 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/MatchVariable.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafMatchVariable.cs
@@ -12,9 +12,9 @@ namespace Microsoft.Azure.Management.Cdn.Models
{
///
- /// Defines values for MatchVariable.
+ /// Defines values for WafMatchVariable.
///
- public static class MatchVariable
+ public static class WafMatchVariable
{
public const string RemoteAddr = "RemoteAddr";
public const string SocketAddr = "SocketAddr";
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafRankingType.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafRankingType.cs
index 9ed5399a2706..876f083905d2 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafRankingType.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/WafRankingType.cs
@@ -22,7 +22,7 @@ public static class WafRankingType
public const string UserAgent = "userAgent";
public const string ClientIp = "clientIp";
public const string Url = "url";
- public const string Country = "country";
+ public const string CountryOrRegion = "countryOrRegion";
public const string RuleType = "ruleType";
}
}
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginGroupsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginGroupsOperations.cs
index a90589ce9e4b..99e55ffe9c10 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginGroupsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginGroupsOperations.cs
@@ -1272,7 +1272,7 @@ internal OriginGroupsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginsOperations.cs
index 72894a3d4815..86a4968daef4 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/OriginsOperations.cs
@@ -1272,7 +1272,7 @@ internal OriginsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/PoliciesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/PoliciesOperations.cs
index 1c9e6902f3b4..c6160866a3ab 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/PoliciesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/PoliciesOperations.cs
@@ -119,7 +119,7 @@ internal PoliciesOperations(CdnManagementClient 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.Cdn/CdnWebApplicationFirewallPolicies").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
@@ -331,7 +331,7 @@ internal PoliciesOperations(CdnManagementClient 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.Cdn/CdnWebApplicationFirewallPolicies/{policyName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -527,7 +527,7 @@ internal PoliciesOperations(CdnManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -593,7 +593,7 @@ internal PoliciesOperations(CdnManagementClient 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.Cdn/CdnWebApplicationFirewallPolicies/{policyName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -662,14 +662,13 @@ internal PoliciesOperations(CdnManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (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;
}
}
@@ -679,10 +678,6 @@ internal PoliciesOperations(CdnManagementClient 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);
@@ -806,7 +801,7 @@ internal PoliciesOperations(CdnManagementClient 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.Cdn/CdnWebApplicationFirewallPolicies/{policyName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -1071,7 +1066,7 @@ internal PoliciesOperations(CdnManagementClient 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.Cdn/CdnWebApplicationFirewallPolicies/{policyName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperations.cs
index 439a5103e709..f2c02e472608 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperations.cs
@@ -51,7 +51,8 @@ internal ProfilesOperations(CdnManagementClient client)
public CdnManagementClient Client { get; private set; }
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within an Azure subscription.
///
///
/// Headers that will be added to request.
@@ -224,7 +225,8 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within a resource group.
///
///
/// Name of the Resource group within the Azure subscription.
@@ -421,14 +423,16 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Gets a CDN profile with the specified profile name under the specified
- /// subscription and resource group.
+ /// Gets an Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with the specified profile name under the specified subscription
+ /// and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -628,14 +632,16 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with a profile name under the specified subscription and resource
+ /// group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -654,41 +660,49 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Updates an existing CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile tags
///
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When timeout
+ /// is reached, the request fails and returns.
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, originResponseTimeoutSeconds, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Deletes an existing CDN profile with the specified parameters. Deleting a
- /// profile will result in the deletion of all of the sub-resources including
- /// endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified parameters. Deleting a profile will
+ /// result in the deletion of all of the sub-resources including endpoints,
+ /// origins and custom domains.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The headers that will be added to request.
@@ -922,7 +936,8 @@ internal ProfilesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -1122,13 +1137,15 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ /// Checks the quota and actual usage of endpoints under the given Azure Front
+ /// Door Standard or Azure Front Door Premium or CDN profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -1328,14 +1345,16 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with a profile name under the specified subscription and resource
+ /// group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -1589,18 +1608,24 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Updates an existing CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile tags
///
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When timeout
+ /// is reached, the request fails and returns.
+ ///
///
/// Headers that will be added to request.
///
@@ -1622,7 +1647,7 @@ internal ProfilesOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1655,10 +1680,15 @@ internal ProfilesOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
+ if (originResponseTimeoutSeconds < 16)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "originResponseTimeoutSeconds", 16);
+ }
ProfileUpdateParameters profileUpdateParameters = new ProfileUpdateParameters();
- if (tags != null)
+ if (tags != null || originResponseTimeoutSeconds != null)
{
profileUpdateParameters.Tags = tags;
+ profileUpdateParameters.OriginResponseTimeoutSeconds = originResponseTimeoutSeconds;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -1829,15 +1859,17 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Deletes an existing CDN profile with the specified parameters. Deleting a
- /// profile will result in the deletion of all of the sub-resources including
- /// endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified parameters. Deleting a profile will
+ /// result in the deletion of all of the sub-resources including endpoints,
+ /// origins and custom domains.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -1971,7 +2003,7 @@ internal ProfilesOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -2016,7 +2048,8 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within an Azure subscription.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -2184,7 +2217,8 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within a resource group.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -2352,7 +2386,8 @@ internal ProfilesOperations(CdnManagementClient client)
}
///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ /// Checks the quota and actual usage of endpoints under the given Azure Front
+ /// Door Standard or Azure Front Door Premium or CDN profile.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperationsExtensions.cs
index ee1e66b61c22..167a1755abff 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/ProfilesOperationsExtensions.cs
@@ -24,7 +24,8 @@ namespace Microsoft.Azure.Management.Cdn
public static partial class ProfilesOperationsExtensions
{
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within an Azure subscription.
///
///
/// The operations group for this extension method.
@@ -35,7 +36,8 @@ public static IPage List(this IProfilesOperations operations)
}
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within an Azure subscription.
///
///
/// The operations group for this extension method.
@@ -52,7 +54,8 @@ public static IPage List(this IProfilesOperations operations)
}
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within a resource group.
///
///
/// The operations group for this extension method.
@@ -66,7 +69,8 @@ public static IPage ListByResourceGroup(this IProfilesOperations operat
}
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within a resource group.
///
///
/// The operations group for this extension method.
@@ -86,8 +90,9 @@ public static IPage ListByResourceGroup(this IProfilesOperations operat
}
///
- /// Gets a CDN profile with the specified profile name under the specified
- /// subscription and resource group.
+ /// Gets an Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with the specified profile name under the specified subscription
+ /// and resource group.
///
///
/// The operations group for this extension method.
@@ -96,7 +101,8 @@ public static IPage ListByResourceGroup(this IProfilesOperations operat
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
public static Profile Get(this IProfilesOperations operations, string resourceGroupName, string profileName)
{
@@ -104,8 +110,9 @@ public static Profile Get(this IProfilesOperations operations, string resourceGr
}
///
- /// Gets a CDN profile with the specified profile name under the specified
- /// subscription and resource group.
+ /// Gets an Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with the specified profile name under the specified subscription
+ /// and resource group.
///
///
/// The operations group for this extension method.
@@ -114,7 +121,8 @@ public static Profile Get(this IProfilesOperations operations, string resourceGr
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -128,8 +136,9 @@ public static Profile Get(this IProfilesOperations operations, string resourceGr
}
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with a profile name under the specified subscription and resource
+ /// group.
///
///
/// The operations group for this extension method.
@@ -138,7 +147,8 @@ public static Profile Get(this IProfilesOperations operations, string resourceGr
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -149,8 +159,9 @@ public static Profile Create(this IProfilesOperations operations, string resourc
}
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with a profile name under the specified subscription and resource
+ /// group.
///
///
/// The operations group for this extension method.
@@ -159,7 +170,8 @@ public static Profile Create(this IProfilesOperations operations, string resourc
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -176,8 +188,9 @@ public static Profile Create(this IProfilesOperations operations, string resourc
}
///
- /// Updates an existing CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// The operations group for this extension method.
@@ -186,19 +199,25 @@ public static Profile Create(this IProfilesOperations operations, string resourc
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile tags
///
- public static Profile Update(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary))
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When timeout
+ /// is reached, the request fails and returns.
+ ///
+ public static Profile Update(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?))
{
- return operations.UpdateAsync(resourceGroupName, profileName, tags).GetAwaiter().GetResult();
+ return operations.UpdateAsync(resourceGroupName, profileName, tags, originResponseTimeoutSeconds).GetAwaiter().GetResult();
}
///
- /// Updates an existing CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// The operations group for this extension method.
@@ -207,26 +226,32 @@ public static Profile Create(this IProfilesOperations operations, string resourc
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile tags
///
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When timeout
+ /// is reached, the request fails and returns.
+ ///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, originResponseTimeoutSeconds, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Deletes an existing CDN profile with the specified parameters. Deleting a
- /// profile will result in the deletion of all of the sub-resources including
- /// endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified parameters. Deleting a profile will
+ /// result in the deletion of all of the sub-resources including endpoints,
+ /// origins and custom domains.
///
///
/// The operations group for this extension method.
@@ -235,7 +260,8 @@ public static Profile Create(this IProfilesOperations operations, string resourc
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
public static void Delete(this IProfilesOperations operations, string resourceGroupName, string profileName)
{
@@ -243,9 +269,10 @@ public static void Delete(this IProfilesOperations operations, string resourceGr
}
///
- /// Deletes an existing CDN profile with the specified parameters. Deleting a
- /// profile will result in the deletion of all of the sub-resources including
- /// endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified parameters. Deleting a profile will
+ /// result in the deletion of all of the sub-resources including endpoints,
+ /// origins and custom domains.
///
///
/// The operations group for this extension method.
@@ -254,7 +281,8 @@ public static void Delete(this IProfilesOperations operations, string resourceGr
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -325,7 +353,8 @@ public static SsoUri GenerateSsoUri(this IProfilesOperations operations, string
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
public static SupportedOptimizationTypesListResult ListSupportedOptimizationTypes(this IProfilesOperations operations, string resourceGroupName, string profileName)
{
@@ -343,7 +372,8 @@ public static SupportedOptimizationTypesListResult ListSupportedOptimizationType
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -357,7 +387,8 @@ public static SupportedOptimizationTypesListResult ListSupportedOptimizationType
}
///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ /// Checks the quota and actual usage of endpoints under the given Azure Front
+ /// Door Standard or Azure Front Door Premium or CDN profile.
///
///
/// The operations group for this extension method.
@@ -366,7 +397,8 @@ public static SupportedOptimizationTypesListResult ListSupportedOptimizationType
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
public static IPage ListResourceUsage(this IProfilesOperations operations, string resourceGroupName, string profileName)
{
@@ -374,7 +406,8 @@ public static IPage ListResourceUsage(this IProfilesOperations op
}
///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ /// Checks the quota and actual usage of endpoints under the given Azure Front
+ /// Door Standard or Azure Front Door Premium or CDN profile.
///
///
/// The operations group for this extension method.
@@ -383,7 +416,8 @@ public static IPage ListResourceUsage(this IProfilesOperations op
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -397,8 +431,9 @@ public static IPage ListResourceUsage(this IProfilesOperations op
}
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with a profile name under the specified subscription and resource
+ /// group.
///
///
/// The operations group for this extension method.
@@ -407,7 +442,8 @@ public static IPage ListResourceUsage(this IProfilesOperations op
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -418,8 +454,9 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
}
///
- /// Creates a new CDN profile with a profile name under the specified
- /// subscription and resource group.
+ /// Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile with a profile name under the specified subscription and resource
+ /// group.
///
///
/// The operations group for this extension method.
@@ -428,7 +465,8 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile properties needed to create a new profile.
@@ -445,8 +483,9 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
}
///
- /// Updates an existing CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// The operations group for this extension method.
@@ -455,19 +494,25 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile tags
///
- public static Profile BeginUpdate(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary))
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When timeout
+ /// is reached, the request fails and returns.
+ ///
+ public static Profile BeginUpdate(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?))
{
- return operations.BeginUpdateAsync(resourceGroupName, profileName, tags).GetAwaiter().GetResult();
+ return operations.BeginUpdateAsync(resourceGroupName, profileName, tags, originResponseTimeoutSeconds).GetAwaiter().GetResult();
}
///
- /// Updates an existing CDN profile with the specified profile name under the
- /// specified subscription and resource group.
+ /// Updates an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified profile name under the specified
+ /// subscription and resource group.
///
///
/// The operations group for this extension method.
@@ -476,26 +521,32 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// Profile tags
///
+ ///
+ /// Send and receive timeout on forwarding request to the origin. When timeout
+ /// is reached, the request fails and returns.
+ ///
///
/// The cancellation token.
///
- public static async Task BeginUpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginUpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), int? originResponseTimeoutSeconds = default(int?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, originResponseTimeoutSeconds, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Deletes an existing CDN profile with the specified parameters. Deleting a
- /// profile will result in the deletion of all of the sub-resources including
- /// endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified parameters. Deleting a profile will
+ /// result in the deletion of all of the sub-resources including endpoints,
+ /// origins and custom domains.
///
///
/// The operations group for this extension method.
@@ -504,7 +555,8 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
public static void BeginDelete(this IProfilesOperations operations, string resourceGroupName, string profileName)
{
@@ -512,9 +564,10 @@ public static void BeginDelete(this IProfilesOperations operations, string resou
}
///
- /// Deletes an existing CDN profile with the specified parameters. Deleting a
- /// profile will result in the deletion of all of the sub-resources including
- /// endpoints, origins and custom domains.
+ /// Deletes an existing Azure Front Door Standard or Azure Front Door Premium
+ /// or CDN profile with the specified parameters. Deleting a profile will
+ /// result in the deletion of all of the sub-resources including endpoints,
+ /// origins and custom domains.
///
///
/// The operations group for this extension method.
@@ -523,7 +576,8 @@ public static void BeginDelete(this IProfilesOperations operations, string resou
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium or CDN
+ /// profile which is unique within the resource group.
///
///
/// The cancellation token.
@@ -534,7 +588,8 @@ public static void BeginDelete(this IProfilesOperations operations, string resou
}
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within an Azure subscription.
///
///
/// The operations group for this extension method.
@@ -548,7 +603,8 @@ public static IPage ListNext(this IProfilesOperations operations, strin
}
///
- /// Lists all of the CDN profiles within an Azure subscription.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within an Azure subscription.
///
///
/// The operations group for this extension method.
@@ -568,7 +624,8 @@ public static IPage ListNext(this IProfilesOperations operations, strin
}
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within a resource group.
///
///
/// The operations group for this extension method.
@@ -582,7 +639,8 @@ public static IPage ListByResourceGroupNext(this IProfilesOperations op
}
///
- /// Lists all of the CDN profiles within a resource group.
+ /// Lists all of the Azure Front Door Standard, Azure Front Door Premium, and
+ /// CDN profiles within a resource group.
///
///
/// The operations group for this extension method.
@@ -602,7 +660,8 @@ public static IPage ListByResourceGroupNext(this IProfilesOperations op
}
///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ /// Checks the quota and actual usage of endpoints under the given Azure Front
+ /// Door Standard or Azure Front Door Premium or CDN profile.
///
///
/// The operations group for this extension method.
@@ -616,7 +675,8 @@ public static IPage ListResourceUsageNext(this IProfilesOperation
}
///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ /// Checks the quota and actual usage of endpoints under the given Azure Front
+ /// Door Standard or Azure Front Door Premium or CDN profile.
///
///
/// The operations group for this extension method.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperations.cs
index 941e575afcb8..e84be4274afe 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperations.cs
@@ -57,7 +57,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -273,7 +274,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -498,7 +500,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -530,7 +533,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -562,7 +566,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -591,7 +596,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -870,7 +876,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -1127,7 +1134,8 @@ internal RoutesOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperationsExtensions.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperationsExtensions.cs
index 3997b06236ae..90460458ecd7 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperationsExtensions.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RoutesOperationsExtensions.cs
@@ -31,7 +31,8 @@ public static partial class RoutesOperationsExtensions
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -51,7 +52,8 @@ public static IPage ListByEndpoint(this IRoutesOperations operations, str
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -78,7 +80,8 @@ public static IPage ListByEndpoint(this IRoutesOperations operations, str
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -102,7 +105,8 @@ public static Route Get(this IRoutesOperations operations, string resourceGroupN
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -132,7 +136,8 @@ public static Route Get(this IRoutesOperations operations, string resourceGroupN
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -159,7 +164,8 @@ public static Route Create(this IRoutesOperations operations, string resourceGro
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -192,7 +198,8 @@ public static Route Create(this IRoutesOperations operations, string resourceGro
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -219,7 +226,8 @@ public static Route Update(this IRoutesOperations operations, string resourceGro
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -252,7 +260,8 @@ public static Route Update(this IRoutesOperations operations, string resourceGro
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -276,7 +285,8 @@ public static void Delete(this IRoutesOperations operations, string resourceGrou
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -303,7 +313,8 @@ public static void Delete(this IRoutesOperations operations, string resourceGrou
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -330,7 +341,8 @@ public static Route BeginCreate(this IRoutesOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -363,7 +375,8 @@ public static Route BeginCreate(this IRoutesOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -390,7 +403,8 @@ public static Route BeginUpdate(this IRoutesOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -423,7 +437,8 @@ public static Route BeginUpdate(this IRoutesOperations operations, string resour
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
@@ -447,7 +462,8 @@ public static void BeginDelete(this IRoutesOperations operations, string resourc
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the endpoint under the profile which is unique globally.
diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RuleSetsOperations.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RuleSetsOperations.cs
index 2f45a235b16a..f11df0e72f02 100644
--- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RuleSetsOperations.cs
+++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/RuleSetsOperations.cs
@@ -57,7 +57,8 @@ internal RuleSetsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Headers that will be added to request.
@@ -264,7 +265,8 @@ internal RuleSetsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally.
@@ -479,63 +481,13 @@ internal RuleSetsOperations(CdnManagementClient client)
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
/// Name of the rule set under the profile which is unique globally
///
///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, profileName, ruleSetName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Deletes an existing AzureFrontDoor rule set with the specified rule set
- /// name under the specified subscription, resource group and profile.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the CDN profile which is unique within the resource group.
- ///
- ///
- /// Name of the rule set under the profile which is unique globally.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, ruleSetName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Checks the quota and actual usage of endpoints under the given CDN profile.
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// Name of the CDN profile which is unique within the resource group.
- ///
- ///
- /// Name of the rule set under the profile which is unique globally.
- ///
- ///
/// Headers that will be added to request.
///
///
@@ -556,7 +508,7 @@ internal RuleSetsOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListResourceUsageWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -604,11 +556,11 @@ internal RuleSetsOperations(CdnManagementClient client)
tracingParameters.Add("profileName", profileName);
tracingParameters.Add("ruleSetName", ruleSetName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListResourceUsage", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Create", 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.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/usages").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName));
_url = _url.Replace("{ruleSetName}", System.Uri.EscapeDataString(ruleSetName));
@@ -625,7 +577,7 @@ internal RuleSetsOperations(CdnManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -676,7 +628,7 @@ internal RuleSetsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new AfdErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -706,7 +658,7 @@ internal RuleSetsOperations(CdnManagementClient 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"))
@@ -719,7 +671,25 @@ internal RuleSetsOperations(CdnManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _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)
{
@@ -739,16 +709,44 @@ internal RuleSetsOperations(CdnManagementClient client)
}
///
- /// Creates a new rule set within the specified profile.
+ /// Deletes an existing AzureFrontDoor rule set with the specified rule set
+ /// name under the specified subscription, resource group and profile.
///
///
/// Name of the Resource group within the Azure subscription.
///
///
- /// Name of the CDN profile which is unique within the resource group.
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
///
///
- /// Name of the rule set under the profile which is unique globally
+ /// Name of the rule set under the profile which is unique globally.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, ruleSetName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Checks the quota and actual usage of endpoints under the given CDN profile.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// Name of the Azure Front Door Standard or Azure Front Door Premium profile
+ /// which is unique within the resource group.
+ ///
+ ///
+ /// Name of the rule set under the profile which is unique globally.
///
///
/// Headers that will be added to request.
@@ -771,7 +769,7 @@ internal RuleSetsOperations(CdnManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListResourceUsageWithHttpMessagesAsync(string resourceGroupName, string profileName, string ruleSetName, Dictionary