示例#1
0
 public async override Task <IPagedCollection <IFunctionDeploymentSlot> > ListByParentAsync(string resourceGroupName, string parentName, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IFunctionDeploymentSlot, SiteInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await Inner.ListSlotsAsync(resourceGroupName, parentName, cancellation),
                async (nextLink, cancellation) => await Inner.ListSlotsNextAsync(nextLink, cancellation),
                async (inner, cancellation) => await PopulateModelAsync(inner, parent, cancellation), true, cancellationToken));
 }
示例#2
0
 public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IActiveDirectoryApplication> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IActiveDirectoryApplication, ApplicationInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await Inner.ListAsync(null, cancellation),
                Inner.ListNextAsync,
                async (inner, cancellation) => await new ActiveDirectoryApplicationImpl(inner, manager).RefreshCredentialsAsync(cancellation),
                loadAllPages, cancellationToken));
 }
 public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IServicePrincipal> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IServicePrincipal, ServicePrincipalInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await innerCollection.ListAsync(null, cancellation),
                innerCollection.ListNextAsync,
                async (inner, cancellation) => await ((ServicePrincipalImpl)WrapModel(inner)).RefreshCredentialsAsync(cancellation),
                loadAllPages, cancellationToken));
 }
 ///GENMHASH:7F5BEBF638B801886F5E13E6CCFF6A4E:9F0C4A17AF76F97938CE0C165A9A049A
 public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IKey> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IKey, KeyItem> .LoadPageWithWrapModelAsync(
                async c => await inner.GetKeysAsync(vault.VaultUri, null, c),
                inner.GetKeysNextAsync,
                async (item, c) => WrapModel(await inner.GetKeyAsync(item.Identifier.Identifier, c)),
                loadAllPages, cancellationToken));
 }
示例#5
0
 ///GENMHASH:04D22E8EB0595D779F54F42772D54010:BC657ACB9999414D5594C93B0EE0C86E
 public async Task <Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection <IWebhook> > ListAsync(string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IWebhook, Models.WebhookInner> .LoadPageWithWrapModelAsync(async (cancellation) =>
     {
         return await this.containerRegistryManager.Inner.Webhooks.ListAsync(resourceGroupName, registryName, cancellationToken: cancellation);
     },
                                                                                              this.containerRegistryManager.Inner.Webhooks.ListNextAsync,
                                                                                              async (webhookInner, cancellation) => await WrapModelAsync(webhookInner, cancellationToken: cancellation),
                                                                                              true, cancellationToken));
 }
        public override async Task <IPagedCollection <IFunctionApp> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
        {
            var collection = await PagedCollection <IFunctionApp, SiteInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await Inner.ListAsync(cancellation),
                Inner.ListNextAsync,
                async (inner, cancellation) => await PopulateModelAsync(inner, cancellation),
                loadAllPages, cancellationToken);

            return(PagedCollection <IFunctionApp, SiteInner> .CreateFromEnumerable(collection.Where(this.FilterFunctionApp)));
        }
示例#7
0
        public override async Task <IPagedCollection <IWebApp> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
        {
            var collection = await PagedCollection <IWebApp, SiteInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await Inner.ListAsync(cancellation),
                Inner.ListNextAsync,
                async (inner, cancellation) => await PopulateModelAsync(inner, cancellation),
                loadAllPages, cancellationToken);

            return(PagedCollection <IWebApp, SiteInner> .CreateFromEnumerable(collection.Where(w => w.Inner.Kind != null && w.Inner.Kind.Split(new char[] { ',' }).Contains("app"))));
        }
示例#8
0
        public override async Task <IPagedCollection <IWebApp> > ListByResourceGroupAsync(string resourceGroupName, bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
        {
            var collection = await PagedCollection <IWebApp, SiteInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await Inner.ListByResourceGroupAsync(resourceGroupName, cancellationToken: cancellation),
                Inner.ListByResourceGroupNextAsync,
                async (inner, cancellation) => await PopulateModelAsync(inner, cancellation),
                loadAllPages, cancellationToken);

            return(PagedCollection <IWebApp, SiteInner> .CreateFromEnumerable(collection.Where(this.FilterWebApp)));
        }
        public override async Task <IPagedCollection <IFunctionApp> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
        {
            var collection = await PagedCollection <IFunctionApp, SiteInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await Inner.ListAsync(cancellation),
                Inner.ListNextAsync,
                async (inner, cancellation) => await PopulateModelAsync(inner, cancellation),
                loadAllPages, cancellationToken);

            return(PagedCollection <IFunctionApp, SiteInner> .CreateFromEnumerable(collection.Where(w => "functionapp".Equals(w.Inner.Kind, StringComparison.OrdinalIgnoreCase))));
        }
 ///GENMHASH:D4A7A02E673639C444C53A8D52EFA5E3:61064B2A2392BBDB85E525979D4D0BED
 public async Task <IPagedCollection <Microsoft.Azure.Management.KeyVault.Fluent.IKey> > ListVersionsAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IKey, KeyItem> .LoadPageWithWrapModelAsync(
                c => vault.Client.GetKeyVersionsAsync(vault.VaultUri, Name, null, c),
                vault.Client.GetKeyVersionsNextAsync,
                async (item, c) =>
     {
         var bundle = await vault.Client.GetKeyAsync(item.Identifier.Identifier, c);
         return new KeyImpl(bundle.KeyIdentifier.Name, bundle, vault);
     }, true, cancellationToken));
 }
示例#11
0
 public override async Task <IPagedCollection <IContainerGroup> > ListByResourceGroupAsync(string resourceGroupName, bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IContainerGroup, Models.ContainerGroupInner> .LoadPageWithWrapModelAsync(
                async (cancellation) => await ListInnerByGroupAsync(resourceGroupName, cancellation),
                ListInnerByGroupNextAsync, WrapModelForListAsync, loadAllPages, cancellationToken));
 }
示例#12
0
 public override async Task <IPagedCollection <IContainerGroup> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <IContainerGroup, Models.ContainerGroupInner> .LoadPageWithWrapModelAsync(ListInnerAsync, ListInnerNextAsync, WrapModelForListAsync, loadAllPages, cancellationToken));
 }