/// <summary> /// Attempts to fetch the specified dataset, creating it if it doesn't exist. /// </summary> /// <param name="datasetReference">A fully-qualified identifier for the dataset. Must not be null.</param> /// <param name="getOptions">The options for the "get" operation. May be null, in which case defaults will be supplied.</param> /// <param name="createOptions">The options for the "create" operation. May be null, in which case defaults will be supplied.</param> /// <returns>The existing or new dataset.</returns> public virtual BigQueryDataset GetOrCreateDataset(DatasetReference datasetReference, GetDatasetOptions getOptions = null, CreateDatasetOptions createOptions = null) => throw new NotImplementedException();
/// <summary> /// Asynchronously attempts to fetch the specified dataset, creating it if it doesn't exist. /// </summary> /// <param name="datasetReference">A fully-qualified identifier for the dataset. Must not be null.</param> /// <param name="getOptions">The options for the "get" operation. May be null, in which case defaults will be supplied.</param> /// <param name="createOptions">The options for the "create" operation. May be null, in which case defaults will be supplied.</param> /// <param name="cancellationToken">The token to monitor for cancellation requests.</param> /// <returns>A task representing the asynchronous operation. When complete, the result is /// the existing or new dataset.</returns> public virtual Task <BigQueryDataset> GetOrCreateDatasetAsync(DatasetReference datasetReference, GetDatasetOptions getOptions = null, CreateDatasetOptions createOptions = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
/// <summary> /// Asynchronously patches the specified dataset with fields in the given resource. /// </summary> /// <remarks> /// If the resource contains an ETag, it is used for optimistic concurrency validation. /// </remarks> /// <param name="datasetReference">A fully-qualified identifier for the dataset. Must not be null.</param> /// <param name="resource">The dataset resource representation to use for the patch. Only fields present in the resource will be updated.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <param name="cancellationToken">The token to monitor for cancellation requests.</param> /// <returns>A task representing the asynchronous operation. When complete, the result is /// the updated dataset.</returns> public virtual Task <BigQueryDataset> PatchDatasetAsync(DatasetReference datasetReference, Dataset resource, PatchDatasetOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) => throw new NotImplementedException();
/// <summary> /// Creates the specified 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>The created dataset.</returns> public virtual BigQueryDataset CreateDataset(DatasetReference datasetReference, CreateDatasetOptions options = null) => throw new NotImplementedException();
/// <inheritdoc /> public override PagedAsyncEnumerable <TableList, BigQueryTable> ListTablesAsync(DatasetReference datasetReference, ListTablesOptions options = null) { GaxPreconditions.CheckNotNull(datasetReference, nameof(datasetReference)); var pageManager = new TablePageManager(this); return(new RestPagedAsyncEnumerable <ListRequest, TableList, BigQueryTable>( () => CreateListTablesRequest(datasetReference, options), pageManager)); }
/// <summary> /// Patches the specified dataset with fields in the given resource. /// </summary> /// <remarks> /// If the resource contains an ETag, it is used for optimistic concurrency validation. /// </remarks> /// <param name="datasetReference">A fully-qualified identifier for the dataset. Must not be null.</param> /// <param name="resource">The dataset resource representation to use for the patch. Only fields present in the resource will be updated.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>The updated dataset.</returns> public virtual BigQueryDataset PatchDataset(DatasetReference datasetReference, Dataset resource, PatchDatasetOptions options = null) => throw new NotImplementedException();
private static Dataset GetDataset(DatasetReference reference) => new Dataset { DatasetReference = reference };
/// <inheritdoc /> public override async Task DeleteDatasetAsync(DatasetReference datasetReference, DeleteDatasetOptions options = null, CancellationToken cancellationToken = default) { var request = CreateDeleteDatasetRequest(datasetReference, options); await request.ExecuteAsync(cancellationToken).ConfigureAwait(false); }
/// <inheritdoc /> public override async Task <BigQueryDataset> CreateDatasetAsync(DatasetReference datasetReference, CreateDatasetOptions options = null, CancellationToken cancellationToken = default) { var request = CreateInsertDatasetRequest(datasetReference, options); return(new BigQueryDataset(this, await request.ExecuteAsync(cancellationToken).ConfigureAwait(false))); }
/// <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 pages of tables within the dataset.</returns> public virtual IPagedEnumerable <TableList, BigqueryTable> ListTables(DatasetReference datasetReference, ListTablesOptions options = null) { throw new NotImplementedException(); }
/// <inheritdoc /> public override BigQueryDataset CreateDataset(DatasetReference datasetReference, CreateDatasetOptions options = null) { var request = CreateInsertDatasetRequest(datasetReference, options); return(new BigQueryDataset(this, request.Execute())); }
/// <inheritdoc /> public override BigQueryDataset GetDataset(DatasetReference datasetReference, GetDatasetOptions options = null) { var request = CreateGetDatasetRequest(datasetReference, options); return(new BigQueryDataset(this, CheckETag(request.Execute(), options?.ETag))); }
/// <inheritdoc /> public override BigQueryDataset PatchDataset(DatasetReference datasetReference, Dataset resource, PatchDatasetOptions options = null) { var request = CreatePatchDatasetRequest(datasetReference, resource, options); return(new BigQueryDataset(this, request.Execute())); }
/// <summary> /// Deletes the specified 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> public virtual void DeleteDataset(DatasetReference datasetReference, DeleteDatasetOptions options = null) => throw new NotImplementedException();
/// <summary> /// Initializes a new instance of the PowerQuerySink class. /// </summary> /// <param name="name">Transformation name.</param> /// <param name="description">Transformation description.</param> /// <param name="flowlet">Flowlet Reference</param> /// <param name="dataset">Dataset reference.</param> /// <param name="linkedService">Linked service reference.</param> /// <param name="schemaLinkedService">Schema linked service /// reference.</param> /// <param name="script">sink script.</param> public PowerQuerySink(string name, string description = default(string), DataFlowReference flowlet = default(DataFlowReference), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) : base(name, description, flowlet, dataset, linkedService, schemaLinkedService) { Script = script; CustomInit(); }
/// <summary> /// Asynchronously deletes the specified 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> /// <param name="cancellationToken">The token to monitor for cancellation requests.</param> /// <returns>A task representing the asynchronous operation.</returns> public virtual Task DeleteDatasetAsync(DatasetReference datasetReference, DeleteDatasetOptions options = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
/// <inheritdoc /> public override void DeleteDataset(DatasetReference datasetReference, DeleteDatasetOptions options = null) { var request = CreateDeleteDatasetRequest(datasetReference, options); request.Execute(); }