Пример #1
0
        public IEnumerable <MSADLA.Models.JobInformation> JobList(AnalyticsAccount account,
                                                                  Microsoft.Rest.Azure.OData.ODataQuery <MSADLA.Models.JobInformation> odata_query, int top)
        {
            // Other parameters
            string opt_select = null;
            bool?  opt_count  = null;

            int item_count = 0;
            var page       = this.RestClient.Job.List(account.Name, odata_query, opt_select, opt_count);

            foreach (
                var job in
                RestUtil.EnumItemsInPages <MSADLA.Models.JobInformation>(page,
                                                                         p => this.RestClient.Job.ListNext(p.NextPageLink)))
            {
                yield return(job);

                item_count++;

                if ((top > 0) && (item_count >= top))
                {
                    break;
                }
            }
        }
Пример #2
0
        public IEnumerable <MSADL.Analytics.Models.StorageAccountInfo> ListStorageAccounts(AnalyticsAccount account)
        {
            var initial_page = this.RestClient.StorageAccounts.ListByAccount(account.ResourceGroup, account.Name);

            foreach (var acc in RestUtil.EnumItemsInPages(initial_page, p => this.RestClient.StorageAccounts.ListByAccountNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
Пример #3
0
        public IEnumerable <MSADL.Analytics.Models.StorageContainer> ListStorageContainers(AnalyticsAccount account, string storage_account)
        {
            var initial_page = this.RestClient.StorageAccounts.ListStorageContainers(account.Name, account.Name, storage_account);

            foreach (var acc in RestUtil.EnumItemsInPages(initial_page, p => this.RestClient.StorageAccounts.ListStorageContainersNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
Пример #4
0
        public IEnumerable <MSADLA.Models.DataLakeAnalyticsAccount> ListAccounts()
        {
            var initial_page = this.RestClient.Account.List();

            foreach (var acc in RestUtil.EnumItemsInPages(initial_page, p => this.RestClient.Account.ListNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
Пример #5
0
        public IEnumerable <MSADL.Analytics.Models.DataLakeAnalyticsAccount> ListAccounts(string rg)
        {
            var initial_page = this.RestClient.Account.ListByResourceGroup(rg);

            foreach (var acc in RestUtil.EnumItemsInPages(initial_page, p => this.RestClient.Account.ListByResourceGroupNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
Пример #6
0
        public IEnumerable <MSADLA.Models.SasTokenInfo> ListSasTokens(AdlClient.Models.AnalyticsAccountRef account, string storage_account, string container)
        {
            var initial_page = this.RestClient.StorageAccounts.ListSasTokens(account.ResourceGroup, account.Name, storage_account, container);

            foreach (var acc in RestUtil.EnumItemsInPages(initial_page, p => this.RestClient.StorageAccounts.ListSasTokensNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
        public IEnumerable <MSADLS.Models.DataLakeStoreAccount> ListAccountsByResourceGroup(string resource_group)
        {
            var page = this.RestClient.Account.ListByResourceGroup(resource_group);

            foreach (var acc in RestUtil.EnumItemsInPages(page,
                                                          p => this.RestClient.Account.ListByResourceGroupNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
Пример #8
0
        public IEnumerable <Microsoft.Azure.Management.DataLake.Store.Models.DataLakeStoreAccount> ListAccounts()
        {
            var page = this.RestClient.Account.List();

            foreach (var acc in RestUtil.EnumItemsInPages(page,
                                                          p => this.RestClient.Account.ListNext(p.NextPageLink)))
            {
                yield return(acc);
            }
        }
        public IEnumerable <MSADLA.Models.USqlTableStatistics> ListTableStatistics(AdlClient.Models.AnalyticsAccountRef account, string dbname, string schema, string tablename)
        {
            var oDataQuery = new MSODATA.ODataQuery <MSADLA.Models.USqlTableType>();

            var page = this.RestClient.Catalog.ListTableStatistics(account.Name, dbname, schema, tablename);

            foreach (var stats in RestUtil.EnumItemsInPages(page, p => this.RestClient.Catalog.ListTableStatisticsNext(p.NextPageLink)))
            {
                yield return(stats);
            }
        }
Пример #10
0
        public IEnumerable <MSADLA.Models.USqlTablePartition> ListTablePartitions(AnalyticsAccount account, string dbname, string schema, string tablename)
        {
            var oDataQuery = new Microsoft.Rest.Azure.OData.ODataQuery <MSADLA.Models.USqlTableType>();

            var page = this.RestClient.Catalog.ListTablePartitions(account.Name, dbname, schema, tablename);

            foreach (var part in RestUtil.EnumItemsInPages <MSADLA.Models.USqlTablePartition>(page, p => this.RestClient.Catalog.ListTablePartitionsNext(p.NextPageLink)))
            {
                yield return(part);
            }
        }
        public IEnumerable <MSADLA.Models.USqlSchema> ListSchemas(AdlClient.Models.AnalyticsAccountRef account, string dbname)
        {
            var    oDataQuery  = new MSODATA.ODataQuery <MSADLA.Models.USqlSchema>();
            string select_cols = null;
            bool?  count       = null;

            var page = this.RestClient.Catalog.ListSchemas(account.Name, dbname, oDataQuery, select_cols, count);

            foreach (var schema in RestUtil.EnumItemsInPages(page, p => this.RestClient.Catalog.ListSchemasNext(p.NextPageLink)))
            {
                yield return(schema);
            }
        }
Пример #12
0
        public IEnumerable <MSADLA.Models.USqlSchema> ListSchemas(AnalyticsAccount account, string dbname)
        {
            var    oDataQuery = new Microsoft.Rest.Azure.OData.ODataQuery <MSADLA.Models.USqlSchema>();
            string @select    = null;
            bool?  count      = null;

            var page = this.RestClient.Catalog.ListSchemas(account.Name, dbname, oDataQuery, @select, count);

            foreach (var schema in RestUtil.EnumItemsInPages <MSADLA.Models.USqlSchema>(page, p => this.RestClient.Catalog.ListSchemasNext(p.NextPageLink)))
            {
                yield return(schema);
            }
        }
Пример #13
0
        public IEnumerable <Microsoft.Azure.Management.DataLake.Analytics.Models.USqlView> ListViews(AnalyticsAccount account, string dbname, string schema)
        {
            var    oDataQuery = new Microsoft.Rest.Azure.OData.ODataQuery <Microsoft.Azure.Management.DataLake.Analytics.Models.USqlView>();
            string @select    = null;
            bool?  count      = null;


            var page = this.RestClient.Catalog.ListViews(account.Name, dbname, schema, oDataQuery, @select, count);

            foreach (var view in RestUtil.EnumItemsInPages <MSADLA.Models.USqlView>(page, p => this.RestClient.Catalog.ListViewsNext(p.NextPageLink)))
            {
                yield return(view);
            }
        }
Пример #14
0
        public IEnumerable <Microsoft.Azure.Management.DataLake.Analytics.Models.USqlExternalDataSource> ListExternalDatasources(AnalyticsAccount account, string dbname)
        {
            var oDataQuery = new Microsoft.Rest.Azure.OData.ODataQuery <MSADLA.Models.USqlExternalDataSource>();

            string @select = null;
            bool?  count   = null;

            var page = this.RestClient.Catalog.ListExternalDataSources(account.Name, dbname, oDataQuery, @select, count);

            foreach (var ds in RestUtil.EnumItemsInPages <MSADLA.Models.USqlExternalDataSource>(page, p => this.RestClient.Catalog.ListExternalDataSourcesNext(p.NextPageLink)))
            {
                yield return(ds);
            }
        }