/// <summary> /// Patches this dataset with fields in the specified resource. /// </summary> /// <remarks> /// This method delegates to <see cref="BigQueryClient.PatchDataset(DatasetReference, Dataset, PatchDatasetOptions)"/>. /// </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 dataset.</returns> public BigQueryDataset Patch(Dataset resource, bool matchETag, PatchDatasetOptions options = null) { if (matchETag) { resource.ETag = Resource.ETag; } return(_client.PatchDataset(Reference, resource, options)); }