///GENMHASH:C98B5924C4B12F70C49985B2AAED62BE:1C1485D42A8FCEC5650D8914CCD5B0E7 public async Task <IPagedCollection <Microsoft.Azure.Management.Eventhub.Fluent.IEventHubAuthorizationRule> > ListByEventHubAsync(string resourceGroupName, string namespaceName, string eventHubName, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IEventHubAuthorizationRule, AuthorizationRuleInner> .LoadPage( async (cancellation) => await this.Inner.ListAuthorizationRulesAsync(resourceGroupName, namespaceName, eventHubName, cancellation), async (nextLink, cancellation) => await this.Inner.ListAuthorizationRulesNextAsync(nextLink, cancellation), WrapModel, true, cancellationToken)); }
///GENMHASH:6EDC0210EC32BAF3169D04C5071B3BA4:B26E20CB198C0E2FD54328DFD9C6DEAA public async Task <IPagedCollection <Microsoft.Azure.Management.Eventhub.Fluent.IEventHubDisasterRecoveryPairing> > ListByNamespaceAsync(string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IEventHubDisasterRecoveryPairing, ArmDisasterRecoveryInner> .LoadPage( async (cancellation) => await Inner.ListAsync(resourceGroupName, namespaceName, cancellation), async (nextLink, cancellation) => await Inner .ListNextAsync(nextLink, cancellation), WrapModel, true, cancellationToken)); }
public async Task <IPagedCollection <RecordSetT> > ListAsync(string recordSetNameSuffix = default(string), int?pageSize = default(int?), bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <RecordSetT, RecordSetInner> .LoadPage( async (cancellation) => await parent.Manager.Inner.RecordSets.ListByTypeAsync( parent.ResourceGroupName, parent.Name, recordType, top: pageSize, recordsetnamesuffix: recordSetNameSuffix, cancellationToken: cancellationToken), parent.Manager.Inner.RecordSets.ListByTypeNextAsync, WrapModel, loadAllPages, cancellationToken)); }
public async Task <IPagedCollection <IPolicyAssignment> > ListByResourceAsync(string resourceId, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IPolicyAssignment, PolicyAssignmentInner> .LoadPage( async (cancellation) => await client.ListForResourceAsync( resourceGroupName: ResourceUtils.GroupFromResourceId(resourceId), resourceProviderNamespace: ResourceUtils.ResourceProviderFromResourceId(resourceId), parentResourcePath: ResourceUtils.ParentResourcePathFromResourceId(resourceId), resourceType: ResourceUtils.ResourceTypeFromResourceId(resourceId), resourceName: ResourceUtils.NameFromResourceId(resourceId), cancellationToken: cancellation ), WrapModel, cancellationToken )); }
/// <summary> /// Asynchronously lists all the record sets in this private zone with the given suffix, also limits /// the number of entries per page to the given page size. /// </summary> /// <param name="recordSetNameSuffix">The record set name suffix.</param> /// <param name="pageSize">The maximum number of record sets in a page.</param> /// <return>The record sets.</return> public async Task <IPagedCollection <IPrivateDnsRecordSet> > ListRecordSetsAsync(string recordSetNameSuffix = default(string), int?pageSize = default(int?), bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IPrivateDnsRecordSet, RecordSetInner> .LoadPage( async(cancellation) => await Manager.Inner.RecordSets.ListAsync( ResourceGroupName, Name, top: pageSize, recordsetnamesuffix: recordSetNameSuffix, cancellationToken: cancellation), Manager.Inner.RecordSets.ListNextAsync, WrapModel, loadAllPages, cancellationToken )); }
///GENMHASH:75FEDF335D513029A4BA866C3E6BE131:B6A4EBD0DC3C36F9588173D7B2A63BA9 public async Task <IPagedCollection <IManagementLock> > ListForResourceAsync(string resourceId, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IManagementLock, ManagementLockObjectInner> .LoadPage( async (cancellation) => await Inner().ListAtResourceLevelAsync( ResourceUtils.GroupFromResourceId(resourceId), ResourceUtils.ResourceProviderFromResourceId(resourceId), ResourceUtils.ParentRelativePathFromResourceId(resourceId), ResourceUtils.ResourceTypeFromResourceId(resourceId), ResourceUtils.NameFromResourceId(resourceId), null, cancellationToken), Inner().ListAtResourceLevelNextAsync, WrapModel, false, cancellationToken)); }
///GENMHASH:C98B5924C4B12F70C49985B2AAED62BE:BB3D187E44962B28ED4596C599CB484C public async Task <IPagedCollection <Microsoft.Azure.Management.Eventhub.Fluent.IEventHubConsumerGroup> > ListByEventHubAsync(string resourceGroupName, string namespaceName, string eventHubName, CancellationToken cancellationToken = default(CancellationToken), int?skip = default(int?), int?top = default(int?)) { return(await PagedCollection <IEventHubConsumerGroup, ConsumerGroupInner> .LoadPage( async (cancellation) => await this.Inner.ListByEventHubAsync(resourceGroupName, namespaceName, eventHubName, skip, top, cancellation), async (nextLink, cancellation) => await this.Inner.ListByEventHubNextAsync(nextLink, cancellation), WrapModel, true, cancellationToken)); }
///GENMHASH:29A726C59C9E8C7255A01C36C8AE6852:255DF06AA43E1C1CE6ED97FA24392A0F public async Task <IPagedCollection <Microsoft.Azure.Management.Eventhub.Fluent.IDisasterRecoveryPairingAuthorizationRule> > ListByDisasterRecoveryPairingAsync(string resourceGroupName, string namespaceName, string pairingName, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IDisasterRecoveryPairingAuthorizationRule, AuthorizationRuleInner> .LoadPage( async (cancellation) => await this.manager.Inner .DisasterRecoveryConfigs.ListAuthorizationRulesAsync(resourceGroupName, namespaceName, pairingName, cancellation), async (nextLink, cancellation) => await this.manager.Inner .DisasterRecoveryConfigs.ListAuthorizationRulesNextAsync(nextLink, cancellation), WrapModel, true, cancellationToken)); }
///GENMHASH:2ED29FF482F2137640A1CA66925828A8:A1B832AC67AF06A35FD0BD5A16D29198 public async Task <IPagedCollection <IVirtualMachineExtensionImage> > ListByRegionAsync(string region, CancellationToken cancellationToken) { return(await PagedCollection <IVirtualMachineExtensionImage, IVirtualMachineExtensionImage> .LoadPage(async (cancellationToken1) => { var publisherCollection = await Publishers().ListByRegionAsync(region, cancellationToken); var collectionOfextenionTypeCollection = await Task.WhenAll(publisherCollection .Select(async(publisher) => await publisher.ExtensionTypes.ListAsync(true, cancellationToken))); var collectionOfextensionImageVersionCollection = await Task.WhenAll(collectionOfextenionTypeCollection .SelectMany(extensionTypeCollection => extensionTypeCollection.Select(async(extensionType) => await extensionType.Versions.ListAsync(true, cancellationToken)))); var extensionImageCollection = await Task.WhenAll(collectionOfextensionImageVersionCollection .SelectMany(extensionImageVersionCollection => extensionImageVersionCollection.Select(async(extensionVersion) => await extensionVersion.GetImageAsync(cancellationToken)))); return extensionImageCollection; }, image => image, cancellationToken)); }
public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IListContainerItems> > ListAsync(string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { IBlobContainersOperations client = this.Inner; ListContainerItemsInner listContainerItemsInner = await client.ListAsync(resourceGroupName, accountName); Func <CancellationToken, Task <IEnumerable <ListContainerItemsInner> > > func = async(cancellation) => { List <ListContainerItemsInner> listContainerItemsInners = new List <ListContainerItemsInner>(); listContainerItemsInners.Add((await client.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellation)).Body); return(listContainerItemsInners); }; return(await PagedCollection <IListContainerItems, ListContainerItemsInner> .LoadPage( func, inner => new ListContainerItemsImpl(inner, this.manager), cancellationToken)); }
///GENMHASH:2ED29FF482F2137640A1CA66925828A8:680F32185EB936C7B18624E07C3721F4 public async Task <IPagedCollection <IVirtualMachineImage> > ListByRegionAsync(string region, CancellationToken cancellationToken) { return(await PagedCollection <IVirtualMachineImage, IVirtualMachineImage> .LoadPage(async (cancellationToken1) => { var publisherCollection = await Publishers().ListByRegionAsync(region, cancellationToken); var collectionOfOfferCollection = await Task.WhenAll(publisherCollection .Select(async(publisher) => await publisher.Offers.ListAsync(true, cancellationToken))); var collectionOfSkuCollection = await Task.WhenAll(collectionOfOfferCollection .SelectMany(offerCollection => offerCollection.Select(async(offer) => await offer.Skus.ListAsync(true, cancellationToken)))); var collectionOfimageCollection = await Task.WhenAll(collectionOfSkuCollection .SelectMany(skuCollection => skuCollection.Select(async(sku) => await sku.Images.ListAsync(true, cancellationToken)))); var images = collectionOfimageCollection.SelectMany(imageCollection => imageCollection.Select(image => image)); return images; }, image => image, cancellationToken)); }
public async Task <IReadOnlyDictionary <string, Models.ReplicationRole> > ListLinkedServersAsync(CancellationToken cancellationToken) { var result = new Dictionary <string, ReplicationRole>(); var pagedCollection = await PagedCollection <RedisLinkedServerWithPropertiesInner, RedisLinkedServerWithPropertiesInner> .LoadPage( (ct) => this.Manager.Inner.LinkedServer.ListAsync( this.ResourceGroupName, this.Name, ct), this.Manager.Inner.LinkedServer.ListNextAsync, wrapModel : (inner) => inner, loadAllPages : true, cancellationToken : cancellationToken); foreach (var ls in pagedCollection) { result.Add(ls.Name, ls.ServerRole); } return(result); }
public override async Task <IPagedCollection <ICosmosDBAccount> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <ICosmosDBAccount, Models.DatabaseAccountGetResultsInner> .LoadPage(async (cancellation) => await this.Manager.Inner.DatabaseAccounts.ListAsync(cancellationToken), WrapModel, cancellationToken)); }
/// <return>An observable emits packet captures in this collection.</return> ///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:DBC1BFDB73D33E089DF6B74E82CCBAA9 public async Task <IPagedCollection <IExpressRouteCircuitPeering> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IExpressRouteCircuitPeering, ExpressRouteCircuitPeeringInner> .LoadPage( async (cancellation) => await Inner.ListAsync(parent.ResourceGroupName, parent.Name, cancellation), WrapModel, cancellationToken)); }
public async override Task <IPagedCollection <IExpressRouteCircuitPeering> > ListByParentAsync(string resourceGroupName, string parentName, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IExpressRouteCircuitPeering, ExpressRouteCircuitPeeringInner> .LoadPage( async (cancellation) => await Inner.ListAsync(resourceGroupName, parentName, cancellation), WrapModel, cancellationToken)); }
///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:FF27DF14BEE91BED69598A874F25301A public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IStorageUsage> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IStorageUsage, Usage> .LoadPage(this.manager.Inner.Usage.ListAsync, WrapModel, cancellationToken)); }
public async override Task <IPagedCollection <IGenericResource> > ListByResourceGroupAsync(string resourceGroupName, bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IGenericResource, GenericResourceInner> .LoadPage( async (cancellation) => await Manager.Inner.Resources.ListByResourceGroupAsync(resourceGroupName, cancellationToken: cancellation), Manager.Inner.Resources.ListByResourceGroupNextAsync, WrapModel, loadAllPages, cancellationToken)); }
///GENMHASH:2ED29FF482F2137640A1CA66925828A8:FDF416505062C8F51CBE651942F05701 public async Task <IPagedCollection <Microsoft.Azure.Management.Compute.Fluent.IVirtualMachinePublisher> > ListByRegionAsync(string regionName, CancellationToken cancellationToken) { return(await PagedCollection <IVirtualMachinePublisher, VirtualMachineImageResourceInner> .LoadPage( async (cancellation) => await innerCollection.ListPublishersAsync(regionName, cancellation), WrapModel, cancellationToken)); }
///GENMHASH:B1063F1468B82C4392D0981460DF0EE4:C67291A5B3D38919C766B2615DDE1A88 public async Task <IEnumerable <Models.Operation> > ListOperationsAsync(CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <Models.Operation, Models.Operation> .LoadPage( async (cancellation) => await this.Manager.Inner.Operations.ListAsync(cancellation), this.Manager.Inner.Operations.ListNextAsync, (i) => i, true, cancellationToken)); }
///GENMHASH:21EB605E5FAA6C13D208A1A4CE8C136D:67032F38ECA8CBB405D18A2581390A32 public async override Task <IPagedCollection <ISqlFirewallRule> > ListByParentAsync(string resourceGroupName, string parentName, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <ISqlFirewallRule, ServerFirewallRuleInner> .LoadPage( async (cancellation) => await Inner.ListFirewallRulesAsync(resourceGroupName, parentName, cancellation), WrapModel, cancellationToken)); }
///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:11D194372CF16B8AF88A146421D05EAF public async Task <IPagedCollection <IComputeSku> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IComputeSku, ResourceSku> .LoadPage(this.Inner().ListAsync, this.Inner().ListNextAsync, this.WrapModel, loadAllPages, cancellationToken)); }
public async Task <IPagedCollection <IVirtualMachineExtensionImageType> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IVirtualMachineExtensionImageType, VirtualMachineExtensionImageInner> .LoadPage( async (cancellation) => await this.client.ListTypesAsync(this.publisher.Region.Name, this.publisher.Name, cancellation), WrapModel, cancellationToken)); }
///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:E2A759DF4967EC9040B5D1B63FCC33D5 public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <ISecret> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <ISecret, SecretItem> .LoadPage(c => inner.GetSecretsAsync(vault.VaultUri, null, c), inner.GetSecretsNextAsync, WrapModel, loadAllPages, cancellationToken)); }
///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:1F35F9CAEDCC9462F8462E3AE050584D public async Task <IPagedCollection <INetworkPeering> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <INetworkPeering, VirtualNetworkPeeringInner> .LoadPage( async (cancellation) => await Inner.ListAsync(network.ResourceGroupName, network.Name, cancellation), WrapModel, cancellationToken)); }
public override async Task <IPagedCollection <ICosmosDBAccount> > ListByResourceGroupAsync(string resourceGroupName, bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <ICosmosDBAccount, Models.DatabaseAccountInner> .LoadPage(async (cancellation) => await this.Manager.Inner.DatabaseAccounts.ListByResourceGroupAsync(resourceGroupName, cancellationToken), WrapModel, cancellationToken)); }
///GENMHASH:21EB605E5FAA6C13D208A1A4CE8C136D:7F70CB1AA5FE23578E360B95D229A1C6 public async override Task <IPagedCollection <ISqlElasticPool> > ListByParentAsync(string resourceGroupName, string parentName, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <ISqlElasticPool, ElasticPoolInner> .LoadPage( async (cancellation) => await Inner.ListByServerAsync(resourceGroupName, parentName, cancellation), WrapModel, cancellationToken)); }
///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:11D194372CF16B8AF88A146421D05EAF public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IStorageSku> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IStorageSku, Sku> .LoadPage(async (cancellation) => await this.manager.Inner.Skus.ListAsync(cancellationToken: cancellation), WrapModel, cancellationToken)); }
public async Task <IPagedCollection <IVirtualMachineSku> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IVirtualMachineSku, VirtualMachineImageResourceInner> .LoadPage( async (cancellation) => await innerCollection.ListSkusAsync(offer.Region.Name, offer.Publisher.Name, offer.Name, cancellation), WrapModel, cancellationToken)); }