public Pageable <ArmResource> ListByName(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { ArmFilterCollection filters = new ArmFilterCollection(PublicIPAddressData.ResourceType); filters.SubstringFilter = filter; return(ResourceListOperations.ListAtContext(ClientOptions, Id, filters, top, cancellationToken)); }
/// <summary> /// Filters the list of virtual machines for this resource group represented as generic resources. /// </summary> /// <param name="filter"> The substring to filter by. </param> /// <param name="top"> The number of items to truncate by. </param> /// <param name="cancellationToken"> A token to allow the caller to cancel the call to the service. The default value is <see cref="P:System.Threading.CancellationToken.None" />. </param> /// <returns> An async collection of <see cref="ArmResource"/> that may take multiple service requests to iterate over. </returns> public AsyncPageable <ArmResource> ListByNameAsync(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { ArmFilterCollection filters = new ArmFilterCollection(VirtualMachineOperations.ResourceType); filters.SubstringFilter = filter; return(ResourceListOperations.ListAtContextAsync(ClientOptions, Id, filters, top, cancellationToken)); }
/// <summary> /// Filters the list of virtual machines for this resource group represented as generic resources. /// Makes an additional network call to retrieve the full data model for each virtual machine. /// </summary> /// <param name="filter"> The substring to filter by. </param> /// <param name="top"> The number of items to truncate by. </param> /// <param name="cancellationToken"> A token to allow the caller to cancel the call to the service. The default value is <see cref="P:System.Threading.CancellationToken.None" />. </param> /// <returns> An async collection of <see cref="VirtualMachine"/> that may take multiple service requests to iterate over. </returns> public AsyncPageable <VirtualMachine> ListByNameExpandedAsync(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { var results = ListByNameAsync(filter, top, cancellationToken); return(new PhWrappingAsyncPageable <ArmResource, VirtualMachine>(results, s => (new VirtualMachineOperations(s)).Get().Value)); }
public AsyncPageable <PublicIpAddress> ListByNameExpandedAsync(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { var results = ListByNameAsync(filter, top, cancellationToken); return(new PhWrappingAsyncPageable <ArmResource, PublicIpAddress>(results, s => new PublicIpAddressOperations(s).Get().Value)); }
public Pageable <AvailabilitySet> ListByNameExpanded(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { var results = ListByName(filter, top, cancellationToken); return(new PhWrappingPageable <ArmResource, AvailabilitySet>(results, s => new AvailabilitySetOperations(s).Get().Value)); }
/// <summary> /// Filters the list of virtual nerwork for this resource group. /// Makes an additional network call to retrieve the full data model for each virtual nerwork. /// </summary> /// <param name="filter"> The filter used in this operation. </param> /// <param name="top"> The number of results to return. </param> /// <param name="cancellationToken"> A token to allow the caller to cancel the call to the service. The default value is <see cref="P:System.Threading.CancellationToken.None" />. </param> /// <returns> A collection of resource that may take multiple service requests to iterate over. </returns> public Pageable <VirtualNetwork> ListByNameExpanded(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { var results = ListByName(filter, top, cancellationToken); return(new PhWrappingPageable <ArmResource, VirtualNetwork>(results, s => new VirtualNetworkOperations(s).Get().Value)); }
public AsyncPageable <NetworkSecurityGroup> ListByNameExpandedAsync(ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { var results = ListByNameAsync(filter, top, cancellationToken); return(new PhWrappingAsyncPageable <ArmResource, NetworkSecurityGroup>(results, s => new NetworkSecurityGroupOperations(s).Get().Value)); }
public static Pageable <ArmResource> ListVirtualMachinesByName(this SubscriptionOperations subscription, ArmSubstringFilter filter, int?top = null, CancellationToken cancellationToken = default) { ArmFilterCollection filters = new ArmFilterCollection(VirtualMachineOperations.ResourceType); filters.SubstringFilter = filter; return(ResourceListOperations.ListAtContext(subscription.ClientOptions, subscription.Id, filters, top, cancellationToken)); }