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

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

Rule for determining which cells to delete during garbage collection.

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) ⇒ GcRule

Returns a new instance of GcRule.


912
913
914
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 912

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


893
894
895
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 893

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)

900
901
902
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 900

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)

905
906
907
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 905

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


910
911
912
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 910

def union
  @union
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


917
918
919
920
921
922
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 917

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