As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
Library versions released prior to that date will continue to be available. For more information please
visit Python 2 support on Google Cloud.
Transforms¶
Helpful constants to use for Google Cloud Firestore.
- class google.cloud.firestore_v1.transforms.ArrayRemove(values)[source]¶
Bases:
google.cloud.firestore_v1.transforms._ValueList
Field transform: remove values from an array field.
- Parameters
values (List | Tuple) – values to remove.
- class google.cloud.firestore_v1.transforms.ArrayUnion(values)[source]¶
Bases:
google.cloud.firestore_v1.transforms._ValueList
Field transform: appends missing values to an array field.
- Parameters
values (List | Tuple) – values to append.
- class google.cloud.firestore_v1.transforms.Increment(value)[source]¶
Bases:
google.cloud.firestore_v1.transforms._NumericValue
Field transform: increment a numeric field with specified value.
- class google.cloud.firestore_v1.transforms.Maximum(value)[source]¶
Bases:
google.cloud.firestore_v1.transforms._NumericValue
Field transform: bound numeric field with specified value.