Class GcRule (2.32.0)

GcRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Rule for determining which cells to delete during garbage collection.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
max_num_versions int
Delete all cells in a column except the most recent N. This field is a member of oneof_ rule.
max_age google.protobuf.duration_pb2.Duration
Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity. This field is a member of oneof_ rule.
intersection google.cloud.bigtable_admin_v2.types.GcRule.Intersection
Delete cells that would be deleted by every nested rule. This field is a member of oneof_ rule.
union google.cloud.bigtable_admin_v2.types.GcRule.Union
Delete cells that would be deleted by any nested rule. This field is a member of oneof_ rule.

Classes

Intersection

Intersection(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A GcRule which deletes cells matching all of the given rules.

Union

Union(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A GcRule which deletes cells matching any of the given rules.