Class: Google::Apis::BigtableadminV2::Modification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigtableadmin_v2/classes.rb,
generated/google/apis/bigtableadmin_v2/representations.rb,
generated/google/apis/bigtableadmin_v2/representations.rb

Overview

A create, update, or delete of a particular column family.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Modification

Returns a new instance of Modification.



1192
1193
1194
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1192

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#createGoogle::Apis::BigtableadminV2::ColumnFamily

A set of columns within a table which share a common configuration. Corresponds to the JSON property create



1173
1174
1175
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1173

def create
  @create
end

#dropBoolean Also known as: drop?

Drop (delete) the column family with the given ID, or fail if no such family exists. Corresponds to the JSON property drop

Returns:

  • (Boolean)


1179
1180
1181
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1179

def drop
  @drop
end

#idString

The ID of the column family to be modified. Corresponds to the JSON property id

Returns:

  • (String)


1185
1186
1187
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1185

def id
  @id
end

#updateGoogle::Apis::BigtableadminV2::ColumnFamily

A set of columns within a table which share a common configuration. Corresponds to the JSON property update



1190
1191
1192
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1190

def update
  @update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1197
1198
1199
1200
1201
1202
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1197

def update!(**args)
  @create = args[:create] if args.key?(:create)
  @drop = args[:drop] if args.key?(:drop)
  @id = args[:id] if args.key?(:id)
  @update = args[:update] if args.key?(:update)
end