Class MaxVersionsGCRule (2.10.1)

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

Inheritance

builtins.object > GarbageCollectionRule > MaxVersionsGCRule

Methods

to_pb

to_pb()

Converts the garbage collection rule to a protobuf.

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