Class: Google::Apis::BigtableadminV2::Modification
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::Modification
- 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
-
#create ⇒ Google::Apis::BigtableadminV2::ColumnFamily
A set of columns within a table which share a common configuration.
-
#drop ⇒ Boolean
(also: #drop?)
Drop (delete) the column family with the given ID, or fail if no such family exists.
-
#id ⇒ String
The ID of the column family to be modified.
-
#update ⇒ Google::Apis::BigtableadminV2::ColumnFamily
A set of columns within a table which share a common configuration.
-
#update_mask ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Modification
constructor
A new instance of Modification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Modification
Returns a new instance of Modification.
2667 2668 2669 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create ⇒ Google::Apis::BigtableadminV2::ColumnFamily
A set of columns within a table which share a common configuration.
Corresponds to the JSON property create
2641 2642 2643 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2641 def create @create end |
#drop ⇒ Boolean 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
2647 2648 2649 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2647 def drop @drop end |
#id ⇒ String
The ID of the column family to be modified.
Corresponds to the JSON property id
2653 2654 2655 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2653 def id @id end |
#update ⇒ Google::Apis::BigtableadminV2::ColumnFamily
A set of columns within a table which share a common configuration.
Corresponds to the JSON property update
2658 2659 2660 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2658 def update @update end |
#update_mask ⇒ String
Optional. A mask specifying which fields (e.g. gc_rule
) in the update
mod
should be updated, ignored for other modification types. If unset or empty, we
treat it as updating gc_rule
to be backward compatible.
Corresponds to the JSON property updateMask
2665 2666 2667 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2665 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2672 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) @update_mask = args[:update_mask] if args.key?(:update_mask) end |