Class: Google::Apis::BigqueryV2::DatasetAccessEntry
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::DatasetAccessEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Grants all resources of particular types in a particular dataset read access to the current dataset. Similar to how individually authorized views work, updates to any resource granted through its dataset (including creation of new resources) requires read permission to referenced resources, plus write permission to the authorizing dataset.
Instance Attribute Summary collapse
-
#dataset ⇒ Google::Apis::BigqueryV2::DatasetReference
The dataset this entry applies to Corresponds to the JSON property
dataset. -
#target_types ⇒ Array<String>
Which resources in the dataset this entry applies to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatasetAccessEntry
constructor
A new instance of DatasetAccessEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatasetAccessEntry
Returns a new instance of DatasetAccessEntry.
2074 2075 2076 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2074 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dataset ⇒ Google::Apis::BigqueryV2::DatasetReference
The dataset this entry applies to
Corresponds to the JSON property dataset
2066 2067 2068 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2066 def dataset @dataset end |
#target_types ⇒ Array<String>
Which resources in the dataset this entry applies to. Currently, only views
are supported, but additional target types may be added in the future.
Corresponds to the JSON property targetTypes
2072 2073 2074 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2072 def target_types @target_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2079 2080 2081 2082 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2079 def update!(**args) @dataset = args[:dataset] if args.key?(:dataset) @target_types = args[:target_types] if args.key?(:target_types) end |