Class MaxVersionsGCRule (1.1.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_create_family_gc_max_versions] :end-before: [END bigtable_create_family_gc_max_versions]

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.