-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated Network SDK based on Swagger's October release (#4981)
* Generated Network SDK based on Swagger's October release * Update Network's change log
- Loading branch information
1 parent
a50c4ab
commit b5365ba
Showing
44 changed files
with
5,952 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
626 changes: 626 additions & 0 deletions
626
src/SDKs/Network/Management.Network/Generated/ExpressRouteLinksOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
149 changes: 149 additions & 0 deletions
149
src/SDKs/Network/Management.Network/Generated/ExpressRouteLinksOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
// <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.Network | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for ExpressRouteLinksOperations. | ||
/// </summary> | ||
public static partial class ExpressRouteLinksOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Retrieves the specified ExpressRouteLink resource. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='expressRoutePortName'> | ||
/// The name of the ExpressRoutePort resource. | ||
/// </param> | ||
/// <param name='linkName'> | ||
/// The name of the ExpressRouteLink resource. | ||
/// </param> | ||
public static ExpressRouteLink Get(this IExpressRouteLinksOperations operations, string resourceGroupName, string expressRoutePortName, string linkName) | ||
{ | ||
return operations.GetAsync(resourceGroupName, expressRoutePortName, linkName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Retrieves the specified ExpressRouteLink resource. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='expressRoutePortName'> | ||
/// The name of the ExpressRoutePort resource. | ||
/// </param> | ||
/// <param name='linkName'> | ||
/// The name of the ExpressRouteLink resource. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<ExpressRouteLink> GetAsync(this IExpressRouteLinksOperations operations, string resourceGroupName, string expressRoutePortName, string linkName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, expressRoutePortName, linkName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Retrieve the ExpressRouteLink sub-resources of the specified | ||
/// ExpressRoutePort resource. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='expressRoutePortName'> | ||
/// The name of the ExpressRoutePort resource. | ||
/// </param> | ||
public static IPage<ExpressRouteLink> List(this IExpressRouteLinksOperations operations, string resourceGroupName, string expressRoutePortName) | ||
{ | ||
return operations.ListAsync(resourceGroupName, expressRoutePortName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Retrieve the ExpressRouteLink sub-resources of the specified | ||
/// ExpressRoutePort resource. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='expressRoutePortName'> | ||
/// The name of the ExpressRoutePort resource. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<ExpressRouteLink>> ListAsync(this IExpressRouteLinksOperations operations, string resourceGroupName, string expressRoutePortName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, expressRoutePortName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Retrieve the ExpressRouteLink sub-resources of the specified | ||
/// ExpressRoutePort resource. | ||
/// </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<ExpressRouteLink> ListNext(this IExpressRouteLinksOperations operations, string nextPageLink) | ||
{ | ||
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Retrieve the ExpressRouteLink sub-resources of the specified | ||
/// ExpressRoutePort resource. | ||
/// </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<ExpressRouteLink>> ListNextAsync(this IExpressRouteLinksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.