Class MaxVersionsGCRule (2.26.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

Name Description
max_num_versions int

The maximum number of versions

Methods

to_pb

to_pb()

Converts the garbage collection rule to a protobuf.

Returns
Type Description
.table_v2_pb2.GcRule The converted current object.