This repository has been archived by the owner on Jan 27, 2022. It is now read-only.
forked from googleapis/google-cloud-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bigquery: support update of Dataset.DefaultTableExpiration
Allow users to change or delete the DefaultTableExpiration property of a Dataset. We have to distinguish "do not update" from "delete". To do so, we make an optional type for Duration, interpret the default value (nil) as "do not update", and treat a zero duration (otherwise illegal) as "delete". Note that the bq command-line tool makes the same choice: you write bq update --default_table_expiration 0 to delete. We also do this in storage.ObjectHandle.Update, where we have a Metadata field that is a map. If the map is nil, nothing happens; if you set it to an empty map, the metadata is deleted. Change-Id: I3ffdf580cd84c12ea2527d49ddd61dc0b04a53c7 Reviewed-on: https://code-review.googlesource.com/15570 Reviewed-by: kokoro <[email protected]> Reviewed-by: Michael Darakananda <[email protected]>
- Loading branch information
Showing
4 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters