Class MaxVersionsGCRule (2.15.0)

MaxVersionsGCRule(max_num_versions)

Garbage collection limiting the number of versions of a cell.

For example:

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

Parameter

NameDescription
max_num_versions int

The maximum number of versions

Methods

to_pb

to_pb()

Converts the garbage collection rule to a protobuf.

Returns
TypeDescription
.table_v2_pb2.GcRuleThe converted current object.