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

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Modification

Returns a new instance of Modification.



1558
1559
1560
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1558

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



1539
1540
1541
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1539

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)


1545
1546
1547
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1545

def drop
  @drop
end

#idString

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

Returns:

  • (String)


1551
1552
1553
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1551

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



1556
1557
1558
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1556

def update
  @update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1563
1564
1565
1566
1567
1568
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1563

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