Class: Google::Apis::BigqueryV2::Dataset::Access
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::BigqueryV2::Dataset::Access
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
 generated/google/apis/bigquery_v2/representations.rb,
 generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #domain  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Pick one] A domain to grant access to. 
- 
  
    
      #group_by_email  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Pick one] An email address of a Google Group to grant access to. 
- 
  
    
      #role  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] Describes the rights granted to the user specified by the other member of the access object. 
- 
  
    
      #special_group  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Pick one] A special group to grant access to. 
- 
  
    
      #user_by_email  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Pick one] An email address of a user to grant access to. 
- 
  
    
      #view  ⇒ Google::Apis::BigqueryV2::TableReference 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Pick one] A view from a different dataset to grant access to. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Access 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Access. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Access
Returns a new instance of Access
| 450 451 452 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 450 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#domain ⇒ String
[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
| 413 414 415 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 413 def domain @domain end | 
#group_by_email ⇒ String
[Pick one] An email address of a Google Group to grant access to.
Corresponds to the JSON property groupByEmail
| 418 419 420 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 418 def group_by_email @group_by_email end | 
#role ⇒ String
[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
| 425 426 427 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 425 def role @role end | 
#special_group ⇒ String
[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
| 433 434 435 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 433 def special_group @special_group end | 
#user_by_email ⇒ String
[Pick one] An email address of a user to grant access to. For example: fred@
example.com.
Corresponds to the JSON property userByEmail
| 439 440 441 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 439 def user_by_email @user_by_email end | 
#view ⇒ Google::Apis::BigqueryV2::TableReference
[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
| 448 449 450 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 448 def view @view end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 455 456 457 458 459 460 461 462 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 455 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 |