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