Class: Google::Apis::BigtableadminV2::AuthorizedView
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::AuthorizedView
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
An Authorized View of a Cloud Bigtable Table.
Instance Attribute Summary collapse
-
#deletion_protection ⇒ Boolean
(also: #deletion_protection?)
Set to true to make the AuthorizedView protected against deletion.
-
#etag ⇒ String
The etag for this AuthorizedView.
-
#name ⇒ String
Identifier.
-
#subset_view ⇒ Google::Apis::BigtableadminV2::GoogleBigtableAdminV2AuthorizedViewSubsetView
Defines a simple AuthorizedView that is a subset of the underlying Table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthorizedView
constructor
A new instance of AuthorizedView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthorizedView
Returns a new instance of AuthorizedView.
204 205 206 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 204 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deletion_protection ⇒ Boolean Also known as: deletion_protection?
Set to true to make the AuthorizedView protected against deletion. The parent
Table and containing Instance cannot be deleted if an AuthorizedView has this
bit set.
Corresponds to the JSON property deletionProtection
184 185 186 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 184 def deletion_protection @deletion_protection end |
#etag ⇒ String
The etag for this AuthorizedView. If this is provided on update, it must match
the server's etag. The server returns ABORTED error on a mismatched etag.
Corresponds to the JSON property etag
191 192 193 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 191 def etag @etag end |
#name ⇒ String
Identifier. The name of this AuthorizedView. Values are of the form projects/
project/instances/
instance/tables/
table/authorizedViews/
authorized_view`
Corresponds to the JSON property
name`
197 198 199 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 197 def name @name end |
#subset_view ⇒ Google::Apis::BigtableadminV2::GoogleBigtableAdminV2AuthorizedViewSubsetView
Defines a simple AuthorizedView that is a subset of the underlying Table.
Corresponds to the JSON property subsetView
202 203 204 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 202 def subset_view @subset_view end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
209 210 211 212 213 214 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 209 def update!(**args) @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @subset_view = args[:subset_view] if args.key?(:subset_view) end |