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

BigQuery Access Control Settings #202

Closed
5 tasks done
blowmage opened this issue Aug 4, 2015 · 0 comments · Fixed by #257
Closed
5 tasks done

BigQuery Access Control Settings #202

blowmage opened this issue Aug 4, 2015 · 0 comments · Fixed by #257
Assignees
Labels
api: bigquery Issues related to the BigQuery API. 🚨 This issue needs some love. triage me I really want to be triaged.
Milestone

Comments

@blowmage
Copy link
Contributor

blowmage commented Aug 4, 2015

Display and update the access rules on a BigQuery table. The proposed API is:

  • Dataset#access getter
  • Dataset#access= setter
  • Dataset#access DSL with block
  • Project#create_dataset with access DSL block
  • Updated documentation

The access getter/setter will return and set the raw data as represented in the API. The access block will yield an access object that will enable easy configuration of the access rules:

dataset.access do |acl|
  acl.add_owner_group "owners@example.com"
  acl.add_writer_user "writer@example.com"
  acl.remove_writer_user "readers@example.com"
  acl.add_reader_special :all
  acl.add_reader_view other_dataset_view_object
end # All changes made in a single API call at the end of the block

The same DSL can be used when creating a new dataset:

bigquery.create_dataset "new-dataset" do |acl|
  acl.add_owner_group "owners@example.com"
  acl.add_writer_user "writer@example.com"
  acl.remove_writer_user "readers@example.com"
  acl.add_reader_special :all
  acl.add_reader_view other_dataset_view_object
end #=> New dataset object created with the access rules
@blowmage blowmage added the api: bigquery Issues related to the BigQuery API. label Aug 4, 2015
@blowmage blowmage self-assigned this Aug 20, 2015
@blowmage blowmage modified the milestone: 0.3.1 Aug 24, 2015
blowmage added a commit to blowmage/google-cloud-ruby that referenced this issue Sep 2, 2015
Allow dataset to get and set the access rules.
Allow access rules to be set using the Access DSL.

[refs googleapis#202]
blowmage added a commit to blowmage/google-cloud-ruby that referenced this issue Sep 2, 2015
quartzmo added a commit that referenced this issue Sep 2, 2015
Add BigQuery Access Control

[closes #202]
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
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. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants