/// <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();
        }
コード例 #3
0
 /// <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();
コード例 #4
0
 /// <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);
コード例 #5
0
 /// <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();
コード例 #6
0
 /// <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
ファイル: BigQueryTable.cs プロジェクト: greggaba/GCDotNet
 /// <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
ファイル: BigQueryTable.cs プロジェクト: greggaba/GCDotNet
 /// <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);
コード例 #9
0
        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);
        }
コード例 #10
0
 /// <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);
 }
コード例 #11
0
        /// <inheritdoc />
        public override void DeleteTable(TableReference tableReference, DeleteTableOptions options = null)
        {
            var request = CreateDeleteTableRequest(tableReference, options);

            request.Execute();
        }