Class ArmRestApiCollection
- Namespace
- Azure.ResourceManager.Resources
- Assembly
- Azure.ResourceManager.dll
A class which represents the RestApis for a given azure namespace.
public class ArmRestApiCollection : ArmCollection, IEnumerable<ArmRestApi>, IEnumerable, IAsyncEnumerable<ArmRestApi>
- Inheritance
-
ArmRestApiCollection
- Implements
-
IAsyncEnumerable<ArmRestApi>
- Inherited Members
Constructors
ArmRestApiCollection()
Initializes a new instance of the ArmRestApiCollection class for mocking.
protected ArmRestApiCollection()
Methods
GetAll(CancellationToken)
Gets a list of operations.
public virtual Pageable<ArmRestApi> GetAll(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- Pageable<ArmRestApi>
A collection of ArmRestApi that may take multiple service requests to iterate over.
GetAllAsync(CancellationToken)
Gets a list of operations.
public virtual AsyncPageable<ArmRestApi> GetAllAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- AsyncPageable<ArmRestApi>
An async collection of ArmRestApi that may take multiple service requests to iterate over.