class Google::Apis::BigqueryV2::Dataset::Access

Attributes

domain[RW]
Pick one

A domain to grant access to. Any users signed in with the domain

specified will be granted the specified access. Example: “example.com”. Corresponds to the JSON property `domain` @return [String]

group_by_email[RW]
Pick one

An email address of a Google Group to grant access to.

Corresponds to the JSON property `groupByEmail` @return [String]

role[RW]
Required

Describes the rights granted to the user specified by the other

member of the access object. The following string values are supported: READER, WRITER, OWNER. Corresponds to the JSON property `role` @return [String]

special_group[RW]
Pick one

A special group to grant access to. Possible values include:

projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Corresponds to the JSON property `specialGroup` @return [String]

user_by_email[RW]
Pick one

An email address of a user to grant access to. For example: fred@

example.com. Corresponds to the JSON property `userByEmail` @return [String]

view[RW]
Pick one

A view from a different dataset to grant access to. Queries

executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. Corresponds to the JSON property `view` @return [Google::Apis::BigqueryV2::TableReference]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/bigquery_v2/classes.rb, line 411
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/bigquery_v2/classes.rb, line 416
def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @group_by_email = args[:group_by_email] if args.key?(:group_by_email)
  @role = args[:role] if args.key?(:role)
  @special_group = args[:special_group] if args.key?(:special_group)
  @user_by_email = args[:user_by_email] if args.key?(:user_by_email)
  @view = args[:view] if args.key?(:view)
end