/// <inheritdoc />
        public override async Task DeleteTableAsync(TableReference tableReference, DeleteTableOptions options = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            GaxPreconditions.CheckNotNull(tableReference, nameof(tableReference));
            var request = Service.Tables.Delete(tableReference.ProjectId, tableReference.DatasetId, tableReference.TableId);

            options?.ModifyRequest(request);
            await request.ExecuteAsync(cancellationToken).ConfigureAwait(false);
        }
        /// <inheritdoc />
        public override void DeleteTable(TableReference tableReference, DeleteTableOptions options = null)
        {
            GaxPreconditions.CheckNotNull(tableReference, nameof(tableReference));
            var request = Service.Tables.Delete(tableReference.ProjectId, tableReference.DatasetId, tableReference.TableId);

            options?.ModifyRequest(request);
            request.Execute();
        }
 /// <summary>
 /// Asynchronously deletes the specified table.
 /// </summary>
 /// <param name="tableReference">A fully-qualified identifier for the table. 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 DeleteTableAsync(TableReference tableReference, DeleteTableOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) =>
 throw new NotImplementedException();
 /// <summary>
 /// Asynchronously deletes the specified table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="DeleteTableAsync(TableReference, DeleteTableOptions, 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="tableId">The table 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 DeleteTableAsync(string projectId, string datasetId, string tableId, DeleteTableOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) =>
 DeleteTableAsync(GetTableReference(projectId, datasetId, tableId), options, cancellationToken);
 /// <summary>
 /// Deletes the specified table.
 /// </summary>
 /// <param name="tableReference">A fully-qualified identifier for the table. 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 DeleteTable(TableReference tableReference, DeleteTableOptions options = null) =>
 throw new NotImplementedException();
 /// <summary>
 /// Deletes the specified table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="DeleteTable(TableReference, DeleteTableOptions)"/>.
 /// </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="tableId">The table 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 DeleteTable(string projectId, string datasetId, string tableId, DeleteTableOptions options = null) =>
 DeleteTable(GetTableReference(projectId, datasetId, tableId), options);
예제 #7
0
 /// <summary>
 /// Asynchronously deletes this table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.DeleteTableAsync(TableReference, DeleteTableOptions, 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(DeleteTableOptions options = null, CancellationToken cancellationToken = default) =>
 _client.DeleteTableAsync(Reference, options, cancellationToken);
예제 #8
0
 /// <summary>
 /// Deletes this table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.DeleteTable(TableReference, DeleteTableOptions)"/>.
 /// </summary>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public void Delete(DeleteTableOptions options = null) => _client.DeleteTable(Reference, options);
        private DeleteRequest CreateDeleteTableRequest(TableReference tableReference, DeleteTableOptions options)
        {
            GaxPreconditions.CheckNotNull(tableReference, nameof(tableReference));
            var request = Service.Tables.Delete(tableReference.ProjectId, tableReference.DatasetId, tableReference.TableId);

            request.ModifyRequest += _versionHeaderAction;
            options?.ModifyRequest(request);
            return(request);
        }
 /// <inheritdoc />
 public override async Task DeleteTableAsync(TableReference tableReference, DeleteTableOptions options = null, CancellationToken cancellationToken = default)
 {
     var request = CreateDeleteTableRequest(tableReference, options);
     await request.ExecuteAsync(cancellationToken).ConfigureAwait(false);
 }
        /// <inheritdoc />
        public override void DeleteTable(TableReference tableReference, DeleteTableOptions options = null)
        {
            var request = CreateDeleteTableRequest(tableReference, options);

            request.Execute();
        }