Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1ResourceAccessSpec
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1ResourceAccessSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb
Overview
ResourceAccessSpec holds the access control configuration to be enforced on the resources, for example, Cloud Storage bucket, BigQuery dataset, BigQuery table.
Instance Attribute Summary collapse
-
#owners ⇒ Array<String>
Optional.
-
#readers ⇒ Array<String>
Optional.
-
#writers ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1ResourceAccessSpec
constructor
A new instance of GoogleCloudDataplexV1ResourceAccessSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1ResourceAccessSpec
Returns a new instance of GoogleCloudDataplexV1ResourceAccessSpec.
6535 6536 6537 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6535 def initialize(**args) update!(**args) end |
Instance Attribute Details
#owners ⇒ Array<String>
Optional. The set of principals to be granted owner role on the resource.
Corresponds to the JSON property owners
6521 6522 6523 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6521 def owners @owners end |
#readers ⇒ Array<String>
Optional. The format of strings follows the pattern followed by IAM in the
bindings. user:email
, serviceAccount:email
group:email
. The set of
principals to be granted reader role on the resource.
Corresponds to the JSON property readers
6528 6529 6530 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6528 def readers @readers end |
#writers ⇒ Array<String>
Optional. The set of principals to be granted writer role on the resource.
Corresponds to the JSON property writers
6533 6534 6535 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6533 def writers @writers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6540 6541 6542 6543 6544 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6540 def update!(**args) @owners = args[:owners] if args.key?(:owners) @readers = args[:readers] if args.key?(:readers) @writers = args[:writers] if args.key?(:writers) end |