diff --git a/src/ResourceManagement/Compute/Compute.Tests/Compute.Tests.csproj b/src/ResourceManagement/Compute/Compute.Tests/Compute.Tests.csproj
index 07f35485607c4..155af54d895aa 100644
--- a/src/ResourceManagement/Compute/Compute.Tests/Compute.Tests.csproj
+++ b/src/ResourceManagement/Compute/Compute.Tests/Compute.Tests.csproj
@@ -117,6 +117,18 @@
+
+
+
+
+ $(LibraryNugetPackageFolder)\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.1.1.0\lib\net45\Microsoft.Rest.ClientRuntime.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.Azure.1.0.13\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll
+
..\..\..\..\packages\Microsoft.Azure.Test.Framework.2.0.5658.29898-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll
True
diff --git a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/AvailabilitySetTests.cs b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/AvailabilitySetTests.cs
index 04bf0cee43f2f..14f75a9e5e4d0 100644
--- a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/AvailabilitySetTests.cs
+++ b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/AvailabilitySetTests.cs
@@ -13,16 +13,16 @@
// limitations under the License.
//
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
using Microsoft.Azure;
using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
using Microsoft.Azure.Management.Resources;
using Microsoft.Azure.Management.Resources.Models;
using Microsoft.Azure.Test;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
using Xunit;
namespace Compute.Tests
@@ -91,7 +91,7 @@ private void Initialize()
resourcesClient = ComputeManagementTestUtilities.GetResourceManagementClient(handler);
computeClient = ComputeManagementTestUtilities.GetComputeManagementClient(handler);
- subId = computeClient.Credentials.SubscriptionId;
+ subId = computeClient.SubscriptionId;
location = ComputeManagementTestUtilities.DefaultLocation;
resourceGroupName = TestUtilities.GenerateName(testPrefix);
diff --git a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/ListVMTests.cs b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/ListVMTests.cs
index 3716da386e716..db0358f1e69f8 100644
--- a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/ListVMTests.cs
+++ b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/ListVMTests.cs
@@ -13,12 +13,11 @@
// limitations under the License.
//
+using System.Linq;
using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
-using Microsoft.Azure.Test;
-using System.Net;
using Microsoft.Azure.Management.Resources;
-using Microsoft.Azure.Management.Storage.Models;
+using Microsoft.Azure.Test;
using Xunit;
namespace Compute.Tests
@@ -51,12 +50,12 @@ public void TestListVMInSubscription()
var vm2 = CreateVM_NoAsyncTracking(rg2Name, asName, storageAccountOutput, imageRef, out inputVM2);
var listResponse = m_CrpClient.VirtualMachines.ListAll();
- Assert.True(listResponse.Value.Count >= 2);
- Assert.Null(listResponse.NextLink);
+ Assert.True(listResponse.Count() >= 2);
+ Assert.Null(listResponse.NextPageLink);
int vmsValidatedCount = 0;
- foreach (var vm in listResponse.Value )
+ foreach (var vm in listResponse)
{
if (vm.Name == vm1.Name)
{
diff --git a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMScenarioTests.cs b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMScenarioTests.cs
index 86567d970b08b..164ee31e391cf 100644
--- a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMScenarioTests.cs
+++ b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMScenarioTests.cs
@@ -13,13 +13,13 @@
// limitations under the License.
//
+using System.Linq;
+using System.Net;
using Microsoft.Azure;
using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
using Microsoft.Azure.Management.Resources;
using Microsoft.Azure.Test;
-using System.Linq;
-using System.Net;
using Xunit;
namespace Compute.Tests
@@ -71,7 +71,7 @@ public void TestVMScenarioOperations()
ValidateVMInstanceView(inputVM, getVMWithInstanceViewResponse);
var listResponse = m_CrpClient.VirtualMachines.List(rgName);
- ValidateVM(inputVM, listResponse.Value.FirstOrDefault(x => x.Name == inputVM.Name),
+ ValidateVM(inputVM, listResponse.FirstOrDefault(x => x.Name == inputVM.Name),
Helpers.GetVMReferenceId(m_subId, rgName, inputVM.Name));
var listVMSizesResponse = m_CrpClient.VirtualMachines.ListAvailableSizes(rgName, inputVM.Name);
diff --git a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMTestBase.cs b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMTestBase.cs
index dc2c9a9b54bb1..685673b2327d8 100644
--- a/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMTestBase.cs
+++ b/src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMTestBase.cs
@@ -13,7 +13,11 @@
// limitations under the License.
//
-using Compute.Tests;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Net;
using Microsoft.Azure;
using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
@@ -24,12 +28,8 @@
using Microsoft.Azure.Management.Storage;
using Microsoft.Azure.Management.Storage.Models;
using Microsoft.Azure.Test;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
+
using Xunit;
-using System.Diagnostics;
namespace Compute.Tests
{
@@ -63,7 +63,7 @@ protected void EnsureClientsInitialized()
m_SrpClient = ComputeManagementTestUtilities.GetStorageManagementClient(handler);
m_NrpClient = ComputeManagementTestUtilities.GetNetworkResourceProviderClient(handler);
- m_subId = m_CrpClient.Credentials.SubscriptionId;
+ m_subId = m_CrpClient.SubscriptionId;
m_location = ComputeManagementTestUtilities.DefaultLocation;
}
}
@@ -130,7 +130,7 @@ protected StorageAccount CreateStorageAccount(string rgName, string storageAccou
ComputeManagementTestUtilities.WaitSeconds(10);
var stos = m_SrpClient.StorageAccounts.ListByResourceGroup(rgName);
created =
- stos.Value.Any(
+ stos.Any(
t =>
StringComparer.OrdinalIgnoreCase.Equals(t.Name, storageAccountName));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/ComputeManagement.csproj b/src/ResourceManagement/Compute/ComputeManagement/ComputeManagement.csproj
index 7950152123584..fd4414cf0d26c 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/ComputeManagement.csproj
+++ b/src/ResourceManagement/Compute/ComputeManagement/ComputeManagement.csproj
@@ -38,6 +38,39 @@
True
+
+
+
+
+ $(LibraryNugetPackageFolder)\Newtonsoft.Json.6.0.4\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.1.1.0\lib\portable-net45+win8+wpa81\Microsoft.Rest.ClientRuntime.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.Azure.1.0.13\lib\portable-net45+win8+wpa81\Microsoft.Rest.ClientRuntime.Azure.dll
+
+
+
+
+
+
+
+
+
+
+
+ $(LibraryNugetPackageFolder)\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.1.1.0\lib\net45\Microsoft.Rest.ClientRuntime.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.Azure.1.0.13\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll
+
+
+
+
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperations.cs
index e9a147a7ca84f..8ae5710ed37eb 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -153,6 +154,10 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -286,6 +291,10 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -416,6 +425,10 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -555,6 +568,10 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -710,6 +727,10 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperationsExtensions.cs
index 63637d2305fb8..e75b7239604da 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/AvailabilitySetsOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class AvailabilitySetsOperationsExtensions
/// The operation to delete the availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -33,7 +33,7 @@ public static void Delete(this IAvailabilitySetsOperations operations, string re
/// The operation to delete the availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -53,7 +53,7 @@ public static void Delete(this IAvailabilitySetsOperations operations, string re
/// The operation to get the availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -70,7 +70,7 @@ public static AvailabilitySet Get(this IAvailabilitySetsOperations operations, s
/// The operation to get the availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -91,7 +91,7 @@ public static AvailabilitySet Get(this IAvailabilitySetsOperations operations, s
/// The operation to list the availability sets.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -105,7 +105,7 @@ public static AvailabilitySetListResult List(this IAvailabilitySetsOperations op
/// The operation to list the availability sets.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -123,7 +123,7 @@ public static AvailabilitySetListResult List(this IAvailabilitySetsOperations op
/// Lists virtual-machine-sizes available to be used for an availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -140,7 +140,7 @@ public static VirtualMachineSizeListResult ListAvailableSizes(this IAvailability
/// Lists virtual-machine-sizes available to be used for an availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -161,7 +161,7 @@ public static VirtualMachineSizeListResult ListAvailableSizes(this IAvailability
/// The operation to create or update the availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -181,7 +181,7 @@ public static AvailabilitySet CreateOrUpdate(this IAvailabilitySetsOperations op
/// The operation to create or update the availability set.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/ComputeManagementClient.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/ComputeManagementClient.cs
index dd88e889b1d24..5ff8570b94694 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/ComputeManagementClient.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/ComputeManagementClient.cs
@@ -13,8 +13,9 @@ namespace Microsoft.Azure.Management.Compute
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -38,10 +39,9 @@ public partial class ComputeManagementClient : ServiceClient
- /// Subscription credentials which uniquely identify Microsoft Azure
- /// subscription.
+ /// Management credentials for Azure.
///
- public SubscriptionCloudCredentials Credentials { get; private set; }
+ public ServiceClientCredentials Credentials { get; private set; }
///
/// Gets subscription credentials which uniquely identify Microsoft
@@ -137,13 +137,13 @@ public ComputeManagementClient(Uri baseUri, params DelegatingHandler[] handlers)
/// Initializes a new instance of the ComputeManagementClient class.
///
///
- /// Required. Subscription credentials which uniquely identify Microsoft Azure subscription.
+ /// Required. Management credentials for Azure.
///
///
/// Optional. The set of delegating handlers to insert in the http
/// client pipeline.
///
- public ComputeManagementClient(SubscriptionCloudCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
+ public ComputeManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
{
if (credentials == null)
{
@@ -159,13 +159,13 @@ public ComputeManagementClient(SubscriptionCloudCredentials credentials, params
/// Optional. The base URI of the service.
///
///
- /// Required. Subscription credentials which uniquely identify Microsoft Azure subscription.
+ /// Required. Management credentials for Azure.
///
///
/// Optional. The set of delegating handlers to insert in the http
/// client pipeline.
///
- public ComputeManagementClient(Uri baseUri, SubscriptionCloudCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
+ public ComputeManagementClient(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
{
if (baseUri == null)
{
@@ -194,10 +194,6 @@ private void Initialize()
this.BaseUri = new Uri("https://management.azure.com");
this.ApiVersion = "2015-06-15";
this.AcceptLanguage = "en-US";
- if (this.Credentials != null)
- {
- this.Credentials.InitializeServiceClient(this);
- }
SerializationSettings = new JsonSerializerSettings
{
Formatting = Formatting.Indented,
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IAvailabilitySetsOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IAvailabilitySetsOperations.cs
index 857d3e316719a..ded1117c2d08d 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IAvailabilitySetsOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IAvailabilitySetsOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -25,10 +26,10 @@ public partial interface IAvailabilitySetsOperations
/// The name of the availability set.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string availabilitySetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -41,10 +42,10 @@ public partial interface IAvailabilitySetsOperations
/// The name of the availability set.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string availabilitySetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -54,10 +55,10 @@ public partial interface IAvailabilitySetsOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -71,10 +72,10 @@ public partial interface IAvailabilitySetsOperations
/// The name of the availability set.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> ListAvailableSizesWithHttpMessagesAsync(string resourceGroupName, string availabilitySetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -90,10 +91,10 @@ public partial interface IAvailabilitySetsOperations
/// Parameters supplied to the Create Availability Set operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string name, AvailabilitySet parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IComputeManagementClient.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IComputeManagementClient.cs
index e4be4181302f5..c2cd3b6010cd3 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IComputeManagementClient.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IComputeManagementClient.cs
@@ -7,8 +7,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Newtonsoft.Json;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -32,10 +33,9 @@ public partial interface IComputeManagementClient
JsonSerializerSettings DeserializationSettings { get; }
///
- /// Subscription credentials which uniquely identify Microsoft Azure
- /// subscription.
+ /// Management credentials for Azure.
///
- SubscriptionCloudCredentials Credentials { get; }
+ ServiceClientCredentials Credentials { get; }
///
/// Gets subscription credentials which uniquely identify Microsoft
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IUsageOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IUsageOperations.cs
index 2cfe2d4aae339..54b7e6ab02ac0 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IUsageOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IUsageOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -22,10 +23,10 @@ public partial interface IUsageOperations
/// The location upon which resource usage is queried.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> ListWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionImagesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionImagesOperations.cs
index 54369f522c7d3..206eca9803ea6 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionImagesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionImagesOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -27,10 +28,10 @@ public partial interface IVirtualMachineExtensionImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string location, string publisherName, string type, string version, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -50,10 +51,10 @@ public partial interface IVirtualMachineExtensionImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task>> ListVersionsWithHttpMessagesAsync(string location, string publisherName, string type, Expression> filter = default(Expression>), int? top = default(int?), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -64,10 +65,10 @@ public partial interface IVirtualMachineExtensionImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task>> ListTypesWithHttpMessagesAsync(string location, string publisherName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionsOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionsOperations.cs
index 969a37bfdfa2e..f387633f1c0a8 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionsOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineExtensionsOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -33,10 +34,10 @@ public partial interface IVirtualMachineExtensionsOperations
/// operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtension extensionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -57,10 +58,10 @@ public partial interface IVirtualMachineExtensionsOperations
/// operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtension extensionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -77,10 +78,10 @@ public partial interface IVirtualMachineExtensionsOperations
/// The name of the virtual machine extension.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -97,10 +98,10 @@ public partial interface IVirtualMachineExtensionsOperations
/// The name of the virtual machine extension.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -120,10 +121,10 @@ public partial interface IVirtualMachineExtensionsOperations
/// 'instanceView'.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineImagesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineImagesOperations.cs
index c0c1bf2cfb3f0..ac55fcb9e49fb 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineImagesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineImagesOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -29,10 +30,10 @@ public partial interface IVirtualMachineImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string location, string publisherName, string offer, string skus, string version, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -43,10 +44,10 @@ public partial interface IVirtualMachineImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task>> ListOffersWithHttpMessagesAsync(string location, string publisherName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -55,10 +56,10 @@ public partial interface IVirtualMachineImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task>> ListPublishersWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -71,10 +72,10 @@ public partial interface IVirtualMachineImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task>> ListSkusWithHttpMessagesAsync(string location, string publisherName, string offer, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -96,10 +97,10 @@ public partial interface IVirtualMachineImagesOperations
///
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task>> ListWithHttpMessagesAsync(string location, string publisherName, string offer, string skus, Expression> filter = default(Expression>), int? top = default(int?), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineSizesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineSizesOperations.cs
index 95c108948eb52..54608e814d7e5 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineSizesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachineSizesOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -23,10 +24,10 @@ public partial interface IVirtualMachineSizesOperations
/// The location upon which virtual-machine-sizes is queried.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> ListWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachinesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachinesOperations.cs
index 7113379b005c7..f92d9af095faa 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachinesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/IVirtualMachinesOperations.cs
@@ -6,8 +6,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -29,10 +30,10 @@ public partial interface IVirtualMachinesOperations
/// Parameters supplied to the Capture Virtual Machine operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CaptureWithHttpMessagesAsync(string resourceGroupName, string vmName, VirtualMachineCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -49,10 +50,10 @@ public partial interface IVirtualMachinesOperations
/// Parameters supplied to the Capture Virtual Machine operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCaptureWithHttpMessagesAsync(string resourceGroupName, string vmName, VirtualMachineCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -68,10 +69,10 @@ public partial interface IVirtualMachinesOperations
/// Parameters supplied to the Create Virtual Machine operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string vmName, VirtualMachine parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -87,10 +88,10 @@ public partial interface IVirtualMachinesOperations
/// Parameters supplied to the Create Virtual Machine operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string vmName, VirtualMachine parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -103,10 +104,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -119,10 +120,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -139,10 +140,10 @@ public partial interface IVirtualMachinesOperations
/// 'instanceView'.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string vmName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -157,10 +158,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeallocateWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -175,10 +176,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeallocateWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -191,10 +192,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task GeneralizeWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -204,12 +205,12 @@ public partial interface IVirtualMachinesOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of Virtual Machines in the subscription. Use
/// nextLink property in the response to get the next page of Virtual
@@ -217,12 +218,12 @@ public partial interface IVirtualMachinesOperations
/// Virtual Machines.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists virtual-machine-sizes available to be used for a virtual
/// machine.
@@ -234,10 +235,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> ListAvailableSizesWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -250,10 +251,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -266,10 +267,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -282,10 +283,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task RestartWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -298,10 +299,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -314,10 +315,10 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task StartWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -330,40 +331,40 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginStartWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The operation to list virtual machines under a resource group.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of Virtual Machines in the subscription. Use
/// nextLink property in the response to get the next page of Virtual
/// Machines. Do this till nextLink is not null to fetch all the
/// Virtual Machines.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/CachingTypes.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/CachingTypes.cs
index 4b85315714462..1a0ffe079ef0d 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/CachingTypes.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/CachingTypes.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for CachingTypes
+ /// Defines values for CachingTypes.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum CachingTypes
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComponentNames.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComponentNames.cs
index 3460fb0b8f9d4..2dcc4874ef5d3 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComponentNames.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComponentNames.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for ComponentNames
+ /// Defines values for ComponentNames.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum ComponentNames
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComputeOperationStatus.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComputeOperationStatus.cs
index c34c10cb3bb45..34d9619641f93 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComputeOperationStatus.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ComputeOperationStatus.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for ComputeOperationStatus
+ /// Defines values for ComputeOperationStatus.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum ComputeOperationStatus
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/DiskCreateOptionTypes.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/DiskCreateOptionTypes.cs
index 9842fc7c45a78..84d9ec14f266c 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/DiskCreateOptionTypes.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/DiskCreateOptionTypes.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for DiskCreateOptionTypes
+ /// Defines values for DiskCreateOptionTypes.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum DiskCreateOptionTypes
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperatingSystemTypes.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperatingSystemTypes.cs
index dc2a2f60d7c36..ded33d5cc3fcd 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperatingSystemTypes.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperatingSystemTypes.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for OperatingSystemTypes
+ /// Defines values for OperatingSystemTypes.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum OperatingSystemTypes
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperationStatus.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperationStatus.cs
index eace81d08944c..afa9e78a42f4a 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperationStatus.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/OperationStatus.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for OperationStatus
+ /// Defines values for OperationStatus.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum OperationStatus
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/PassNames.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/PassNames.cs
index b2195dbbf0b15..05ac9a51c4eb4 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/PassNames.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/PassNames.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for PassNames
+ /// Defines values for PassNames.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum PassNames
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ProtocolTypes.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ProtocolTypes.cs
index 4dcdac0fbeb94..189916d03ac88 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ProtocolTypes.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/ProtocolTypes.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for ProtocolTypes
+ /// Defines values for ProtocolTypes.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum ProtocolTypes
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/SettingNames.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/SettingNames.cs
index f121929f8b9d3..ec77b1112f7ae 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/SettingNames.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/SettingNames.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for SettingNames
+ /// Defines values for SettingNames.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum SettingNames
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/StatusLevelTypes.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/StatusLevelTypes.cs
index 80f0c651e46ff..8ef6c425faa9f 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/StatusLevelTypes.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/StatusLevelTypes.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for StatusLevelTypes
+ /// Defines values for StatusLevelTypes.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusLevelTypes
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/UsageUnit.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/UsageUnit.cs
index 240324054e00b..e9bce6a926a6b 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/UsageUnit.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/UsageUnit.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for UsageUnit
+ /// Defines values for UsageUnit.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum UsageUnit
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/VirtualMachineSizeTypes.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/VirtualMachineSizeTypes.cs
index 2832c9b94c88b..cf891ef4e499d 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/VirtualMachineSizeTypes.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/Models/VirtualMachineSizeTypes.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Runtime.Serialization;
///
- /// Defines values for VirtualMachineSizeTypes
+ /// Defines values for VirtualMachineSizeTypes.
///
[JsonConverter(typeof(StringEnumConverter))]
public enum VirtualMachineSizeTypes
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperations.cs
index 05c8f216c184c..be438ab0947fe 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -151,6 +152,10 @@ internal UsageOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperationsExtensions.cs
index 53c21c82abb1c..8163812020a0e 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/UsageOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class UsageOperationsExtensions
/// Lists compute usages for a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The location upon which resource usage is queried.
@@ -30,7 +30,7 @@ public static ListUsagesResult List(this IUsageOperations operations, string loc
/// Lists compute usages for a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The location upon which resource usage is queried.
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperations.cs
index 2e7f2a3229481..7d4e78cc04cca 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -174,6 +175,10 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -341,6 +346,10 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -478,6 +487,10 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperationsExtensions.cs
index 91d2ec97d3a2f..050b5a765485f 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionImagesOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class VirtualMachineExtensionImagesOperationsExtensions
/// Gets a virtual machine extension image.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -35,7 +35,7 @@ public static VirtualMachineExtensionImage Get(this IVirtualMachineExtensionImag
/// Gets a virtual machine extension image.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -58,7 +58,7 @@ public static VirtualMachineExtensionImage Get(this IVirtualMachineExtensionImag
/// Gets a list of virtual machine extension image versions.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -82,7 +82,7 @@ public static VirtualMachineExtensionImage Get(this IVirtualMachineExtensionImag
/// Gets a list of virtual machine extension image versions.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -110,7 +110,7 @@ public static VirtualMachineExtensionImage Get(this IVirtualMachineExtensionImag
/// Gets a list of virtual machine extension image types.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -125,7 +125,7 @@ public static IList ListTypes(this IVirtualMachineE
/// Gets a list of virtual machine extension image types.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperations.cs
index cfe39b3c83487..42b62a8c878f2 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -51,10 +52,10 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client)
/// Parameters supplied to the Create Virtual Machine Extension operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtension extensionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -218,6 +219,10 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "Created"))
{
@@ -250,10 +255,10 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client)
/// The name of the virtual machine extension.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, string vmExtensionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -391,6 +396,10 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -541,6 +550,10 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperationsExtensions.cs
index a795a97aa57cc..6b83444159e4c 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineExtensionsOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class VirtualMachineExtensionsOperationsExtensions
/// The operation to create or update the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -40,7 +40,7 @@ public static VirtualMachineExtension CreateOrUpdate(this IVirtualMachineExtensi
/// The operation to create or update the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -68,7 +68,7 @@ public static VirtualMachineExtension CreateOrUpdate(this IVirtualMachineExtensi
/// The operation to create or update the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -92,7 +92,7 @@ public static VirtualMachineExtension BeginCreateOrUpdate(this IVirtualMachineEx
/// The operation to create or update the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -120,7 +120,7 @@ public static VirtualMachineExtension BeginCreateOrUpdate(this IVirtualMachineEx
/// The operation to delete the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -140,7 +140,7 @@ public static void Delete(this IVirtualMachineExtensionsOperations operations, s
/// The operation to delete the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -163,7 +163,7 @@ public static void Delete(this IVirtualMachineExtensionsOperations operations, s
/// The operation to delete the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -183,7 +183,7 @@ public static void BeginDelete(this IVirtualMachineExtensionsOperations operatio
/// The operation to delete the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -206,7 +206,7 @@ public static void BeginDelete(this IVirtualMachineExtensionsOperations operatio
/// The operation to get the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -229,7 +229,7 @@ public static void BeginDelete(this IVirtualMachineExtensionsOperations operatio
/// The operation to get the extension.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperations.cs
index d64ed2e749fbb..29fa218473606 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -182,6 +183,10 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -319,6 +324,10 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -448,6 +457,10 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -593,6 +606,10 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -768,6 +785,10 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperationsExtensions.cs
index d44d6a98f5bab..b78fb8bf231c7 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineImagesOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class VirtualMachineImagesOperationsExtensions
/// Gets a virtual machine image.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -37,7 +37,7 @@ public static VirtualMachineImage Get(this IVirtualMachineImagesOperations opera
/// Gets a virtual machine image.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -62,7 +62,7 @@ public static VirtualMachineImage Get(this IVirtualMachineImagesOperations opera
/// Gets a list of virtual machine image offers.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -77,7 +77,7 @@ public static IList ListOffers(this IVirtualMachine
/// Gets a list of virtual machine image offers.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -96,7 +96,7 @@ public static IList ListOffers(this IVirtualMachine
/// Gets a list of virtual machine image publishers.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -109,7 +109,7 @@ public static IList ListPublishers(this IVirtualMac
/// Gets a list of virtual machine image publishers.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -126,7 +126,7 @@ public static IList ListPublishers(this IVirtualMac
/// Gets a list of virtual machine image skus.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -143,7 +143,7 @@ public static IList ListSkus(this IVirtualMachineIm
/// Gets a list of virtual machine image skus.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -164,7 +164,7 @@ public static IList ListSkus(this IVirtualMachineIm
/// Gets a list of virtual machine images.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
@@ -190,7 +190,7 @@ public static IList ListSkus(this IVirtualMachineIm
/// Gets a list of virtual machine images.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
///
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperations.cs
index 05b13e1c00e21..e4c2b58d55d5e 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -151,6 +152,10 @@ internal VirtualMachineSizesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperationsExtensions.cs
index 89ec7fef353e0..5555959be4c2e 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineSizesOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class VirtualMachineSizesOperationsExtensions
/// Lists virtual-machine-sizes available in a location for a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The location upon which virtual-machine-sizes is queried.
@@ -30,7 +30,7 @@ public static VirtualMachineSizeListResult List(this IVirtualMachineSizesOperati
/// Lists virtual-machine-sizes available in a location for a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The location upon which virtual-machine-sizes is queried.
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperations.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperations.cs
index 887bb61cd4be8..bf2d830b9915b 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperations.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperations.cs
@@ -11,8 +11,9 @@ namespace Microsoft.Azure.Management.Compute
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
- using Microsoft.Azure.OData;
+ using System.Linq;
using System.Linq.Expressions;
+ using Microsoft.Azure.OData;
using Microsoft.Azure;
using Models;
@@ -48,10 +49,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// Parameters supplied to the Capture Virtual Machine operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task> CaptureWithHttpMessagesAsync(string resourceGroupName, string vmName, VirtualMachineCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -200,6 +201,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -226,10 +231,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// Parameters supplied to the Create Virtual Machine operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string vmName, VirtualMachine parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -383,6 +388,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "Created"))
{
@@ -412,10 +421,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -544,6 +553,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -685,6 +698,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -709,10 +726,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task DeallocateWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -842,6 +859,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -968,6 +989,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -987,7 +1012,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
///
/// Cancellation token.
///
- public async Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1089,14 +1114,18 @@ internal VirtualMachinesOperations(ComputeManagementClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
@@ -1116,7 +1145,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
///
/// Cancellation token.
///
- public async Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (this.Client.ApiVersion == null)
{
@@ -1212,14 +1241,18 @@ internal VirtualMachinesOperations(ComputeManagementClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
@@ -1354,6 +1387,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -1377,10 +1414,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -1509,6 +1546,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -1526,10 +1567,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task RestartWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -1658,6 +1699,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -1675,10 +1720,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// The name of the virtual machine.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task StartWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -1807,6 +1852,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -1817,7 +1866,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
///
/// The operation to list virtual machines under a resource group.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
@@ -1826,11 +1875,11 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
///
/// Cancellation token.
///
- public async Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (nextLink == null)
+ if (nextPageLink == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "nextLink");
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
}
// Tracing
bool shouldTrace = ServiceClientTracing.IsEnabled;
@@ -1839,13 +1888,13 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
{
invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextLink", nextLink);
+ tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(invocationId, this, "ListNext", tracingParameters);
}
// Construct URL
string url = "{nextLink}";
- url = url.Replace("{nextLink}", nextLink);
+ url = url.Replace("{nextLink}", nextPageLink);
List queryParameters = new List();
if (queryParameters.Count > 0)
{
@@ -1914,14 +1963,18 @@ internal VirtualMachinesOperations(ComputeManagementClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
@@ -1935,7 +1988,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
/// property in the response to get the next page of Virtual Machines. Do
/// this till nextLink is not null to fetch all the Virtual Machines.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
@@ -1944,11 +1997,11 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
///
/// Cancellation token.
///
- public async Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (nextLink == null)
+ if (nextPageLink == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "nextLink");
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
}
// Tracing
bool shouldTrace = ServiceClientTracing.IsEnabled;
@@ -1957,13 +2010,13 @@ internal VirtualMachinesOperations(ComputeManagementClient client)
{
invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextLink", nextLink);
+ tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(invocationId, this, "ListAllNext", tracingParameters);
}
// Construct URL
string url = "{nextLink}";
- url = url.Replace("{nextLink}", nextLink);
+ url = url.Replace("{nextLink}", nextPageLink);
List queryParameters = new List();
if (queryParameters.Count > 0)
{
@@ -2032,14 +2085,18 @@ internal VirtualMachinesOperations(ComputeManagementClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
diff --git a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperationsExtensions.cs b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperationsExtensions.cs
index 57a4f322b6251..ae80e89cf87e0 100644
--- a/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperationsExtensions.cs
+++ b/src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachinesOperationsExtensions.cs
@@ -17,7 +17,7 @@ public static partial class VirtualMachinesOperationsExtensions
/// template that can be used to create similar VMs.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -38,7 +38,7 @@ public static ComputeLongRunningOperationResult Capture(this IVirtualMachinesOpe
/// template that can be used to create similar VMs.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -63,7 +63,7 @@ public static ComputeLongRunningOperationResult Capture(this IVirtualMachinesOpe
/// template that can be used to create similar VMs.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -84,7 +84,7 @@ public static ComputeLongRunningOperationResult BeginCapture(this IVirtualMachin
/// template that can be used to create similar VMs.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -108,7 +108,7 @@ public static ComputeLongRunningOperationResult BeginCapture(this IVirtualMachin
/// The operation to create or update a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -128,7 +128,7 @@ public static VirtualMachine CreateOrUpdate(this IVirtualMachinesOperations oper
/// The operation to create or update a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -152,7 +152,7 @@ public static VirtualMachine CreateOrUpdate(this IVirtualMachinesOperations oper
/// The operation to create or update a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -172,7 +172,7 @@ public static VirtualMachine BeginCreateOrUpdate(this IVirtualMachinesOperations
/// The operation to create or update a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -196,7 +196,7 @@ public static VirtualMachine BeginCreateOrUpdate(this IVirtualMachinesOperations
/// The operation to delete a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -213,7 +213,7 @@ public static void Delete(this IVirtualMachinesOperations operations, string res
/// The operation to delete a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -233,7 +233,7 @@ public static void Delete(this IVirtualMachinesOperations operations, string res
/// The operation to delete a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -250,7 +250,7 @@ public static void BeginDelete(this IVirtualMachinesOperations operations, strin
/// The operation to delete a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -270,7 +270,7 @@ public static void BeginDelete(this IVirtualMachinesOperations operations, strin
/// The operation to get a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -290,7 +290,7 @@ public static void BeginDelete(this IVirtualMachinesOperations operations, strin
/// The operation to get a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -315,7 +315,7 @@ public static void BeginDelete(this IVirtualMachinesOperations operations, strin
/// not billed for the compute resources that this Virtual Machine uses.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -333,7 +333,7 @@ public static void Deallocate(this IVirtualMachinesOperations operations, string
/// not billed for the compute resources that this Virtual Machine uses.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -354,7 +354,7 @@ public static void Deallocate(this IVirtualMachinesOperations operations, string
/// not billed for the compute resources that this Virtual Machine uses.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -372,7 +372,7 @@ public static void BeginDeallocate(this IVirtualMachinesOperations operations, s
/// not billed for the compute resources that this Virtual Machine uses.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -392,7 +392,7 @@ public static void BeginDeallocate(this IVirtualMachinesOperations operations, s
/// Sets the state of the VM as Generalized.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -409,7 +409,7 @@ public static void Generalize(this IVirtualMachinesOperations operations, string
/// Sets the state of the VM as Generalized.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -429,12 +429,12 @@ public static void Generalize(this IVirtualMachinesOperations operations, string
/// The operation to list virtual machines under a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
///
- public static VirtualMachineListResult List(this IVirtualMachinesOperations operations, string resourceGroupName)
+ public static Page List(this IVirtualMachinesOperations operations, string resourceGroupName)
{
return Task.Factory.StartNew(s => ((IVirtualMachinesOperations)s).ListAsync(resourceGroupName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
@@ -443,7 +443,7 @@ public static VirtualMachineListResult List(this IVirtualMachinesOperations oper
/// The operation to list virtual machines under a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -451,9 +451,9 @@ public static VirtualMachineListResult List(this IVirtualMachinesOperations oper
///
/// Cancellation token.
///
- public static async Task ListAsync( this IVirtualMachinesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync( this IVirtualMachinesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
@@ -463,9 +463,9 @@ public static VirtualMachineListResult List(this IVirtualMachinesOperations oper
/// this till nextLink is not null to fetch all the Virtual Machines.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- public static VirtualMachineListResult ListAll(this IVirtualMachinesOperations operations)
+ public static Page ListAll(this IVirtualMachinesOperations operations)
{
return Task.Factory.StartNew(s => ((IVirtualMachinesOperations)s).ListAllAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
@@ -476,14 +476,14 @@ public static VirtualMachineListResult ListAll(this IVirtualMachinesOperations o
/// this till nextLink is not null to fetch all the Virtual Machines.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// Cancellation token.
///
- public static async Task ListAllAsync( this IVirtualMachinesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAllAsync( this IVirtualMachinesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
@@ -491,7 +491,7 @@ public static VirtualMachineListResult ListAll(this IVirtualMachinesOperations o
/// Lists virtual-machine-sizes available to be used for a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -508,7 +508,7 @@ public static VirtualMachineSizeListResult ListAvailableSizes(this IVirtualMachi
/// Lists virtual-machine-sizes available to be used for a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -529,7 +529,7 @@ public static VirtualMachineSizeListResult ListAvailableSizes(this IVirtualMachi
/// The operation to power off (stop) a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -546,7 +546,7 @@ public static void PowerOff(this IVirtualMachinesOperations operations, string r
/// The operation to power off (stop) a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -566,7 +566,7 @@ public static void PowerOff(this IVirtualMachinesOperations operations, string r
/// The operation to power off (stop) a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -583,7 +583,7 @@ public static void BeginPowerOff(this IVirtualMachinesOperations operations, str
/// The operation to power off (stop) a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -603,7 +603,7 @@ public static void BeginPowerOff(this IVirtualMachinesOperations operations, str
/// The operation to restart a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -620,7 +620,7 @@ public static void Restart(this IVirtualMachinesOperations operations, string re
/// The operation to restart a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -640,7 +640,7 @@ public static void Restart(this IVirtualMachinesOperations operations, string re
/// The operation to restart a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -657,7 +657,7 @@ public static void BeginRestart(this IVirtualMachinesOperations operations, stri
/// The operation to restart a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -677,7 +677,7 @@ public static void BeginRestart(this IVirtualMachinesOperations operations, stri
/// The operation to start a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -694,7 +694,7 @@ public static void Start(this IVirtualMachinesOperations operations, string reso
/// The operation to start a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -714,7 +714,7 @@ public static void Start(this IVirtualMachinesOperations operations, string reso
/// The operation to start a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -731,7 +731,7 @@ public static void BeginStart(this IVirtualMachinesOperations operations, string
/// The operation to start a virtual machine.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -751,31 +751,31 @@ public static void BeginStart(this IVirtualMachinesOperations operations, string
/// The operation to list virtual machines under a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
- public static VirtualMachineListResult ListNext(this IVirtualMachinesOperations operations, string nextLink)
+ public static Page ListNext(this IVirtualMachinesOperations operations, string nextPageLink)
{
- return Task.Factory.StartNew(s => ((IVirtualMachinesOperations)s).ListNextAsync(nextLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
+ return Task.Factory.StartNew(s => ((IVirtualMachinesOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
///
/// The operation to list virtual machines under a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
/// Cancellation token.
///
- public static async Task ListNextAsync( this IVirtualMachinesOperations operations, string nextLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListNextAsync( this IVirtualMachinesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListNextWithHttpMessagesAsync(nextLink, null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
@@ -785,14 +785,14 @@ public static VirtualMachineListResult ListNext(this IVirtualMachinesOperations
/// this till nextLink is not null to fetch all the Virtual Machines.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
- public static VirtualMachineListResult ListAllNext(this IVirtualMachinesOperations operations, string nextLink)
+ public static Page ListAllNext(this IVirtualMachinesOperations operations, string nextPageLink)
{
- return Task.Factory.StartNew(s => ((IVirtualMachinesOperations)s).ListAllNextAsync(nextLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
+ return Task.Factory.StartNew(s => ((IVirtualMachinesOperations)s).ListAllNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
///
@@ -801,17 +801,17 @@ public static VirtualMachineListResult ListAllNext(this IVirtualMachinesOperatio
/// this till nextLink is not null to fetch all the Virtual Machines.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
/// Cancellation token.
///
- public static async Task ListAllNextAsync( this IVirtualMachinesOperations operations, string nextLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAllNextAsync( this IVirtualMachinesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListAllNextWithHttpMessagesAsync(nextLink, null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Network.Tests.csproj b/src/ResourceManagement/Network/Network.Tests/Network.Tests.csproj
index 65fbe238501dd..ad0c26c67c0af 100644
--- a/src/ResourceManagement/Network/Network.Tests/Network.Tests.csproj
+++ b/src/ResourceManagement/Network/Network.Tests/Network.Tests.csproj
@@ -109,6 +109,18 @@
+
+
+
+
+ $(LibraryNugetPackageFolder)\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.1.1.0\lib\net45\Microsoft.Rest.ClientRuntime.dll
+
+
+ $(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.Azure.1.0.13\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll
+
..\..\..\..\packages\Microsoft.Azure.Test.Framework.2.0.5658.29898-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll
True
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/ApplicationGatewayTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/ApplicationGatewayTests.cs
index 526acdaaa59b8..467a086ba788e 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/ApplicationGatewayTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/ApplicationGatewayTests.cs
@@ -1,19 +1,17 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Net;
+using System.Security.Cryptography.X509Certificates;
+using Microsoft.Azure;
+using Microsoft.Azure.Management.Network;
+using Microsoft.Azure.Management.Network.Models;
using Microsoft.Azure.Management.Resources;
using Microsoft.Azure.Management.Resources.Models;
using Microsoft.Azure.Test;
using Networks.Tests.Helpers;
using ResourceGroups.Tests;
using Xunit;
-using Microsoft.Azure;
-using System;
-using Microsoft.Azure.Management.Network;
-using System.Security.Cryptography.X509Certificates;
-using Microsoft.Azure.Management.Network.Models;
-using System.Net.Http;
-using System.Net.Http.Headers;
-using System.Text;
namespace Networks.Tests
{
@@ -154,12 +152,12 @@ private ApplicationGateway CreateApplicationGateway()
Name = httpListenerName,
FrontendPort = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "frontendPorts", frontendPortName)
},
FrontendIpConfiguration = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "frontendIPConfigurations", frontendIpConfigName)
},
SslCertificate = null,
@@ -174,17 +172,17 @@ private ApplicationGateway CreateApplicationGateway()
RuleType = ApplicationGatewayRequestRoutingRuleType.Basic,
HttpListener = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "httpListeners", httpListenerName)
},
BackendAddressPool = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "backendAddressPools", backendAddressPoolName)
},
BackendHttpSettings = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "backendHttpSettingsCollection", backendHttpSettingsName)
}
}
@@ -286,17 +284,17 @@ private ApplicationGateway CreateApplicationGatewayWithSsl()
Name = httpListenerName,
FrontendPort = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "frontendPorts", frontendPortName)
},
FrontendIpConfiguration = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "frontendIPConfigurations", frontendIpConfigName)
},
SslCertificate = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "sslCertificates", sslCertName)
},
Protocol = ApplicationGatewayProtocol.Http
@@ -310,17 +308,17 @@ private ApplicationGateway CreateApplicationGatewayWithSsl()
RuleType = ApplicationGatewayRequestRoutingRuleType.Basic,
HttpListener = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "httpListeners", httpListenerName)
},
BackendAddressPool = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "backendAddressPools", backendAddressPoolName)
},
BackendHttpSettings = new SubResource()
{
- Id = GetChildAppGwResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildAppGwResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, appGwName, "backendHttpSettingsCollection", backendHttpSettingsName)
}
}
@@ -382,11 +380,11 @@ public void ApplicationGatewayApiTest()
// List AppGw
var listAppGw = networkResourceProviderClient.ApplicationGateways.List(resourceGroupName);
- Assert.Equal(1, listAppGw.Value.Count);
+ Assert.Equal(1, listAppGw.Count());
// List all AppGw
var listAllAppGw = networkResourceProviderClient.ApplicationGateways.ListAll();
- Assert.Equal(1, listAllAppGw.Value.Count);
+ Assert.Equal(1, listAllAppGw.Count());
//Add one more gateway
// Put AppGw
@@ -402,11 +400,11 @@ public void ApplicationGatewayApiTest()
// List AppGw
listAppGw = networkResourceProviderClient.ApplicationGateways.List(resourceGroupName);
- Assert.Equal(2, listAppGw.Value.Count);
+ Assert.Equal(2, listAppGw.Count());
// List all AppGw
listAllAppGw = networkResourceProviderClient.ApplicationGateways.ListAll();
- Assert.Equal(2, listAllAppGw.Value.Count);
+ Assert.Equal(2, listAllAppGw.Count());
//Start AppGw
networkResourceProviderClient.ApplicationGateways.Start(resourceGroupName, appGwName);
@@ -425,7 +423,7 @@ public void ApplicationGatewayApiTest()
// Verify Delete
listAppGw = networkResourceProviderClient.ApplicationGateways.List(resourceGroupName);
- Assert.Null(listAppGw.Value);
+ Assert.Null(listAppGw);
}
}
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/GatewayOperationsTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/GatewayOperationsTests.cs
index 2b5fa6cbe0196..a3d4255167e07 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/GatewayOperationsTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/GatewayOperationsTests.cs
@@ -1,19 +1,16 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Net;
+using Microsoft.Azure;
+using Microsoft.Azure.Management.Network;
+using Microsoft.Azure.Management.Network.Models;
using Microsoft.Azure.Management.Resources;
using Microsoft.Azure.Management.Resources.Models;
using Microsoft.Azure.Test;
using Networks.Tests.Helpers;
using ResourceGroups.Tests;
using Xunit;
-using Microsoft.Azure;
-using System;
-using Microsoft.Azure.Management.Network;
-using System.Security.Cryptography.X509Certificates;
-using Microsoft.Azure.Management.Network.Models;
-using System.Net.Http;
-using System.Net.Http.Headers;
-using System.Text;
namespace Networks.Tests
{
@@ -118,16 +115,16 @@ public void VirtualNetworkGatewayOperationsApisTest()
// 4. ListVitualNetworkGateways API
var listVirtualNetworkGatewayResponse = networkResourceProviderClient.VirtualNetworkGateways.List(resourceGroupName);
- Console.WriteLine("ListVirtualNetworkGateways count ={0} ", listVirtualNetworkGatewayResponse.Value.Count);
- Assert.Equal(1, listVirtualNetworkGatewayResponse.Value.Count);
+ Console.WriteLine("ListVirtualNetworkGateways count ={0} ", listVirtualNetworkGatewayResponse.Count());
+ Assert.Equal(1, listVirtualNetworkGatewayResponse.Count());
// 5A. DeleteVirtualNetworkGateway API
networkResourceProviderClient.VirtualNetworkGateways.Delete(resourceGroupName, virtualNetworkGatewayName);
// 5B. ListVitualNetworkGateways API after deleting VirtualNetworkGateway
listVirtualNetworkGatewayResponse = networkResourceProviderClient.VirtualNetworkGateways.List(resourceGroupName);
- Console.WriteLine("ListVirtualNetworkGateways count ={0} ", listVirtualNetworkGatewayResponse.Value.Count);
- Assert.Equal(0, listVirtualNetworkGatewayResponse.Value.Count);
+ Console.WriteLine("ListVirtualNetworkGateways count ={0} ", listVirtualNetworkGatewayResponse.Count());
+ Assert.Equal(0, listVirtualNetworkGatewayResponse.Count());
}
}
@@ -212,16 +209,16 @@ public void LocalNettworkGatewayOperationsApisTest()
// 4. ListLocalNetworkGateways API
var listLocalNetworkGatewayResponse = networkResourceProviderClient.LocalNetworkGateways.List(resourceGroupName);
- Console.WriteLine("ListLocalNetworkGateways count ={0} ", listLocalNetworkGatewayResponse.Value.Count);
- Assert.Equal(1, listLocalNetworkGatewayResponse.Value.Count);
+ Console.WriteLine("ListLocalNetworkGateways count ={0} ", listLocalNetworkGatewayResponse.Count());
+ Assert.Equal(1, listLocalNetworkGatewayResponse.Count());
// 5A. DeleteLocalNetworkGateway API
networkResourceProviderClient.LocalNetworkGateways.Delete(resourceGroupName, localNetworkGatewayName);
// 5B. ListLocalNetworkGateways API after DeleteLocalNetworkGateway API was called
listLocalNetworkGatewayResponse = networkResourceProviderClient.LocalNetworkGateways.List(resourceGroupName);
- Console.WriteLine("ListLocalNetworkGateways count ={0} ", listLocalNetworkGatewayResponse.Value.Count);
- Assert.Equal(0, listLocalNetworkGatewayResponse.Value.Count);
+ Console.WriteLine("ListLocalNetworkGateways count ={0} ", listLocalNetworkGatewayResponse.Count());
+ Assert.Equal(0, listLocalNetworkGatewayResponse.Count());
}
}
@@ -377,16 +374,16 @@ public void VirtualNetworkGatewayConnectionOperationsApisTest()
// 4. ListVitualNetworkGatewayConnections API
var listVirtualNetworkGatewayConectionResponse = networkResourceProviderClient.VirtualNetworkGatewayConnections.List(resourceGroupName);
- Console.WriteLine("ListVirtualNetworkGatewayConnections count ={0} ", listVirtualNetworkGatewayConectionResponse.Value.Count);
- Assert.Equal(1, listVirtualNetworkGatewayConectionResponse.Value.Count);
+ Console.WriteLine("ListVirtualNetworkGatewayConnections count ={0} ", listVirtualNetworkGatewayConectionResponse.Count());
+ Assert.Equal(1, listVirtualNetworkGatewayConectionResponse.Count());
// 5A. DeleteVirtualNetworkGatewayConnection API
networkResourceProviderClient.VirtualNetworkGatewayConnections.Delete(resourceGroupName, VirtualNetworkGatewayConnectionName);
// 5B. ListVitualNetworkGatewayConnections API after DeleteVirtualNetworkGatewayConnection API called
listVirtualNetworkGatewayConectionResponse = networkResourceProviderClient.VirtualNetworkGatewayConnections.List(resourceGroupName);
- Console.WriteLine("ListVirtualNetworkGatewayConnections count ={0} ", listVirtualNetworkGatewayConectionResponse.Value.Count);
- Assert.Equal(0, listVirtualNetworkGatewayConectionResponse.Value.Count);
+ Console.WriteLine("ListVirtualNetworkGatewayConnections count ={0} ", listVirtualNetworkGatewayConectionResponse.Count());
+ Assert.Equal(0, listVirtualNetworkGatewayConectionResponse.Count());
}
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/LoadBalancerTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/LoadBalancerTests.cs
index 331c15a188d93..483874375155d 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/LoadBalancerTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/LoadBalancerTests.cs
@@ -86,7 +86,7 @@ public void LoadBalancerApiTest()
Name = loadBalancingRuleName,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -96,12 +96,12 @@ public void LoadBalancerApiTest()
IdleTimeoutInMinutes = 15,
BackendAddressPool = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "backendAddressPools", backEndAddressPoolName)
},
Probe = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "probes", probeName)
}
}
@@ -125,7 +125,7 @@ public void LoadBalancerApiTest()
Name = inboundNatRule1Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -139,7 +139,7 @@ public void LoadBalancerApiTest()
Name = inboundNatRule2Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -184,22 +184,22 @@ public void LoadBalancerApiTest()
// Verify List LoadBalancer
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(1, listLoadBalancer.Value.Count);
- Assert.Equal(lbName, listLoadBalancer.Value[0].Name);
- Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancer.Count());
+ Assert.Equal(lbName, listLoadBalancer.First().Name);
+ Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.First().Etag);
// Verify List LoadBalancer subscription
var listLoadBalancerSubscription = networkResourceProviderClient.LoadBalancers.ListAll();
- Assert.Equal(1, listLoadBalancerSubscription.Value.Count);
- Assert.Equal(lbName, listLoadBalancerSubscription.Value[0].Name);
- Assert.Equal(listLoadBalancerSubscription.Value[0].Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancerSubscription.Count());
+ Assert.Equal(lbName, listLoadBalancerSubscription.First().Name);
+ Assert.Equal(listLoadBalancerSubscription.First().Etag, listLoadBalancer.First().Etag);
// Delete LoadBalancer
networkResourceProviderClient.LoadBalancers.Delete(resourceGroupName, lbName);
// Verify Delete
listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(0, listLoadBalancer.Value.Count);
+ Assert.Equal(0, listLoadBalancer.Count());
// Delete all PublicIpAddresses
networkResourceProviderClient.PublicIpAddresses.Delete(resourceGroupName, lbPublicIpName);
@@ -269,7 +269,7 @@ public void LoadBalancerApiTestWithDynamicIp()
Name = loadBalancingRuleName,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -279,12 +279,12 @@ public void LoadBalancerApiTestWithDynamicIp()
IdleTimeoutInMinutes = 15,
BackendAddressPool = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "backendAddressPools", backEndAddressPoolName)
},
Probe = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "probes", probeName)
}
}
@@ -308,7 +308,7 @@ public void LoadBalancerApiTestWithDynamicIp()
Name = inboundNatRule1Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -322,7 +322,7 @@ public void LoadBalancerApiTestWithDynamicIp()
Name = inboundNatRule2Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -365,22 +365,22 @@ public void LoadBalancerApiTestWithDynamicIp()
// Verify List LoadBalancer
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(1, listLoadBalancer.Value.Count);
- Assert.Equal(lbName, listLoadBalancer.Value[0].Name);
- Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancer.Count());
+ Assert.Equal(lbName, listLoadBalancer.First().Name);
+ Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.First().Etag);
// Verify List LoadBalancer subscription
var listLoadBalancerSubscription = networkResourceProviderClient.LoadBalancers.ListAll();
- Assert.Equal(1, listLoadBalancerSubscription.Value.Count);
- Assert.Equal(lbName, listLoadBalancerSubscription.Value[0].Name);
- Assert.Equal(listLoadBalancerSubscription.Value[0].Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancerSubscription.Count());
+ Assert.Equal(lbName, listLoadBalancerSubscription.First().Name);
+ Assert.Equal(listLoadBalancerSubscription.First().Etag, listLoadBalancer.First().Etag);
// Delete LoadBalancer
networkResourceProviderClient.LoadBalancers.Delete(resourceGroupName, lbName);
// Verify Delete
listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(0, listLoadBalancer.Value.Count);
+ Assert.Equal(0, listLoadBalancer.Count());
// Delete VirtualNetwork
networkResourceProviderClient.VirtualNetworks.Delete(resourceGroupName, vnetName);
@@ -451,7 +451,7 @@ public void LoadBalancerApiTestWithStaticIp()
Name = loadBalancingRuleName,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -460,12 +460,12 @@ public void LoadBalancerApiTestWithStaticIp()
EnableFloatingIP = false,
BackendAddressPool = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "backendAddressPools", backEndAddressPoolName)
},
Probe = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "probes", probeName)
}
}
@@ -489,7 +489,7 @@ public void LoadBalancerApiTestWithStaticIp()
Name = inboundNatRule1Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -502,7 +502,7 @@ public void LoadBalancerApiTestWithStaticIp()
Name = inboundNatRule2Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -548,22 +548,22 @@ public void LoadBalancerApiTestWithStaticIp()
// Verify List LoadBalancer
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(1, listLoadBalancer.Value.Count);
- Assert.Equal(lbName, listLoadBalancer.Value[0].Name);
- Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancer.Count());
+ Assert.Equal(lbName, listLoadBalancer.First().Name);
+ Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.First().Etag);
// Verify List LoadBalancer subscription
var listLoadBalancerSubscription = networkResourceProviderClient.LoadBalancers.ListAll();
- Assert.Equal(1, listLoadBalancerSubscription.Value.Count);
- Assert.Equal(lbName, listLoadBalancerSubscription.Value[0].Name);
- Assert.Equal(listLoadBalancerSubscription.Value[0].Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancerSubscription.Count());
+ Assert.Equal(lbName, listLoadBalancerSubscription.First().Name);
+ Assert.Equal(listLoadBalancerSubscription.First().Etag, listLoadBalancer.First().Etag);
// Delete LoadBalancer
networkResourceProviderClient.LoadBalancers.Delete(resourceGroupName, lbName);
// Verify Delete
listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(0, listLoadBalancer.Value.Count);
+ Assert.Equal(0, listLoadBalancer.Count());
// Delete VirtualNetwork
networkResourceProviderClient.VirtualNetworks.Delete(resourceGroupName, vnetName);
@@ -634,7 +634,7 @@ public void LoadBalancerApiTestWithDistributionPolicy()
Name = loadBalancingRuleName,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -643,12 +643,12 @@ public void LoadBalancerApiTestWithDistributionPolicy()
EnableFloatingIP = false,
BackendAddressPool = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "backendAddressPools", backEndAddressPoolName)
},
Probe = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "probes", probeName)
}
}
@@ -673,7 +673,7 @@ public void LoadBalancerApiTestWithDistributionPolicy()
Name = inboundNatRule1Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -686,7 +686,7 @@ public void LoadBalancerApiTestWithDistributionPolicy()
Name = inboundNatRule2Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -732,9 +732,9 @@ public void LoadBalancerApiTestWithDistributionPolicy()
// Verify List LoadBalancer
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(1, listLoadBalancer.Value.Count);
- Assert.Equal(lbName, listLoadBalancer.Value[0].Name);
- Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.Value[0].Etag);
+ Assert.Equal(1, listLoadBalancer.Count());
+ Assert.Equal(lbName, listLoadBalancer.First().Name);
+ Assert.Equal(getLoadBalancer.Etag, listLoadBalancer.First().Etag);
// Do another put after changing the distribution policy
loadbalancerparamater.LoadBalancingRules[0].LoadDistribution = LoadDistribution.SourceIP;
@@ -754,7 +754,7 @@ public void LoadBalancerApiTestWithDistributionPolicy()
// Verify Delete
listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(0, listLoadBalancer.Value.Count);
+ Assert.Equal(0, listLoadBalancer.Count());
// Delete VirtualNetwork
networkResourceProviderClient.VirtualNetworks.Delete(resourceGroupName, vnetName);
@@ -810,7 +810,7 @@ public void CreateEmptyLoadBalancer()
// Verify Delete
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Null(listLoadBalancer.Value);
+ Assert.Null(listLoadBalancer);
}
}
@@ -881,7 +881,7 @@ public void UpdateLoadBalancerRule()
Name = loadBalancingRuleName,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbname, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -890,7 +890,7 @@ public void UpdateLoadBalancerRule()
EnableFloatingIP = false,
BackendAddressPool = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbname, "backendAddressPools", backEndAddressPoolName)
}
}
@@ -930,7 +930,7 @@ public void UpdateLoadBalancerRule()
{
Id =
GetChildLbResourceId(
- networkResourceProviderClient.Credentials.SubscriptionId,
+ networkResourceProviderClient.SubscriptionId,
resourceGroupName,
lbname,
"probes",
@@ -957,7 +957,7 @@ public void UpdateLoadBalancerRule()
// Verify Delete
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Equal(0, listLoadBalancer.Value.Count);
+ Assert.Equal(0, listLoadBalancer.Count());
// Delete VirtualNetwork
networkResourceProviderClient.VirtualNetworks.Delete(resourceGroupName, vnetName);
@@ -1073,7 +1073,7 @@ public void LoadBalancerApiNicAssociationTest()
Name = loadBalancingRuleName,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -1083,12 +1083,12 @@ public void LoadBalancerApiNicAssociationTest()
IdleTimeoutInMinutes = 15,
BackendAddressPool = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "backendAddressPools", backEndAddressPoolName)
},
Probe = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "probes", probeName)
}
}
@@ -1112,7 +1112,7 @@ public void LoadBalancerApiNicAssociationTest()
Name = inboundNatRule1Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -1126,7 +1126,7 @@ public void LoadBalancerApiNicAssociationTest()
Name = inboundNatRule2Name,
FrontendIPConfiguration = new SubResource()
{
- Id = GetChildLbResourceId(networkResourceProviderClient.Credentials.SubscriptionId,
+ Id = GetChildLbResourceId(networkResourceProviderClient.SubscriptionId,
resourceGroupName, lbName, "FrontendIPConfigurations", frontendIpConfigName)
},
Protocol = TransportProtocol.Tcp,
@@ -1187,7 +1187,7 @@ public void LoadBalancerApiNicAssociationTest()
// Verify Delete
var listLoadBalancer = networkResourceProviderClient.LoadBalancers.List(resourceGroupName);
- Assert.Null(listLoadBalancer.Value);
+ Assert.Null(listLoadBalancer);
// Delete all NetworkInterfaces
networkResourceProviderClient.NetworkInterfaces.Delete(resourceGroupName, nic1name);
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/NetworkInterfaceTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/NetworkInterfaceTests.cs
index f76ef412a551c..a51fab6054061 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/NetworkInterfaceTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/NetworkInterfaceTests.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.Linq;
using System.Net;
using Microsoft.Azure;
using Microsoft.Azure.Management.Network;
@@ -139,23 +140,23 @@ public void NetworkInterfaceApiTest()
// Get all Nics
var getListNicResponse = networkResourceProviderClient.NetworkInterfaces.List(resourceGroupName);
- Assert.Equal(1, getListNicResponse.Value.Count);
- Assert.Equal(getNicResponse.Name, getListNicResponse.Value[0].Name);
- Assert.Equal(getNicResponse.Etag, getListNicResponse.Value[0].Etag);
- Assert.Equal(getNicResponse.IpConfigurations[0].Etag, getListNicResponse.Value[0].IpConfigurations[0].Etag);
+ Assert.Equal(1, getListNicResponse.Count());
+ Assert.Equal(getNicResponse.Name, getListNicResponse.First().Name);
+ Assert.Equal(getNicResponse.Etag, getListNicResponse.First().Etag);
+ Assert.Equal(getNicResponse.IpConfigurations[0].Etag, getListNicResponse.First().IpConfigurations[0].Etag);
// Get all Nics in subscription
var listNicSubscription = networkResourceProviderClient.NetworkInterfaces.ListAll();
- Assert.Equal(1, getListNicResponse.Value.Count);
- Assert.Equal(getNicResponse.Name, listNicSubscription.Value[0].Name);
- Assert.Equal(getNicResponse.Etag, listNicSubscription.Value[0].Etag);
- Assert.Equal(listNicSubscription.Value[0].IpConfigurations[0].Etag, getListNicResponse.Value[0].IpConfigurations[0].Etag);
+ Assert.Equal(1, getListNicResponse.Count());
+ Assert.Equal(getNicResponse.Name, listNicSubscription.First().Name);
+ Assert.Equal(getNicResponse.Etag, listNicSubscription.First().Etag);
+ Assert.Equal(listNicSubscription.First().IpConfigurations[0].Etag, getListNicResponse.First().IpConfigurations[0].Etag);
// Delete Nic
networkResourceProviderClient.NetworkInterfaces.Delete(resourceGroupName, nicName);
getListNicResponse = networkResourceProviderClient.NetworkInterfaces.List(resourceGroupName);
- Assert.Equal(0, getListNicResponse.Value.Count);
+ Assert.Equal(0, getListNicResponse.Count());
// Delete PublicIPAddress
networkResourceProviderClient.PublicIpAddresses.Delete(resourceGroupName, publicIpName);
@@ -276,7 +277,7 @@ public void NetworkInterfaceDnsSettingsTest()
networkResourceProviderClient.NetworkInterfaces.Delete(resourceGroupName, nicName);
var getListNicResponse = networkResourceProviderClient.NetworkInterfaces.List(resourceGroupName);
- Assert.Null(getListNicResponse.Value);
+ Assert.Null(getListNicResponse);
// Delete VirtualNetwork
networkResourceProviderClient.VirtualNetworks.Delete(resourceGroupName, vnetName);
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/NetworkSecurityGroupTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/NetworkSecurityGroupTests.cs
index c3fea010424c8..96b9b47f8a9b4 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/NetworkSecurityGroupTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/NetworkSecurityGroupTests.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Net;
+using System.Linq;
using Microsoft.Azure.Management.Network;
using Microsoft.Azure.Management.Network.Models;
using Microsoft.Azure.Management.Resources;
@@ -70,36 +71,36 @@ public void NetworkSecurityGroupApiTest()
// List NSG
var listNsgResponse = networkResourceProviderClient.NetworkSecurityGroups.List(resourceGroupName);
- Assert.Equal(1, listNsgResponse.Value.Count);
- Assert.Equal(networkSecurityGroupName, listNsgResponse.Value[0].Name);
- Assert.Equal(6, listNsgResponse.Value[0].DefaultSecurityRules.Count);
- Assert.Equal("AllowVnetInBound", listNsgResponse.Value[0].DefaultSecurityRules[0].Name);
- Assert.Equal("AllowAzureLoadBalancerInBound", listNsgResponse.Value[0].DefaultSecurityRules[1].Name);
- Assert.Equal("DenyAllInBound", listNsgResponse.Value[0].DefaultSecurityRules[2].Name);
- Assert.Equal("AllowVnetOutBound", listNsgResponse.Value[0].DefaultSecurityRules[3].Name);
- Assert.Equal("AllowInternetOutBound", listNsgResponse.Value[0].DefaultSecurityRules[4].Name);
- Assert.Equal("DenyAllOutBound", listNsgResponse.Value[0].DefaultSecurityRules[5].Name);
- Assert.Equal(getNsgResponse.Etag, listNsgResponse.Value[0].Etag);
+ Assert.Equal(1, listNsgResponse.Count());
+ Assert.Equal(networkSecurityGroupName, listNsgResponse.First().Name);
+ Assert.Equal(6, listNsgResponse.First().DefaultSecurityRules.Count);
+ Assert.Equal("AllowVnetInBound", listNsgResponse.First().DefaultSecurityRules[0].Name);
+ Assert.Equal("AllowAzureLoadBalancerInBound", listNsgResponse.First().DefaultSecurityRules[1].Name);
+ Assert.Equal("DenyAllInBound", listNsgResponse.First().DefaultSecurityRules[2].Name);
+ Assert.Equal("AllowVnetOutBound", listNsgResponse.First().DefaultSecurityRules[3].Name);
+ Assert.Equal("AllowInternetOutBound", listNsgResponse.First().DefaultSecurityRules[4].Name);
+ Assert.Equal("DenyAllOutBound", listNsgResponse.First().DefaultSecurityRules[5].Name);
+ Assert.Equal(getNsgResponse.Etag, listNsgResponse.First().Etag);
// List NSG in a subscription
var listNsgSubsciptionResponse = networkResourceProviderClient.NetworkSecurityGroups.ListAll();
- Assert.Equal(1, listNsgSubsciptionResponse.Value.Count);
- Assert.Equal(networkSecurityGroupName, listNsgSubsciptionResponse.Value[0].Name);
- Assert.Equal(6, listNsgSubsciptionResponse.Value[0].DefaultSecurityRules.Count);
- Assert.Equal("AllowVnetInBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[0].Name);
- Assert.Equal("AllowAzureLoadBalancerInBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[1].Name);
- Assert.Equal("DenyAllInBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[2].Name);
- Assert.Equal("AllowVnetOutBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[3].Name);
- Assert.Equal("AllowInternetOutBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[4].Name);
- Assert.Equal("DenyAllOutBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[5].Name);
- Assert.Equal(getNsgResponse.Etag, listNsgSubsciptionResponse.Value[0].Etag);
+ Assert.Equal(1, listNsgSubsciptionResponse.Count());
+ Assert.Equal(networkSecurityGroupName, listNsgSubsciptionResponse.First().Name);
+ Assert.Equal(6, listNsgSubsciptionResponse.First().DefaultSecurityRules.Count);
+ Assert.Equal("AllowVnetInBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[0].Name);
+ Assert.Equal("AllowAzureLoadBalancerInBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[1].Name);
+ Assert.Equal("DenyAllInBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[2].Name);
+ Assert.Equal("AllowVnetOutBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[3].Name);
+ Assert.Equal("AllowInternetOutBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[4].Name);
+ Assert.Equal("DenyAllOutBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[5].Name);
+ Assert.Equal(getNsgResponse.Etag, listNsgSubsciptionResponse.First().Etag);
// Delete NSG
networkResourceProviderClient.NetworkSecurityGroups.Delete(resourceGroupName, networkSecurityGroupName);
// List NSG
listNsgResponse = networkResourceProviderClient.NetworkSecurityGroups.List(resourceGroupName);
- Assert.Equal(0, listNsgResponse.Value.Count);
+ Assert.Equal(0, listNsgResponse.Count());
}
}
@@ -180,29 +181,29 @@ public void NetworkSecurityGroupWithRulesApiTest()
// List NSG
var listNsgResponse = networkResourceProviderClient.NetworkSecurityGroups.List(resourceGroupName);
- Assert.Equal(1, listNsgResponse.Value.Count);
- Assert.Equal(networkSecurityGroupName, listNsgResponse.Value[0].Name);
- Assert.Equal(6, listNsgResponse.Value[0].DefaultSecurityRules.Count);
- Assert.Equal("AllowVnetInBound", listNsgResponse.Value[0].DefaultSecurityRules[0].Name);
- Assert.Equal("AllowAzureLoadBalancerInBound", listNsgResponse.Value[0].DefaultSecurityRules[1].Name);
- Assert.Equal("DenyAllInBound", listNsgResponse.Value[0].DefaultSecurityRules[2].Name);
- Assert.Equal("AllowVnetOutBound", listNsgResponse.Value[0].DefaultSecurityRules[3].Name);
- Assert.Equal("AllowInternetOutBound", listNsgResponse.Value[0].DefaultSecurityRules[4].Name);
- Assert.Equal("DenyAllOutBound", listNsgResponse.Value[0].DefaultSecurityRules[5].Name);
- Assert.Equal(getNsgResponse.Etag, listNsgResponse.Value[0].Etag);
+ Assert.Equal(1, listNsgResponse.Count());
+ Assert.Equal(networkSecurityGroupName, listNsgResponse.First().Name);
+ Assert.Equal(6, listNsgResponse.First().DefaultSecurityRules.Count);
+ Assert.Equal("AllowVnetInBound", listNsgResponse.First().DefaultSecurityRules[0].Name);
+ Assert.Equal("AllowAzureLoadBalancerInBound", listNsgResponse.First().DefaultSecurityRules[1].Name);
+ Assert.Equal("DenyAllInBound", listNsgResponse.First().DefaultSecurityRules[2].Name);
+ Assert.Equal("AllowVnetOutBound", listNsgResponse.First().DefaultSecurityRules[3].Name);
+ Assert.Equal("AllowInternetOutBound", listNsgResponse.First().DefaultSecurityRules[4].Name);
+ Assert.Equal("DenyAllOutBound", listNsgResponse.First().DefaultSecurityRules[5].Name);
+ Assert.Equal(getNsgResponse.Etag, listNsgResponse.First().Etag);
// List NSG in a subscription
var listNsgSubsciptionResponse = networkResourceProviderClient.NetworkSecurityGroups.ListAll();
- Assert.Equal(1, listNsgSubsciptionResponse.Value.Count);
- Assert.Equal(networkSecurityGroupName, listNsgSubsciptionResponse.Value[0].Name);
- Assert.Equal(6, listNsgSubsciptionResponse.Value[0].DefaultSecurityRules.Count);
- Assert.Equal("AllowVnetInBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[0].Name);
- Assert.Equal("AllowAzureLoadBalancerInBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[1].Name);
- Assert.Equal("DenyAllInBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[2].Name);
- Assert.Equal("AllowVnetOutBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[3].Name);
- Assert.Equal("AllowInternetOutBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[4].Name);
- Assert.Equal("DenyAllOutBound", listNsgSubsciptionResponse.Value[0].DefaultSecurityRules[5].Name);
- Assert.Equal(getNsgResponse.Etag, listNsgSubsciptionResponse.Value[0].Etag);
+ Assert.Equal(1, listNsgSubsciptionResponse.Count());
+ Assert.Equal(networkSecurityGroupName, listNsgSubsciptionResponse.First().Name);
+ Assert.Equal(6, listNsgSubsciptionResponse.First().DefaultSecurityRules.Count);
+ Assert.Equal("AllowVnetInBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[0].Name);
+ Assert.Equal("AllowAzureLoadBalancerInBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[1].Name);
+ Assert.Equal("DenyAllInBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[2].Name);
+ Assert.Equal("AllowVnetOutBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[3].Name);
+ Assert.Equal("AllowInternetOutBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[4].Name);
+ Assert.Equal("DenyAllOutBound", listNsgSubsciptionResponse.First().DefaultSecurityRules[5].Name);
+ Assert.Equal(getNsgResponse.Etag, listNsgSubsciptionResponse.First().Etag);
// Add a new security rule
var SecurityRule = new SecurityRule()
@@ -244,7 +245,7 @@ public void NetworkSecurityGroupWithRulesApiTest()
// List NSG
listNsgResponse = networkResourceProviderClient.NetworkSecurityGroups.List(resourceGroupName);
- Assert.Equal(0, listNsgResponse.Value.Count);
+ Assert.Equal(0, listNsgResponse.Count());
}
}
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/PublicIpAddressTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/PublicIpAddressTests.cs
index a11286460442a..d9fb90cf979e0 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/PublicIpAddressTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/PublicIpAddressTests.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Net;
+using System.Linq;
using Microsoft.Azure.Management.Network;
using Microsoft.Azure.Management.Network.Models;
using Microsoft.Azure.Management.Resources;
@@ -62,20 +63,20 @@ public void PublicIpAddressApiTest()
// Get List of PublicIpAddress
var getPublicIpAddressListResponse = networkResourceProviderClient.PublicIpAddresses.List(resourceGroupName);
- Assert.Equal(1, getPublicIpAddressListResponse.Value.Count);
- ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListResponse.Value[0]);
+ Assert.Equal(1, getPublicIpAddressListResponse.Count());
+ ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListResponse.First());
// Get List of PublicIpAddress in a subscription
var getPublicIpAddressListSubscriptionResponse = networkResourceProviderClient.PublicIpAddresses.ListAll();
- Assert.Equal(1, getPublicIpAddressListSubscriptionResponse.Value.Count);
- ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListSubscriptionResponse.Value[0]);
+ Assert.Equal(1, getPublicIpAddressListSubscriptionResponse.Count());
+ ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListSubscriptionResponse.First());
// Delete PublicIpAddress
networkResourceProviderClient.PublicIpAddresses.Delete(resourceGroupName, publicIpName);
// Get PublicIpAddress
getPublicIpAddressListResponse = networkResourceProviderClient.PublicIpAddresses.List(resourceGroupName);
- Assert.Equal(0, getPublicIpAddressListResponse.Value.Count);
+ Assert.Equal(0, getPublicIpAddressListResponse.Count());
}
}
@@ -140,20 +141,20 @@ public void PublicIpAddressApiTestWithIdletTimeoutAndReverseFqdn()
// Get List of PublicIpAddress
var getPublicIpAddressListResponse = networkResourceProviderClient.PublicIpAddresses.List(resourceGroupName);
- Assert.Equal(1, getPublicIpAddressListResponse.Value.Count);
- ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListResponse.Value[0]);
+ Assert.Equal(1, getPublicIpAddressListResponse.Count());
+ ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListResponse.First());
// Get List of PublicIpAddress in a subscription
var getPublicIpAddressListSubscriptionResponse = networkResourceProviderClient.PublicIpAddresses.ListAll();
- Assert.Equal(1, getPublicIpAddressListSubscriptionResponse.Value.Count);
- ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListSubscriptionResponse.Value[0]);
+ Assert.Equal(1, getPublicIpAddressListSubscriptionResponse.Count());
+ ArePublicIpAddressesEqual(getPublicIpAddressResponse, getPublicIpAddressListSubscriptionResponse.First());
// Delete PublicIpAddress
networkResourceProviderClient.PublicIpAddresses.Delete(resourceGroupName, publicIpName);
// Get PublicIpAddress
getPublicIpAddressListResponse = networkResourceProviderClient.PublicIpAddresses.List(resourceGroupName);
- Assert.Equal(0, getPublicIpAddressListResponse.Value.Count);
+ Assert.Equal(0, getPublicIpAddressListResponse.Count());
}
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/SecurityRuleTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/SecurityRuleTests.cs
index 91606e55809cd..b8f1d9b3337c2 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/SecurityRuleTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/SecurityRuleTests.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Net;
+using System.Linq;
using Microsoft.Azure.Management.Network;
using Microsoft.Azure.Management.Network.Models;
using Microsoft.Azure.Management.Resources;
@@ -117,23 +118,23 @@ public void SecurityRuleWithRulesApiTest()
// List all SecurityRules
var getsecurityRules = networkResourceProviderClient.SecurityRules.List(resourceGroupName, networkSecurityGroupName);
- Assert.Equal(2, getsecurityRules.Value.Count);
- this.CompareSecurityRule(getNsgResponse.SecurityRules[0], getsecurityRules.Value[0]);
- this.CompareSecurityRule(getNsgResponse.SecurityRules[1], getsecurityRules.Value[1]);
+ Assert.Equal(2, getsecurityRules.Count());
+ this.CompareSecurityRule(getNsgResponse.SecurityRules[0], getsecurityRules.First());
+ this.CompareSecurityRule(getNsgResponse.SecurityRules[1], getsecurityRules.ToArray()[1]);
// Delete a SecurityRule
networkResourceProviderClient.SecurityRules.Delete(resourceGroupName, networkSecurityGroupName, securityRule2);
getsecurityRules = networkResourceProviderClient.SecurityRules.List(resourceGroupName, networkSecurityGroupName);
- Assert.Equal(1, getsecurityRules.Value.Count);
+ Assert.Equal(1, getsecurityRules.Count());
// Delete NSG
networkResourceProviderClient.NetworkSecurityGroups.Delete(resourceGroupName, networkSecurityGroupName);
// List NSG
var listNsgResponse = networkResourceProviderClient.NetworkSecurityGroups.List(resourceGroupName);
- Assert.Equal(0, listNsgResponse.Value.Count);
+ Assert.Equal(0, listNsgResponse.Count());
}
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/SubnetTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/SubnetTests.cs
index 7c79b1877a79d..294354a9d2763 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/SubnetTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/SubnetTests.cs
@@ -94,7 +94,7 @@ public void SubnetApiTest()
var getSubnetListResponse = networkResourceProviderClient.Subnets.List(resourceGroupName, vnetName);
// Verify ListSubnets
- Assert.True(AreSubnetsEqual(getVnetResponse.Subnets, getSubnetListResponse.Value));
+ Assert.True(AreSubnetsEqual(getVnetResponse.Subnets, getSubnetListResponse));
// Delete the subnet "subnet1"
networkResourceProviderClient.Subnets.Delete(resourceGroupName, vnetName, subnet2Name);
@@ -102,8 +102,8 @@ public void SubnetApiTest()
// Verify that the deletion was successful
getSubnetListResponse = networkResourceProviderClient.Subnets.List(resourceGroupName, vnetName);
- Assert.Equal(1, getSubnetListResponse.Value.Count);
- Assert.Equal(subnet1Name, getSubnetListResponse.Value[0].Name);
+ Assert.Equal(1, getSubnetListResponse.Count());
+ Assert.Equal(subnet1Name, getSubnetListResponse.First().Name);
#endregion
}
diff --git a/src/ResourceManagement/Network/Network.Tests/Tests/VirtualNetworkTests.cs b/src/ResourceManagement/Network/Network.Tests/Tests/VirtualNetworkTests.cs
index ba6ce3c0fbb74..35e973dd4af68 100644
--- a/src/ResourceManagement/Network/Network.Tests/Tests/VirtualNetworkTests.cs
+++ b/src/ResourceManagement/Network/Network.Tests/Tests/VirtualNetworkTests.cs
@@ -13,6 +13,9 @@
// limitations under the License.
//
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
using Microsoft.Azure.Management.Network;
using Microsoft.Azure.Management.Network.Models;
using Microsoft.Azure.Management.Resources;
@@ -20,9 +23,7 @@
using Microsoft.Azure.Test;
using Networks.Tests.Helpers;
using ResourceGroups.Tests;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
+
using Xunit;
namespace Networks.Tests
@@ -103,15 +104,15 @@ public void VirtualNetworkApiTest()
// Get all Vnets
var getAllVnets = networkResourceProviderClient.VirtualNetworks.List(resourceGroupName);
- Assert.Equal(vnetName, getAllVnets.Value[0].Name);
- Assert.Equal("Succeeded", getAllVnets.Value[0].ProvisioningState);
- Assert.Equal("10.0.0.0/16", getAllVnets.Value[0].AddressSpace.AddressPrefixes[0]);
- Assert.Equal(subnet1Name, getAllVnets.Value[0].Subnets[0].Name);
- Assert.Equal(subnet2Name, getAllVnets.Value[0].Subnets[1].Name);
+ Assert.Equal(vnetName, getAllVnets.First().Name);
+ Assert.Equal("Succeeded", getAllVnets.First().ProvisioningState);
+ Assert.Equal("10.0.0.0/16", getAllVnets.First().AddressSpace.AddressPrefixes[0]);
+ Assert.Equal(subnet1Name, getAllVnets.First().Subnets[0].Name);
+ Assert.Equal(subnet2Name, getAllVnets.First().Subnets[1].Name);
// Get all Vnets in a subscription
var getAllVnetInSubscription = networkResourceProviderClient.VirtualNetworks.ListAll();
- var vnpgateway = getAllVnetInSubscription.Value.FirstOrDefault(n => n.Name == vnetName);
+ var vnpgateway = getAllVnetInSubscription.FirstOrDefault(n => n.Name == vnetName);
Assert.NotNull(vnpgateway);
Assert.Equal("Succeeded", vnpgateway.ProvisioningState);
Assert.Equal("10.0.0.0/16", vnpgateway.AddressSpace.AddressPrefixes[0]);
@@ -123,7 +124,7 @@ public void VirtualNetworkApiTest()
// Get all Vnets
getAllVnets = networkResourceProviderClient.VirtualNetworks.List(resourceGroupName);
- Assert.Null(getAllVnets.Value);
+ Assert.Null(getAllVnets);
}
}
}
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperations.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperations.cs
index f59f2f0c69c3b..629ba1e68a19d 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperations.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperations.cs
@@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading.Tasks;
using Microsoft.Rest;
using Newtonsoft.Json;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -43,10 +44,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
/// The name of the applicationgateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -176,6 +177,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -310,6 +315,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
@@ -336,10 +345,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
/// Parameters supplied to the create/delete ApplicationGateway operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -493,6 +502,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "Created"))
{
@@ -525,7 +538,7 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
///
/// Cancellation token.
///
- public async Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -627,14 +640,18 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
@@ -653,7 +670,7 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
///
/// Cancellation token.
///
- public async Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (this.Client.ApiVersion == null)
{
@@ -749,14 +766,18 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
@@ -776,10 +797,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
/// The name of the application gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task StartWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -909,6 +930,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -927,10 +952,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
/// The name of the application gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
public async Task StopWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
@@ -1060,6 +1085,10 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
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();
+ }
if (shouldTrace)
{
ServiceClientTracing.Exit(invocationId, result);
@@ -1071,7 +1100,7 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
/// The List ApplicationGateway opertion retrieves all the applicationgateways
/// in a resource group.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
@@ -1080,11 +1109,11 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
///
/// Cancellation token.
///
- public async Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (nextLink == null)
+ if (nextPageLink == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "nextLink");
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
}
// Tracing
bool shouldTrace = ServiceClientTracing.IsEnabled;
@@ -1093,13 +1122,13 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
{
invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextLink", nextLink);
+ tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(invocationId, this, "ListNext", tracingParameters);
}
// Construct URL
string url = "{nextLink}";
- url = url.Replace("{nextLink}", nextLink);
+ url = url.Replace("{nextLink}", nextPageLink);
List queryParameters = new List();
if (queryParameters.Count > 0)
{
@@ -1168,14 +1197,18 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
@@ -1188,7 +1221,7 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
/// The List applicationgateway opertion retrieves all the applicationgateways
/// in a subscription.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
@@ -1197,11 +1230,11 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
///
/// Cancellation token.
///
- public async Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (nextLink == null)
+ if (nextPageLink == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "nextLink");
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
}
// Tracing
bool shouldTrace = ServiceClientTracing.IsEnabled;
@@ -1210,13 +1243,13 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient client)
{
invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextLink", nextLink);
+ tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(invocationId, this, "ListAllNext", tracingParameters);
}
// Construct URL
string url = "{nextLink}";
- url = url.Replace("{nextLink}", nextLink);
+ url = url.Replace("{nextLink}", nextPageLink);
List queryParameters = new List();
if (queryParameters.Count > 0)
{
@@ -1285,14 +1318,18 @@ internal ApplicationGatewaysOperations(NetworkResourceProviderClient 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 (statusCode == (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), "OK"))
{
string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- result.Body = JsonConvert.DeserializeObject(responseContent, this.Client.DeserializationSettings);
+ result.Body = JsonConvert.DeserializeObject>(responseContent, this.Client.DeserializationSettings);
}
if (shouldTrace)
{
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperationsExtensions.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperationsExtensions.cs
index 3a8fd191f8bc2..2066bba803e52 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperationsExtensions.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/ApplicationGatewaysOperationsExtensions.cs
@@ -16,7 +16,7 @@ public static partial class ApplicationGatewaysOperationsExtensions
/// applicationgateway.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -34,7 +34,7 @@ public static void Delete(this IApplicationGatewaysOperations operations, string
/// applicationgateway.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -55,7 +55,7 @@ public static void Delete(this IApplicationGatewaysOperations operations, string
/// applicationgateway.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -73,7 +73,7 @@ public static void BeginDelete(this IApplicationGatewaysOperations operations, s
/// applicationgateway.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -94,7 +94,7 @@ public static void BeginDelete(this IApplicationGatewaysOperations operations, s
/// specified applicationgateway.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -112,7 +112,7 @@ public static ApplicationGateway Get(this IApplicationGatewaysOperations operati
/// specified applicationgateway.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -133,7 +133,7 @@ public static ApplicationGateway Get(this IApplicationGatewaysOperations operati
/// The Put ApplicationGateway operation creates/updates a ApplicationGateway
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -153,7 +153,7 @@ public static ApplicationGateway CreateOrUpdate(this IApplicationGatewaysOperati
/// The Put ApplicationGateway operation creates/updates a ApplicationGateway
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -177,7 +177,7 @@ public static ApplicationGateway CreateOrUpdate(this IApplicationGatewaysOperati
/// The Put ApplicationGateway operation creates/updates a ApplicationGateway
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -197,7 +197,7 @@ public static ApplicationGateway BeginCreateOrUpdate(this IApplicationGatewaysOp
/// The Put ApplicationGateway operation creates/updates a ApplicationGateway
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -222,12 +222,12 @@ public static ApplicationGateway BeginCreateOrUpdate(this IApplicationGatewaysOp
/// in a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
///
- public static ApplicationGatewayListResult List(this IApplicationGatewaysOperations operations, string resourceGroupName)
+ public static Page List(this IApplicationGatewaysOperations operations, string resourceGroupName)
{
return Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListAsync(resourceGroupName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
@@ -237,7 +237,7 @@ public static ApplicationGatewayListResult List(this IApplicationGatewaysOperati
/// in a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -245,9 +245,9 @@ public static ApplicationGatewayListResult List(this IApplicationGatewaysOperati
///
/// Cancellation token.
///
- public static async Task ListAsync( this IApplicationGatewaysOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync( this IApplicationGatewaysOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
@@ -256,9 +256,9 @@ public static ApplicationGatewayListResult List(this IApplicationGatewaysOperati
/// in a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- public static ApplicationGatewayListResult ListAll(this IApplicationGatewaysOperations operations)
+ public static Page ListAll(this IApplicationGatewaysOperations operations)
{
return Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListAllAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
@@ -268,14 +268,14 @@ public static ApplicationGatewayListResult ListAll(this IApplicationGatewaysOper
/// in a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// Cancellation token.
///
- public static async Task ListAllAsync( this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAllAsync( this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
@@ -284,7 +284,7 @@ public static ApplicationGatewayListResult ListAll(this IApplicationGatewaysOper
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -302,7 +302,7 @@ public static void Start(this IApplicationGatewaysOperations operations, string
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -323,7 +323,7 @@ public static void Start(this IApplicationGatewaysOperations operations, string
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -341,7 +341,7 @@ public static void BeginStart(this IApplicationGatewaysOperations operations, st
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -362,7 +362,7 @@ public static void BeginStart(this IApplicationGatewaysOperations operations, st
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -380,7 +380,7 @@ public static void Stop(this IApplicationGatewaysOperations operations, string r
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -401,7 +401,7 @@ public static void Stop(this IApplicationGatewaysOperations operations, string r
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -419,7 +419,7 @@ public static void BeginStop(this IApplicationGatewaysOperations operations, str
/// specified resource group through Network resource provider.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
///
/// The name of the resource group.
@@ -440,14 +440,14 @@ public static void BeginStop(this IApplicationGatewaysOperations operations, str
/// in a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
- public static ApplicationGatewayListResult ListNext(this IApplicationGatewaysOperations operations, string nextLink)
+ public static Page ListNext(this IApplicationGatewaysOperations operations, string nextPageLink)
{
- return Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListNextAsync(nextLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
+ return Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
///
@@ -455,17 +455,17 @@ public static ApplicationGatewayListResult ListNext(this IApplicationGatewaysOpe
/// in a resource group.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
/// Cancellation token.
///
- public static async Task ListNextAsync( this IApplicationGatewaysOperations operations, string nextLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListNextAsync( this IApplicationGatewaysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListNextWithHttpMessagesAsync(nextLink, null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
@@ -474,14 +474,14 @@ public static ApplicationGatewayListResult ListNext(this IApplicationGatewaysOpe
/// in a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
- public static ApplicationGatewayListResult ListAllNext(this IApplicationGatewaysOperations operations, string nextLink)
+ public static Page ListAllNext(this IApplicationGatewaysOperations operations, string nextPageLink)
{
- return Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListAllNextAsync(nextLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
+ return Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListAllNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
///
@@ -489,17 +489,17 @@ public static ApplicationGatewayListResult ListAllNext(this IApplicationGateways
/// in a subscription.
///
///
- /// The operations group for this extension method
+ /// The operations group for this extension method.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
/// Cancellation token.
///
- public static async Task ListAllNextAsync( this IApplicationGatewaysOperations operations, string nextLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAllNextAsync( this IApplicationGatewaysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- AzureOperationResponse result = await operations.ListAllNextWithHttpMessagesAsync(nextLink, null, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse> result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false);
return result.Body;
}
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/IApplicationGatewaysOperations.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/IApplicationGatewaysOperations.cs
index 34e271c758d75..8c873ae158c9f 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/IApplicationGatewaysOperations.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/IApplicationGatewaysOperations.cs
@@ -6,6 +6,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -24,10 +25,10 @@ public partial interface IApplicationGatewaysOperations
/// The name of the applicationgateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -41,10 +42,10 @@ public partial interface IApplicationGatewaysOperations
/// The name of the applicationgateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -58,10 +59,10 @@ public partial interface IApplicationGatewaysOperations
/// The name of the applicationgateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -79,10 +80,10 @@ public partial interface IApplicationGatewaysOperations
/// operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -100,10 +101,10 @@ public partial interface IApplicationGatewaysOperations
/// operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -114,23 +115,23 @@ public partial interface IApplicationGatewaysOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List applicationgateway opertion retrieves all the
/// applicationgateways in a subscription.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The Start ApplicationGateway operation starts application
/// gatewayin the specified resource group through Network resource
@@ -143,10 +144,10 @@ public partial interface IApplicationGatewaysOperations
/// The name of the application gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task StartWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -161,10 +162,10 @@ public partial interface IApplicationGatewaysOperations
/// The name of the application gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginStartWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -178,10 +179,10 @@ public partial interface IApplicationGatewaysOperations
/// The name of the application gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task StopWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -195,39 +196,39 @@ public partial interface IApplicationGatewaysOperations
/// The name of the application gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginStopWithHttpMessagesAsync(string resourceGroupName, string applicationGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List ApplicationGateway opertion retrieves all the
/// applicationgateways in a resource group.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List applicationgateway opertion retrieves all the
/// applicationgateways in a subscription.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/ILoadBalancersOperations.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/ILoadBalancersOperations.cs
index 7dcdc51750158..5e5e0a08cb5d1 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/ILoadBalancersOperations.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/ILoadBalancersOperations.cs
@@ -6,6 +6,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -24,10 +25,10 @@ public partial interface ILoadBalancersOperations
/// The name of the loadBalancer.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -41,10 +42,10 @@ public partial interface ILoadBalancersOperations
/// The name of the loadBalancer.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -58,10 +59,10 @@ public partial interface ILoadBalancersOperations
/// The name of the loadBalancer.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -77,10 +78,10 @@ public partial interface ILoadBalancersOperations
/// Parameters supplied to the create/delete LoadBalancer operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, LoadBalancer parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -96,10 +97,10 @@ public partial interface ILoadBalancersOperations
/// Parameters supplied to the create/delete LoadBalancer operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, LoadBalancer parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -107,12 +108,12 @@ public partial interface ILoadBalancersOperations
/// a subscription.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List loadBalancer opertion retrieves all the loadbalancers in
/// a resource group.
@@ -121,39 +122,39 @@ public partial interface ILoadBalancersOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List loadBalancer opertion retrieves all the loadbalancers in
/// a subscription.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List loadBalancer opertion retrieves all the loadbalancers in
/// a resource group.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/ILocalNetworkGatewaysOperations.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/ILocalNetworkGatewaysOperations.cs
index 7f7f8cbe18d3a..a192998a85687 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/ILocalNetworkGatewaysOperations.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/ILocalNetworkGatewaysOperations.cs
@@ -6,6 +6,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -29,10 +30,10 @@ public partial interface ILocalNetworkGatewaysOperations
/// Gateway operation through Network resource provider.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string localNetworkGatewayName, LocalNetworkGateway parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -51,10 +52,10 @@ public partial interface ILocalNetworkGatewaysOperations
/// Gateway operation through Network resource provider.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string localNetworkGatewayName, LocalNetworkGateway parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -69,10 +70,10 @@ public partial interface ILocalNetworkGatewaysOperations
/// The name of the local network gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string localNetworkGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -86,10 +87,10 @@ public partial interface ILocalNetworkGatewaysOperations
/// The name of the local network gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string localNetworkGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -103,10 +104,10 @@ public partial interface ILocalNetworkGatewaysOperations
/// The name of the local network gateway.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string localNetworkGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -117,25 +118,25 @@ public partial interface ILocalNetworkGatewaysOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List LocalNetworkGateways opertion retrieves all the local
/// network gateways stored.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkInterfacesOperations.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkInterfacesOperations.cs
index 7a8608c82a0e5..4236074dbeab4 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkInterfacesOperations.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkInterfacesOperations.cs
@@ -6,6 +6,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -24,10 +25,10 @@ public partial interface INetworkInterfacesOperations
/// The name of the network interface.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -41,10 +42,10 @@ public partial interface INetworkInterfacesOperations
/// The name of the network interface.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -58,10 +59,10 @@ public partial interface INetworkInterfacesOperations
/// The name of the network interface.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -78,10 +79,10 @@ public partial interface INetworkInterfacesOperations
/// Parameters supplied to the create/update NetworkInterface operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, NetworkInterface parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -98,10 +99,10 @@ public partial interface INetworkInterfacesOperations
/// Parameters supplied to the create/update NetworkInterface operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, NetworkInterface parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -109,12 +110,12 @@ public partial interface INetworkInterfacesOperations
/// networkInterfaces in a subscription.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List networkInterfaces opertion retrieves all the
/// networkInterfaces in a resource group.
@@ -123,39 +124,39 @@ public partial interface INetworkInterfacesOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List networkInterfaces opertion retrieves all the
/// networkInterfaces in a subscription.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The List networkInterfaces opertion retrieves all the
/// networkInterfaces in a resource group.
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListNextWithHttpMessagesAsync(string nextLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkResourceProviderClient.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkResourceProviderClient.cs
index 0bf1d4e80893b..b85015d1051a1 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkResourceProviderClient.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkResourceProviderClient.cs
@@ -7,6 +7,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading.Tasks;
using Newtonsoft.Json;
using Microsoft.Rest;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -30,10 +31,9 @@ public partial interface INetworkResourceProviderClient
JsonSerializerSettings DeserializationSettings { get; }
///
- /// Subscription credentials which uniquely identify Microsoft Azure
- /// subscription.
+ /// Management credentials for Azure.
///
- SubscriptionCloudCredentials Credentials { get; }
+ ServiceClientCredentials Credentials { get; }
///
/// Gets subscription credentials which uniquely identify Microsoft
@@ -94,10 +94,10 @@ public partial interface INetworkResourceProviderClient
/// regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CheckDnsNameAvailabilityWithHttpMessagesAsync(string location, string domainNameLabel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
diff --git a/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkSecurityGroupsOperations.cs b/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkSecurityGroupsOperations.cs
index 481db3b74c963..8a141a15a79ae 100644
--- a/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkSecurityGroupsOperations.cs
+++ b/src/ResourceManagement/Network/NetworkManagement/Generated/INetworkSecurityGroupsOperations.cs
@@ -6,6 +6,7 @@ namespace Microsoft.Azure.Management.Network
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
+ using System.Linq;
using Microsoft.Azure;
using Models;
@@ -24,10 +25,10 @@ public partial interface INetworkSecurityGroupsOperations
/// The name of the network security group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -41,10 +42,10 @@ public partial interface INetworkSecurityGroupsOperations
/// The name of the network security group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -58,10 +59,10 @@ public partial interface INetworkSecurityGroupsOperations
/// The name of the network security group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -79,10 +80,10 @@ public partial interface INetworkSecurityGroupsOperations
/// operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, NetworkSecurityGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -100,10 +101,10 @@ public partial interface INetworkSecurityGroupsOperations
/// operation
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, NetworkSecurityGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
@@ -111,12 +112,12 @@ public partial interface INetworkSecurityGroupsOperations
/// in a subscription
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The list NetworkSecurityGroups returns all network security groups
/// in a resource group
@@ -125,39 +126,39 @@ public partial interface INetworkSecurityGroupsOperations
/// The name of the resource group.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// The list NetworkSecurityGroups returns all network security groups
/// in a subscription
///
- ///
+ ///
/// NextLink from the previous successful call to List operation.
///
///
- /// Headers that will be added to request.
+ /// The headers that will be added to request.
///
///
- /// Cancellation token.
+ /// The cancellation token.
///
- Task> ListAllNextWithHttpMessagesAsync(string nextLink, Dictionary