/
__init__.py
149 lines (139 loc) · 4.98 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Python idiomatic client for Google Cloud Firestore."""
from pkg_resources import get_distribution
__version__ = get_distribution("google-cloud-firestore").version
from google.cloud.firestore_v1beta1 import types
from google.cloud.firestore_v1beta1._helpers import GeoPoint
from google.cloud.firestore_v1beta1._helpers import ExistsOption
from google.cloud.firestore_v1beta1._helpers import LastUpdateOption
from google.cloud.firestore_v1beta1._helpers import ReadAfterWriteError
from google.cloud.firestore_v1beta1._helpers import WriteOption
from google.cloud.firestore_v1beta1.batch import WriteBatch
from google.cloud.firestore_v1beta1.client import Client
from google.cloud.firestore_v1beta1.collection import CollectionReference
from google.cloud.firestore_v1beta1.transforms import ArrayRemove
from google.cloud.firestore_v1beta1.transforms import ArrayUnion
from google.cloud.firestore_v1beta1.transforms import DELETE_FIELD
from google.cloud.firestore_v1beta1.transforms import SERVER_TIMESTAMP
from google.cloud.firestore_v1beta1.document import DocumentReference
from google.cloud.firestore_v1beta1.document import DocumentSnapshot
from google.cloud.firestore_v1beta1.query import Query
from google.cloud.firestore_v1beta1.transaction import Transaction
from google.cloud.firestore_v1beta1.transaction import transactional
from google.cloud.firestore_v1beta1.watch import Watch
from .services.firestore import FirestoreClient
from .types.common import DocumentMask
from .types.common import Precondition
from .types.common import TransactionOptions
from .types.document import ArrayValue
from .types.document import Document
from .types.document import MapValue
from .types.document import Value
from .types.firestore import BatchGetDocumentsRequest
from .types.firestore import BatchGetDocumentsResponse
from .types.firestore import BeginTransactionRequest
from .types.firestore import BeginTransactionResponse
from .types.firestore import CommitRequest
from .types.firestore import CommitResponse
from .types.firestore import CreateDocumentRequest
from .types.firestore import DeleteDocumentRequest
from .types.firestore import GetDocumentRequest
from .types.firestore import ListCollectionIdsRequest
from .types.firestore import ListCollectionIdsResponse
from .types.firestore import ListDocumentsRequest
from .types.firestore import ListDocumentsResponse
from .types.firestore import ListenRequest
from .types.firestore import ListenResponse
from .types.firestore import RollbackRequest
from .types.firestore import RunQueryRequest
from .types.firestore import RunQueryResponse
from .types.firestore import Target
from .types.firestore import TargetChange
from .types.firestore import UpdateDocumentRequest
from .types.firestore import WriteRequest
from .types.firestore import WriteResponse
from .types.query import Cursor
from .types.query import StructuredQuery
from .types.write import DocumentChange
from .types.write import DocumentDelete
from .types.write import DocumentRemove
from .types.write import DocumentTransform
from .types.write import ExistenceFilter
from .types.write import Write
from .types.write import WriteResult
__all__ = (
"ArrayValue",
"BatchGetDocumentsRequest",
"BatchGetDocumentsResponse",
"BeginTransactionRequest",
"BeginTransactionResponse",
"CommitRequest",
"CommitResponse",
"CreateDocumentRequest",
"Cursor",
"DeleteDocumentRequest",
"Document",
"DocumentChange",
"DocumentDelete",
"DocumentMask",
"DocumentRemove",
"DocumentTransform",
"ExistenceFilter",
"GetDocumentRequest",
"ListCollectionIdsRequest",
"ListCollectionIdsResponse",
"ListDocumentsRequest",
"ListDocumentsResponse",
"ListenRequest",
"ListenResponse",
"MapValue",
"Precondition",
"RollbackRequest",
"RunQueryRequest",
"RunQueryResponse",
"StructuredQuery",
"Target",
"TargetChange",
"TransactionOptions",
"UpdateDocumentRequest",
"Value",
"Write",
"WriteRequest",
"WriteResponse",
"WriteResult",
"FirestoreClient",
"__version__",
"ArrayRemove",
"ArrayUnion",
"Client",
"CollectionReference",
"DELETE_FIELD",
"DocumentReference",
"DocumentSnapshot",
"ExistsOption",
"GeoPoint",
"LastUpdateOption",
"Query",
"ReadAfterWriteError",
"SERVER_TIMESTAMP",
"Transaction",
"transactional",
"types",
"Watch",
"WriteBatch",
"WriteOption",
)