/// <summary> /// Lists the tables in a dataset. /// </summary> /// <param name="datasetReference">A fully-qualified identifier for the dataset. Must not be null.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>A sequence of tables within the dataset.</returns> public virtual IPagedEnumerable <TableList, BigqueryTable> ListTables(DatasetReference datasetReference, ListTablesOptions options = null) { throw new NotImplementedException(); }
/// <summary> /// Lists the tables in a dataset specified by dataset ID, where the dataset is in this client's project. /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="ListTables(DatasetReference, ListTablesOptions)"/>. /// </summary> /// <param name="datasetId">The ID of the dataset to list tables from. Must not be null.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>A sequence of tables within the dataset.</returns> public virtual IPagedEnumerable <TableList, BigqueryTable> ListTables(string datasetId, ListTablesOptions options = null) => ListTables(GetDatasetReference(datasetId), options);
/// <summary> /// Lists the tables in a dataset specified by project ID and dataset ID. /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="ListTablesAsync(DatasetReference, ListTablesOptions)"/>. /// </summary> /// <param name="projectId">The ID of the project containing the dataset. Must not be null.</param> /// <param name="datasetId">The ID of the dataset to list tables from. Must not be null.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>An asynchronous sequence of tables within the dataset.</returns> public virtual IPagedAsyncEnumerable <TableList, BigqueryTable> ListTablesAsync(string projectId, string datasetId, ListTablesOptions options = null) => ListTablesAsync(GetDatasetReference(projectId, datasetId), options);
/// <summary> /// Asynchronously lists the tables within this dataset. /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="BigqueryClient.ListTablesAsync(DatasetReference, ListTablesOptions)"/>. /// </summary> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>An asynchronous sequence of tables within this dataset.</returns> public IPagedAsyncEnumerable <TableList, BigqueryTable> ListTablesAsync(ListTablesOptions options = null) => _client.ListTablesAsync(Reference, options);
/// <inheritdoc /> private ListRequest CreateListTablesRequest(DatasetReference datasetReference, ListTablesOptions options) { var request = Service.Tables.List(datasetReference.ProjectId, datasetReference.DatasetId); options?.ModifyRequest(request); return(request); }
/// <inheritdoc /> public override IPagedEnumerable <TableList, BigqueryTable> ListTables(DatasetReference datasetReference, ListTablesOptions options = null) { GaxPreconditions.CheckNotNull(datasetReference, nameof(datasetReference)); var pageManager = new TablePageManager(this); return(new PagedEnumerable <ListRequest, TableList, BigqueryTable>( () => CreateListTablesRequest(datasetReference, options), pageManager)); }