Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BigQuery Access Control #257

Merged
merged 9 commits into from
Sep 2, 2015
Merged

Conversation

blowmage
Copy link
Contributor

Work in progress.

[closes #202]

@blowmage blowmage added api: bigquery Issues related to the BigQuery API. in progress labels Aug 28, 2015
@blowmage blowmage added this to the 0.3.1 milestone Aug 28, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 28, 2015
Allow dataset to get and set the access rules.
Allow access rules to be set using the Access DSL.

[refs googleapis#202]
The use case here is that a view from a different project and/or dataset can be
granted access to the dataset's data. We want to allow the view to be either an
object or a string.
The table_ref_from_s helper method doesn't depend on the state of a Connection
instance object. Move to a class level method to make reuse easier.
Stop passing connection object to Dataset::Access because of this change.
@blowmage blowmage force-pushed the bigquery-access branch 2 times, most recently from 6b8856f to f3e3b70 Compare September 2, 2015 18:48
The default access rules should be used and modified when creating a new
dataset using the block syntax.
These are the changes suggested by @quartzmo when pairing on the docs. Thanks!
@quartzmo
Copy link
Member

quartzmo commented Sep 2, 2015

The dual mode setter/getter method Dataset#access is not my preference, but otherwise I love this and we'll stick with that design for now. I will borrow heavily from this PR for #217, Table#schema.

quartzmo added a commit that referenced this pull request Sep 2, 2015
Add BigQuery Access Control

[closes #202]
@quartzmo quartzmo merged commit e9815c6 into googleapis:master Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery Access Control Settings
3 participants