Skip to content

Commit

Permalink
Merge pull request #5 from Azure/preview
Browse files Browse the repository at this point in the history
Sync with upstream
  • Loading branch information
zhangyd2015 authored Dec 6, 2017
2 parents 57b6b4b + 339519b commit 5c0ee38
Show file tree
Hide file tree
Showing 708 changed files with 723,622 additions and 650,931 deletions.
3 changes: 3 additions & 0 deletions TestMappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
"src/ResourceManager/StreamAnalytics/": [
".\\src\\ResourceManager\\StreamAnalytics\\Commands.StreamAnalytics.Test\\bin\\Debug\\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"
],
"src/ResourceManager/Subscription/": [
".\\src\\ResourceManager\\Subscription\\Commands.Subscription.Test\\bin\\Debug\\Microsoft.Azure.Commands.Subscription.Test.dll"
],
"src/ResourceManager/Tags/": [],
"src/ResourceManager/TrafficManager/": [
".\\src\\ResourceManager\\TrafficManager\\Commands.TrafficManager2.Test\\bin\\Debug\\Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests.dll"
Expand Down
471 changes: 412 additions & 59 deletions src/Common/Commands.Common.Network/Commands.Common.Network.csproj

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Internal.Network.Version2017_10_01
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for AvailableEndpointServicesOperations.
/// </summary>
public static partial class AvailableEndpointServicesOperationsExtensions
{
/// <summary>
/// List what values of endpoint services are available for use.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='location'>
/// The location to check available endpoint services.
/// </param>
public static IPage<EndpointServiceResult> List(this IAvailableEndpointServicesOperations operations, string location)
{
return operations.ListAsync(location).GetAwaiter().GetResult();
}

/// <summary>
/// List what values of endpoint services are available for use.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='location'>
/// The location to check available endpoint services.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<EndpointServiceResult>> ListAsync(this IAvailableEndpointServicesOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// List what values of endpoint services are available for use.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<EndpointServiceResult> ListNext(this IAvailableEndpointServicesOperations operations, string nextPageLink)
{
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}

/// <summary>
/// List what values of endpoint services are available for use.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<EndpointServiceResult>> ListNextAsync(this IAvailableEndpointServicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}
Loading

0 comments on commit 5c0ee38

Please sign in to comment.