Class: Google::Apis::BigtableadminV2::GcRule

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

Rule for determining which cells to delete during garbage collection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GcRule

Returns a new instance of GcRule.



999
1000
1001
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 999

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

Instance Attribute Details

#intersectionGoogle::Apis::BigtableadminV2::Intersection

A GcRule which deletes cells matching all of the given rules. Corresponds to the JSON property intersection



981
982
983
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 981

def intersection
  @intersection
end

#max_ageString

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

Returns:

  • (String)


987
988
989
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 987

def max_age
  @max_age
end

#max_num_versionsFixnum

Delete all cells in a column except the most recent N. Corresponds to the JSON property maxNumVersions

Returns:

  • (Fixnum)


992
993
994
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 992

def max_num_versions
  @max_num_versions
end

#unionGoogle::Apis::BigtableadminV2::Union

A GcRule which deletes cells matching any of the given rules. Corresponds to the JSON property union



997
998
999
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 997

def union
  @union
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
1008
1009
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1004

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