/// <inheritdoc />
        public override void DeleteDataset(DatasetReference datasetReference, DeleteDatasetOptions options = null)
        {
            GaxPreconditions.CheckNotNull(datasetReference, nameof(datasetReference));
            var request = Service.Datasets.Delete(datasetReference.ProjectId, datasetReference.DatasetId);

            options?.ModifyRequest(request);
            request.Execute();
        }
Esempio n. 2
0
 /// <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(CancellationToken))
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 /// <summary>
 /// Asynchronously deletes the specified dataset within the given project.
 /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="DeleteDatasetAsync(DatasetReference,DeleteDatasetOptions,CancellationToken)"/>.
 /// </summary>
 /// <param name="projectId">The project ID. Must not be null.</param>
 /// <param name="datasetId">The dataset ID. 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(string projectId, string datasetId, DeleteDatasetOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) =>
 DeleteDatasetAsync(GetDatasetReference(projectId, datasetId), options, cancellationToken);
Esempio n. 4
0
 /// <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();
 }
Esempio n. 5
0
 /// <summary>
 /// Deletes the specified dataset within the given project.
 /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="DeleteDataset(DatasetReference,DeleteDatasetOptions)"/>.
 /// </summary>
 /// <param name="projectId">The project ID. Must not be null.</param>
 /// <param name="datasetId">The dataset ID. 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(string projectId, string datasetId, DeleteDatasetOptions options = null) =>
 DeleteDataset(GetDatasetReference(projectId, datasetId), options);
        /// <inheritdoc />
        public override async Task DeleteDatasetAsync(DatasetReference datasetReference, DeleteDatasetOptions options = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            GaxPreconditions.CheckNotNull(datasetReference, nameof(datasetReference));
            var request = Service.Datasets.Delete(datasetReference.ProjectId, datasetReference.DatasetId);

            options?.ModifyRequest(request);
            await request.ExecuteAsync(cancellationToken).ConfigureAwait(false);
        }
 /// <summary>
 /// Deletes this dataset.
 /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="BigQueryClient.DeleteDatasetAsync(DatasetReference, DeleteDatasetOptions, CancellationToken)"/>.
 /// </summary>
 /// <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 Task DeleteAsync(DeleteDatasetOptions options = null, CancellationToken cancellationToken = default) =>
 _client.DeleteDatasetAsync(Reference, options, cancellationToken);
 /// <summary>
 /// Deletes this dataset.
 /// This method just creates a <see cref="DatasetReference"/> and delegates to <see cref="BigQueryClient.DeleteDataset(DatasetReference, DeleteDatasetOptions)"/>.
 /// </summary>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public void Delete(DeleteDatasetOptions options = null) => _client.DeleteDataset(Reference, options);
        private DeleteRequest CreateDeleteDatasetRequest(DatasetReference datasetReference, DeleteDatasetOptions options)
        {
            GaxPreconditions.CheckNotNull(datasetReference, nameof(datasetReference));
            var request = Service.Datasets.Delete(datasetReference.ProjectId, datasetReference.DatasetId);

            options?.ModifyRequest(request);
            return(request);
        }
 /// <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 void DeleteDataset(DatasetReference datasetReference, DeleteDatasetOptions options = null)
        {
            var request = CreateDeleteDatasetRequest(datasetReference, options);

            request.Execute();
        }