Exemplo n.º 1
0
 /// <summary>
 /// Updates this table to match the specified resource.
 /// </summary>
 /// <remarks>
 /// This method delegates to <see cref="BigQueryClient.UpdateTable(TableReference, Table, UpdateTableOptions)"/>.
 /// A simple way of updating the table is to modify <see cref="Resource"/> and then call this method with no arguments.
 /// This is convenient, but it's important to understand that modifying <see cref="Resource"/> in this way leaves this object
 /// in an unusual state - it represents "the table as it was when fetched, but then modified locally". For example, the etag
 /// will be the original etag, rather than the one associated with the updated table. To avoid this causing confusion,
 /// we recommend only taking this approach if the object will not be used afterwards. Use the value returned by this method
 /// as the new, self-consistent representation of the table.
 /// </remarks>
 /// <param name="resource">The resource to update with. If null, the <see cref="Resource"/> property is
 /// used.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <returns>The updated table.</returns>
 public BigQueryTable Update(Table resource = null, UpdateTableOptions options = null) =>
 _client.UpdateTable(Reference, resource ?? Resource, options);