Class: Google::Apis::BigtableadminV2::GcRule
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::GcRule
- 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
Rule for determining which cells to delete during garbage collection.
Instance Attribute Summary collapse
-
#intersection ⇒ Google::Apis::BigtableadminV2::Intersection
A GcRule which deletes cells matching all of the given rules.
-
#max_age ⇒ String
Delete cells in a column older than the given age.
-
#max_num_versions ⇒ Fixnum
Delete all cells in a column except the most recent N.
-
#union ⇒ Google::Apis::BigtableadminV2::Union
A GcRule which deletes cells matching any of the given rules.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GcRule
constructor
A new instance of GcRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GcRule
Returns a new instance of GcRule
711 712 713 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 711 def initialize(**args) update!(**args) end |
Instance Attribute Details
#intersection ⇒ Google::Apis::BigtableadminV2::Intersection
A GcRule which deletes cells matching all of the given rules.
Corresponds to the JSON property intersection
692 693 694 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 692 def intersection @intersection end |
#max_age ⇒ String
Delete cells in a column older than the given age.
Values must be at least one millisecond, and will be truncated to
microsecond granularity.
Corresponds to the JSON property maxAge
699 700 701 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 699 def max_age @max_age end |
#max_num_versions ⇒ Fixnum
Delete all cells in a column except the most recent N.
Corresponds to the JSON property maxNumVersions
704 705 706 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 704 def max_num_versions @max_num_versions end |
#union ⇒ Google::Apis::BigtableadminV2::Union
A GcRule which deletes cells matching any of the given rules.
Corresponds to the JSON property union
709 710 711 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 709 def union @union end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
716 717 718 719 720 721 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 716 def update!(**args) @intersection = args[:intersection] if args.key?(:intersection) @max_age = args[:max_age] if args.key?(:max_age) @max_num_versions = args[:max_num_versions] if args.key?(:max_num_versions) @union = args[:union] if args.key?(:union) end |