Class MaxAgeGCRule (2.3.3)

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.

Methods

to_pb

to_pb()

Converts the garbage collection rule to a protobuf.

Returns
TypeDescription
.table_v2_pb2.GcRuleThe converted current object.