Class MaxAgeGCRule (2.11.0)

MaxAgeGCRule(max_age)

Garbage collection limiting the age of a cell.

For example:

.. literalinclude:: snippets_table.py :start-after: [START bigtable_api_create_family_gc_max_age] :end-before: [END bigtable_api_create_family_gc_max_age] :dedent: 4

Parameter

NameDescription
max_age `datetime.timedelta`

The maximum age allowed for a cell in the table.

Inheritance

builtins.object > GarbageCollectionRule > MaxAgeGCRule

Methods

to_pb

to_pb()

Converts the garbage collection rule to a protobuf.

Returns
TypeDescription
`.table_v2_pb2.GcRule`The converted current object.