Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR Microsoft.Azure.Management.ResourceManager] Fix json format by prettier #437

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

// <auto-generated>
// 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.Peering
{
using System;
using System.Collections.Generic;
using System.Linq;

internal static partial class SdkInfo
{
public static IEnumerable<Tuple<string, string, string>> ApiInfo_PeeringManagementClient
{
get
{
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("Peering", "CheckServiceProviderAvailability", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "LegacyPeerings", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "Operations", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "PeerAsns", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "PeeringLocations", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "PeeringServiceLocations", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "PeeringServiceProviders", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "PeeringServices", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "Peerings", "2019-09-01-preview"),
new Tuple<string, string, string>("Peering", "Prefixes", "2019-09-01-preview"),
}.AsEnumerable();
}
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// <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.ResourceManager
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for AuthorizationOperations.
/// </summary>
public static partial class AuthorizationOperationsExtensions
{
/// <summary>
/// Lists all of the available Microsoft.Authorization REST API operations.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IPage<Operation> List(this IAuthorizationOperations operations)
{
return operations.ListAsync().GetAwaiter().GetResult();
}

/// <summary>
/// Lists all of the available Microsoft.Authorization REST API operations.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Operation>> ListAsync(this IAuthorizationOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Lists all of the available Microsoft.Authorization REST API operations.
/// </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<Operation> ListNext(this IAuthorizationOperations operations, string nextPageLink)
{
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}

/// <summary>
/// Lists all of the available Microsoft.Authorization REST API operations.
/// </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<Operation>> ListNextAsync(this IAuthorizationOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}
Loading