Exemplo n.º 1
0
 /// <summary>
 /// Patches this table with fields in the specified resource.
 /// </summary>
 /// <remarks>
 /// This method delegates to <see cref="BigQueryClient.PatchTable(TableReference, Table, PatchTableOptions)"/>.
 /// </remarks>
 /// <param name="resource">The resource to patch with. Must not be null.</param>
 /// <param name="matchETag">If true, the etag from <see cref="Resource"/> is propagated into <paramref name="resource"/> for
 /// optimistic concurrency. Otherwise, <paramref name="resource"/> is left unchanged.</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 Patch(Table resource, bool matchETag, PatchTableOptions options = null)
 {
     if (matchETag)
     {
         resource.ETag = Resource.ETag;
     }
     return(_client.PatchTable(Reference, resource, options));
 }