Class: Google::Apis::BigtableadminV2::AuthorizedView

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_protectionBoolean 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

Returns:

  • (Boolean)


184
185
186
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 184

def deletion_protection
  @deletion_protection
end

#etagString

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

Returns:

  • (String)


191
192
193
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 191

def etag
  @etag
end

#nameString

Identifier. The name of this AuthorizedView. Values are of the form projects/ project/instances/instance/tables/table/authorizedViews/authorized_view` Corresponds to the JSON propertyname`

Returns:

  • (String)


197
198
199
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 197

def name
  @name
end

#subset_viewGoogle::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