Skip to content

Commit

Permalink
align with latest changes in arm core
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang committed Jun 8, 2021
1 parent 7effb48 commit 74974e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static AvailabilitySetsRestOperations GetAvailabilitySetsRestOperations(
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<AvailabilitySet> ListAvailabilitySetAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetAvailabilitySetsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -180,7 +180,7 @@ private static ProximityPlacementGroupsRestOperations GetProximityPlacementGroup
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<ProximityPlacementGroup> ListProximityPlacementGroupAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetProximityPlacementGroupsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -327,7 +327,7 @@ private static DedicatedHostGroupsRestOperations GetDedicatedHostGroupsRestOpera
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<DedicatedHostGroup> ListDedicatedHostGroupAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetDedicatedHostGroupsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -474,7 +474,7 @@ private static SshPublicKeysRestOperations GetSshPublicKeysRestOperations(Client
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<SshPublicKey> ListSshPublicKeyAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetSshPublicKeysRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -621,7 +621,7 @@ private static VirtualMachinesRestOperations GetVirtualMachinesRestOperations(Cl
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<VirtualMachine> ListVirtualMachineAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetVirtualMachinesRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -770,7 +770,7 @@ private static VirtualMachineScaleSetsRestOperations GetVirtualMachineScaleSetsR
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<VirtualMachineScaleSet> ListVirtualMachineScaleSetAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetVirtualMachineScaleSetsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void WriteListResourceMethod(CodeWriter writer, Resource resource, Resou
var methodName = $"List{resource.Type.Name}";
using (writer.Scope($"public static {responseType} {CreateMethodName(methodName, async)}(this {typeof(SubscriptionOperations)} subscription, {typeof(CancellationToken)} cancellationToken = default)"))
{
writer.Append($"return subscription.ListResources((baseUri, credential, options, pipeline) =>");
writer.Append($"return subscription.{CreateMethodName("ListResources", async)}((baseUri, credential, options, pipeline) =>");
using (writer.Scope())
{
var clientDiagnostics = new CodeWriterDeclaration("clientDiagnostics");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static AvailabilitySetsRestOperations GetAvailabilitySetsRestOperations(
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<AvailabilitySet> ListAvailabilitySetAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetAvailabilitySetsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static OvensRestOperations GetOvensRestOperations(ClientDiagnostics clie
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<Oven> ListOvenAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetOvensRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down

0 comments on commit 74974e7

Please sign in to comment.