diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClient.cs b/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClient.cs
index f91ef9e6337f..c133b77f5fad 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClient.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClient.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Serialization;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClientExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClientExtensions.cs
index 336da93a5e79..64d0b795f12e 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClientExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/CdnManagementClientExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperations.cs
index 4a8da797239d..e4e11282c403 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperationsExtensions.cs
index 492211ae6cd4..7c19cfb01112 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperations.cs
index b66e352ca4db..ea2bd8298cc5 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperationsExtensions.cs
index bf77877af3e6..6aeb7406b2a9 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/EdgeNodesOperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperations.cs
index 6c62ba199b6b..c2e58d29e71e 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -1987,7 +1987,7 @@ internal EndpointsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -2025,6 +2025,24 @@ internal EndpointsOperations(CdnManagementClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
if ((int)_statusCode == 202)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
@@ -2202,7 +2220,7 @@ internal EndpointsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -2240,6 +2258,24 @@ internal EndpointsOperations(CdnManagementClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
if ((int)_statusCode == 202)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
@@ -2434,7 +2470,7 @@ internal EndpointsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -2648,7 +2684,7 @@ internal EndpointsOperations(CdnManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperationsExtensions.cs
index 7a196e3fcf11..8af256e29cda 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/EndpointsOperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/ICdnManagementClient.cs b/src/SDKs/Cdn/Management.Cdn/Generated/ICdnManagementClient.cs
index 0248fbe73f68..b94611dc1a70 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/ICdnManagementClient.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/ICdnManagementClient.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/ICustomDomainsOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/ICustomDomainsOperations.cs
index 6a4302385485..42434e93092c 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/ICustomDomainsOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/ICustomDomainsOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/IEdgeNodesOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/IEdgeNodesOperations.cs
index cea3f553b89e..ca987750870e 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/IEdgeNodesOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/IEdgeNodesOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/IEndpointsOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/IEndpointsOperations.cs
index e817717fe67a..90a0e9c1ff0a 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/IEndpointsOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/IEndpointsOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/IOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/IOperations.cs
index 39d7f6f443b0..1446fddf4aea 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/IOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/IOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/IOriginsOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/IOriginsOperations.cs
index cbe320ff5568..020a8201e408 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/IOriginsOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/IOriginsOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/IProfilesOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/IProfilesOperations.cs
index 5184379cc104..366dac8f49e8 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/IProfilesOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/IProfilesOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -147,7 +147,7 @@ public partial interface IProfilesOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), 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
@@ -312,7 +312,7 @@ public partial interface IProfilesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), 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
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/IResourceUsageOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/IResourceUsageOperations.cs
index e70c30b6fa5a..b384001466f7 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/IResourceUsageOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/IResourceUsageOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityInput.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityInput.cs
index 33110edbda64..6176224191b9 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityInput.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityInput.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class CheckNameAvailabilityInput
///
public CheckNameAvailabilityInput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityOutput.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityOutput.cs
index 0d38742a5191..f7d3b79cadd8 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityOutput.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CheckNameAvailabilityOutput.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class CheckNameAvailabilityOutput
///
public CheckNameAvailabilityOutput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CidrIpAddress.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CidrIpAddress.cs
index 13690abe8993..2fe4772acab2 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CidrIpAddress.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CidrIpAddress.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class CidrIpAddress
///
public CidrIpAddress()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomain.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomain.cs
index 56d4794e1410..250d96f8ce10 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomain.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomain.cs
@@ -1,21 +1,18 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
using System.Linq;
///
@@ -23,26 +20,24 @@ namespace Microsoft.Azure.Management.Cdn.Models
/// provides for branding purposes, e.g. www.consoto.com.
///
[Rest.Serialization.JsonTransformation]
- public partial class CustomDomain : Resource
+ public partial class CustomDomain : ProxyResource
{
///
/// Initializes a new instance of the CustomDomain class.
///
public CustomDomain()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the CustomDomain class.
///
- /// Resource location.
/// The host name of the custom domain. Must be
/// a domain name.
/// Resource ID.
/// Resource name.
/// Resource type.
- /// Resource tags.
/// Resource status of the custom domain.
/// Possible values include: 'Creating', 'Active', 'Deleting'
/// Provisioning status of
@@ -64,8 +59,8 @@ public CustomDomain()
/// required to deliver content in China.
/// Provisioning status of the custom
/// domain.
- public CustomDomain(string location, string hostName, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string resourceState = default(string), string customHttpsProvisioningState = default(string), string customHttpsProvisioningSubstate = default(string), string validationData = default(string), string provisioningState = default(string))
- : base(location, id, name, type, tags)
+ public CustomDomain(string hostName, string id = default(string), string name = default(string), string type = default(string), string resourceState = default(string), string customHttpsProvisioningState = default(string), string customHttpsProvisioningSubstate = default(string), string validationData = default(string), string provisioningState = default(string))
+ : base(id, name, type)
{
HostName = hostName;
ResourceState = resourceState;
@@ -138,9 +133,8 @@ public CustomDomain()
///
/// Thrown if validation fails
///
- public override void Validate()
+ public virtual void Validate()
{
- base.Validate();
if (HostName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "HostName");
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainParameters.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainParameters.cs
index e04a93a43f10..0cf75b8bacae 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainParameters.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainParameters.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -28,7 +27,7 @@ public partial class CustomDomainParameters
///
public CustomDomainParameters()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainResourceState.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainResourceState.cs
index 7c142b15cc39..14624d8d1851 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainResourceState.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomDomainResourceState.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for CustomDomainResourceState.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningState.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningState.cs
index 186ac3560f2f..0dbfcf836daa 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningState.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningState.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for CustomHttpsProvisioningState.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningSubstate.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningSubstate.cs
index 4cdf894f1ac4..3281626d80ef 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningSubstate.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/CustomHttpsProvisioningSubstate.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for CustomHttpsProvisioningSubstate.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/DeepCreatedOrigin.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/DeepCreatedOrigin.cs
index 8cf284f47db7..619563f1fd2d 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/DeepCreatedOrigin.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/DeepCreatedOrigin.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Serialization;
@@ -29,7 +28,7 @@ public partial class DeepCreatedOrigin : IResource
///
public DeepCreatedOrigin()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/EdgeNode.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/EdgeNode.cs
index b98a1e089ce9..83ffb66dde30 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/EdgeNode.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/EdgeNode.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -23,27 +22,25 @@ namespace Microsoft.Azure.Management.Cdn.Models
/// CDN content to end users.
///
[Rest.Serialization.JsonTransformation]
- public partial class EdgeNode : Resource
+ public partial class EdgeNode : ProxyResource
{
///
/// Initializes a new instance of the EdgeNode class.
///
public EdgeNode()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the EdgeNode class.
///
- /// Resource location.
/// List of ip address groups.
/// Resource ID.
/// Resource name.
/// Resource type.
- /// Resource tags.
- public EdgeNode(string location, IList ipAddressGroups, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary))
- : base(location, id, name, type, tags)
+ public EdgeNode(IList ipAddressGroups, string id = default(string), string name = default(string), string type = default(string))
+ : base(id, name, type)
{
IpAddressGroups = ipAddressGroups;
CustomInit();
@@ -66,9 +63,8 @@ public EdgeNode()
///
/// Thrown if validation fails
///
- public override void Validate()
+ public virtual void Validate()
{
- base.Validate();
if (IpAddressGroups == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "IpAddressGroups");
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Endpoint.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Endpoint.cs
index e56158448332..6f5936f96a72 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Endpoint.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Endpoint.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -25,14 +24,14 @@ namespace Microsoft.Azure.Management.Cdn.Models
/// <endpointname>.azureedge.net.
///
[Rest.Serialization.JsonTransformation]
- public partial class Endpoint : Resource
+ public partial class Endpoint : TrackedResource
{
///
/// Initializes a new instance of the Endpoint class.
///
public Endpoint()
{
- CustomInit();
+ CustomInit();
}
///
@@ -45,9 +44,11 @@ public Endpoint()
/// Resource name.
/// Resource type.
/// Resource tags.
- /// The host header CDN sends along with
- /// content requests to origin. The default value is the host name of
- /// the origin.
+ /// The host header value sent to the
+ /// origin with each request. If you leave this blank, the request
+ /// hostname determines this value. Azure CDN origins, such as Web
+ /// Apps, Blob Storage, and Cloud Services require this host header
+ /// value to match the origin hostname by default.
/// A directory path on the origin that CDN
/// can use to retreive content from, e.g.
/// contoso.cloudapp.net/originpath.
@@ -118,8 +119,11 @@ public Endpoint()
partial void CustomInit();
///
- /// Gets or sets the host header CDN sends along with content requests
- /// to origin. The default value is the host name of the origin.
+ /// Gets or sets the host header value sent to the origin with each
+ /// request. If you leave this blank, the request hostname determines
+ /// this value. Azure CDN origins, such as Web Apps, Blob Storage, and
+ /// Cloud Services require this host header value to match the origin
+ /// hostname by default.
///
[JsonProperty(PropertyName = "properties.originHostHeader")]
public string OriginHostHeader { get; set; }
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointResourceState.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointResourceState.cs
index 198f7f1e42ba..a42f599c7871 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointResourceState.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointResourceState.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for EndpointResourceState.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointUpdateParameters.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointUpdateParameters.cs
index 450575074aa7..1faa8bb0554d 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointUpdateParameters.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/EndpointUpdateParameters.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Serialization;
@@ -30,16 +29,18 @@ public partial class EndpointUpdateParameters : IResource
///
public EndpointUpdateParameters()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the EndpointUpdateParameters class.
///
/// Endpoint tags.
- /// The host header CDN sends along with
- /// content requests to origin. The default value is the host name of
- /// the origin.
+ /// The host header value sent to the
+ /// origin with each request. If you leave this blank, the request
+ /// hostname determines this value. Azure CDN origins, such as Web
+ /// Apps, Blob Storage, and Cloud Services require this host header
+ /// value to match the origin hostname by default.
/// A directory path on the origin that CDN
/// can use to retreive content from, e.g.
/// contoso.cloudapp.net/originpath.
@@ -105,8 +106,11 @@ public EndpointUpdateParameters()
public IDictionary Tags { get; set; }
///
- /// Gets or sets the host header CDN sends along with content requests
- /// to origin. The default value is the host name of the origin.
+ /// Gets or sets the host header value sent to the origin with each
+ /// request. If you leave this blank, the request hostname determines
+ /// this value. Azure CDN origins, such as Web Apps, Blob Storage, and
+ /// Cloud Services require this host header value to match the origin
+ /// hostname by default.
///
[JsonProperty(PropertyName = "properties.originHostHeader")]
public string OriginHostHeader { get; set; }
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponse.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponse.cs
index dee04a73df36..64363fde2e0d 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponse.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponse.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class ErrorResponse
///
public ErrorResponse()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponseException.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponseException.cs
index a793e8478f17..9a7d184bc100 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponseException.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ErrorResponseException.cs
@@ -1,23 +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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
///
/// Exception thrown for an invalid response with ErrorResponse
/// information.
///
- public class ErrorResponseException : RestException
+ public partial class ErrorResponseException : RestException
{
///
/// Gets information about the associated HTTP request.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilter.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilter.cs
index a93bceae92af..a80f019ed642 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilter.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilter.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
@@ -27,7 +26,7 @@ public partial class GeoFilter
///
public GeoFilter()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilterActions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilterActions.cs
index 07f476a4f37b..16939dab8da4 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilterActions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/GeoFilterActions.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime;
@@ -29,8 +28,10 @@ public enum GeoFilterActions
}
internal static class GeoFilterActionsEnumExtension
{
- internal static string ToSerializedValue(this GeoFilterActions? value) =>
- value == null ? null : ((GeoFilterActions)value).ToSerializedValue();
+ internal static string ToSerializedValue(this GeoFilterActions? value)
+ {
+ return value == null ? null : ((GeoFilterActions)value).ToSerializedValue();
+ }
internal static string ToSerializedValue(this GeoFilterActions value)
{
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/IpAddressGroup.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/IpAddressGroup.cs
index d0040a81da1a..0a04cc8536d6 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/IpAddressGroup.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/IpAddressGroup.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -26,7 +25,7 @@ public partial class IpAddressGroup
///
public IpAddressGroup()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/LoadParameters.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/LoadParameters.cs
index f40f0213fc95..dbfbfd863c15 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/LoadParameters.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/LoadParameters.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
@@ -27,7 +26,7 @@ public partial class LoadParameters
///
public LoadParameters()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Operation.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Operation.cs
index 33da8fe74340..c1fbf6ac52b9 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Operation.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Operation.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class Operation
///
public Operation()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OperationDisplay.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OperationDisplay.cs
index 68feaaa6b0fd..d434da89a3da 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OperationDisplay.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OperationDisplay.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class OperationDisplay
///
public OperationDisplay()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OptimizationType.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OptimizationType.cs
index 5c01c71104e1..b386846debb6 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OptimizationType.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OptimizationType.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for OptimizationType.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Origin.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Origin.cs
index 3d8b70c8bf00..516b7312acc1 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Origin.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Origin.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -25,14 +24,14 @@ namespace Microsoft.Azure.Management.Cdn.Models
/// configured origins.
///
[Rest.Serialization.JsonTransformation]
- public partial class Origin : Resource
+ public partial class Origin : TrackedResource
{
///
/// Initializes a new instance of the Origin class.
///
public Origin()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginResourceState.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginResourceState.cs
index 4b4fe17523f7..5369c8b660a7 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginResourceState.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginResourceState.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for OriginResourceState.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginUpdateParameters.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginUpdateParameters.cs
index da58ff6c7bcf..eb0b3c45b91b 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginUpdateParameters.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/OriginUpdateParameters.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Serialization;
@@ -28,7 +27,7 @@ public partial class OriginUpdateParameters : IResource
///
public OriginUpdateParameters()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Page.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Page.cs
index 0449055cb003..5bb36300a29c 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Page.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Page.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Newtonsoft.Json;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Profile.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Profile.cs
index 3e47fec418a5..3f656ee76c72 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Profile.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Profile.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -23,14 +22,14 @@ namespace Microsoft.Azure.Management.Cdn.Models
/// settings, such as CDN provider and pricing tier.
///
[Rest.Serialization.JsonTransformation]
- public partial class Profile : Resource
+ public partial class Profile : TrackedResource
{
///
/// Initializes a new instance of the Profile class.
///
public Profile()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileResourceState.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileResourceState.cs
index 876d41029bad..0d346da48dca 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileResourceState.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileResourceState.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for ProfileResourceState.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileUpdateParameters.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileUpdateParameters.cs
index 8c7d7ffd6631..095aeaf08ff4 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileUpdateParameters.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProfileUpdateParameters.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Newtonsoft.Json;
@@ -28,14 +27,14 @@ public partial class ProfileUpdateParameters : IResource
///
public ProfileUpdateParameters()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the ProfileUpdateParameters class.
///
/// Profile tags
- public ProfileUpdateParameters(IDictionary tags)
+ public ProfileUpdateParameters(IDictionary tags = default(IDictionary))
{
Tags = tags;
CustomInit();
@@ -52,18 +51,5 @@ public ProfileUpdateParameters(IDictionary tags)
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Tags == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Tags");
- }
- }
}
}
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProxyResource.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProxyResource.cs
new file mode 100644
index 000000000000..8b2c6bc29a7a
--- /dev/null
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ProxyResource.cs
@@ -0,0 +1,47 @@
+//
+// 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;
+
+ ///
+ /// The resource model definition for a ARM proxy resource. It will have
+ /// everything other than required location and tags
+ ///
+ public partial class ProxyResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ public ProxyResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
+ : base(id, name, type)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/PurgeParameters.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/PurgeParameters.cs
index 42de5b3496b7..42ee7f48ee6b 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/PurgeParameters.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/PurgeParameters.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
@@ -27,7 +26,7 @@ public partial class PurgeParameters
///
public PurgeParameters()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/QueryStringCachingBehavior.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/QueryStringCachingBehavior.cs
index f13abc156f6a..43687fa996ac 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/QueryStringCachingBehavior.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/QueryStringCachingBehavior.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime;
@@ -33,8 +32,10 @@ public enum QueryStringCachingBehavior
}
internal static class QueryStringCachingBehaviorEnumExtension
{
- internal static string ToSerializedValue(this QueryStringCachingBehavior? value) =>
- value == null ? null : ((QueryStringCachingBehavior)value).ToSerializedValue();
+ internal static string ToSerializedValue(this QueryStringCachingBehavior? value)
+ {
+ return value == null ? null : ((QueryStringCachingBehavior)value).ToSerializedValue();
+ }
internal static string ToSerializedValue(this QueryStringCachingBehavior value)
{
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Resource.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Resource.cs
index e8fa9dc1af5c..3e06fb120e81 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Resource.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Resource.cs
@@ -1,25 +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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
using System.Linq;
///
- /// The Resource definition.
+ /// The core properties of ARM resources
///
public partial class Resource : IResource
{
@@ -28,24 +25,20 @@ public partial class Resource : IResource
///
public Resource()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the Resource class.
///
- /// Resource location.
/// Resource ID.
/// Resource name.
/// Resource type.
- /// Resource tags.
- public Resource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary))
+ public Resource(string id = default(string), string name = default(string), string type = default(string))
{
Id = id;
Name = name;
Type = type;
- Location = location;
- Tags = tags;
CustomInit();
}
@@ -72,30 +65,5 @@ public Resource()
[JsonProperty(PropertyName = "type")]
public string Type { get; private set; }
- ///
- /// Gets or sets resource location.
- ///
- [JsonProperty(PropertyName = "location")]
- public string Location { get; set; }
-
- ///
- /// Gets or sets resource tags.
- ///
- [JsonProperty(PropertyName = "tags")]
- public IDictionary Tags { get; set; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Location == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Location");
- }
- }
}
}
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceType.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceType.cs
index 4182f73caf4a..e21802bf8cac 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceType.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceType.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime;
@@ -27,8 +26,10 @@ public enum ResourceType
}
internal static class ResourceTypeEnumExtension
{
- internal static string ToSerializedValue(this ResourceType? value) =>
- value == null ? null : ((ResourceType)value).ToSerializedValue();
+ internal static string ToSerializedValue(this ResourceType? value)
+ {
+ return value == null ? null : ((ResourceType)value).ToSerializedValue();
+ }
internal static string ToSerializedValue(this ResourceType value)
{
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceUsage.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceUsage.cs
index 30048496737a..bbef88c44b7f 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceUsage.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ResourceUsage.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class ResourceUsage
///
public ResourceUsage()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Sku.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Sku.cs
index 65daadb628d9..112b2bed22f6 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/Sku.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/Sku.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class Sku
///
public Sku()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/SkuName.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/SkuName.cs
index 04eebee4e921..41e5ff2b374e 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/SkuName.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/SkuName.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
///
/// Defines values for SkuName.
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/SsoUri.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/SsoUri.cs
index 45b1d1a1cb9a..c058da17c3d5 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/SsoUri.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/SsoUri.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class SsoUri
///
public SsoUri()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/SupportedOptimizationTypesListResult.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/SupportedOptimizationTypesListResult.cs
index 7f28da20220f..7700e688abdb 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/SupportedOptimizationTypesListResult.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/SupportedOptimizationTypesListResult.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -27,7 +26,7 @@ public partial class SupportedOptimizationTypesListResult
///
public SupportedOptimizationTypesListResult()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/TrackedResource.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/TrackedResource.cs
new file mode 100644
index 000000000000..cbe51efdc2f0
--- /dev/null
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/TrackedResource.cs
@@ -0,0 +1,79 @@
+//
+// 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;
+
+ ///
+ /// The resource model definition for a ARM tracked top level resource.
+ ///
+ public partial class TrackedResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the TrackedResource class.
+ ///
+ public TrackedResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TrackedResource class.
+ ///
+ /// Resource location.
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ /// Resource tags.
+ public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary))
+ : base(id, name, type)
+ {
+ Location = location;
+ Tags = tags;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource location.
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; set; }
+
+ ///
+ /// Gets or sets resource tags.
+ ///
+ [JsonProperty(PropertyName = "tags")]
+ public IDictionary Tags { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Location");
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainInput.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainInput.cs
index bb8bb1ac2f14..1c202548bc99 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainInput.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainInput.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class ValidateCustomDomainInput
///
public ValidateCustomDomainInput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainOutput.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainOutput.cs
index 1483febc89db..2737d0de17f2 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainOutput.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateCustomDomainOutput.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class ValidateCustomDomainOutput
///
public ValidateCustomDomainOutput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeInput.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeInput.cs
index f2643710019f..2ad274da5301 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeInput.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeInput.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class ValidateProbeInput
///
public ValidateProbeInput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeOutput.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeOutput.cs
index 15116715f900..83cd99348ea4 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeOutput.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Models/ValidateProbeOutput.cs
@@ -1,16 +1,15 @@
+//
// 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 1.2.2.0
+// 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.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.Cdn;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class ValidateProbeOutput
///
public ValidateProbeOutput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/Operations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/Operations.cs
index d9868224b75d..f96def11772c 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/Operations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/Operations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/OperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/OperationsExtensions.cs
index b75f7bbabe49..4c720874371e 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/OperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/OperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperations.cs
index 4fa38ff8e130..462dc7ad8bdc 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperationsExtensions.cs
index 9855e2c8a8ad..a4c738c03155 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/OriginsOperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperations.cs
index c81e61543991..25c4cb5ad1ef 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -672,7 +672,7 @@ internal ProfilesOperations(CdnManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, customHeaders, cancellationToken).ConfigureAwait(false);
@@ -1622,7 +1622,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, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1655,10 +1655,6 @@ internal ProfilesOperations(CdnManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
- if (tags == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "tags");
- }
ProfileUpdateParameters profileUpdateParameters = new ProfileUpdateParameters();
if (tags != null)
{
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperationsExtensions.cs
index c7c1d3ad89de..40b11b4f5a4c 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/ProfilesOperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -191,7 +191,7 @@ public static Profile Create(this IProfilesOperations operations, string resourc
///
/// Profile tags
///
- public static Profile Update(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags)
+ public static Profile Update(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary))
{
return operations.UpdateAsync(resourceGroupName, profileName, tags).GetAwaiter().GetResult();
}
@@ -215,7 +215,7 @@ public static Profile Update(this IProfilesOperations operations, string resourc
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, null, cancellationToken).ConfigureAwait(false))
{
@@ -460,7 +460,7 @@ public static Profile BeginCreate(this IProfilesOperations operations, string re
///
/// Profile tags
///
- public static Profile BeginUpdate(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags)
+ public static Profile BeginUpdate(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary))
{
return operations.BeginUpdateAsync(resourceGroupName, profileName, tags).GetAwaiter().GetResult();
}
@@ -484,7 +484,7 @@ public static Profile BeginUpdate(this IProfilesOperations operations, string re
///
/// The cancellation token.
///
- public static async Task BeginUpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginUpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, tags, null, cancellationToken).ConfigureAwait(false))
{
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperations.cs b/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperations.cs
index db17b579fff3..3484bd261a30 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperations.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperations.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperationsExtensions.cs b/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperationsExtensions.cs
index 82d7c05a3bff..edebfe4fbbde 100644
--- a/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperationsExtensions.cs
+++ b/src/SDKs/Cdn/Management.Cdn/Generated/ResourceUsageOperationsExtensions.cs
@@ -1,15 +1,15 @@
+//
// 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 1.2.2.0
+// 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
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;