Esempio n. 1
0
 def __init__(self, *path, **kwargs):
     _helpers.verify_path(path, is_collection=False)
     self._path = path
     self._client = kwargs.pop('client', None)
     if kwargs:
         raise TypeError('Received unexpected arguments', kwargs,
                         'Only `client` is supported')
Esempio n. 2
0
 def __init__(self, *path, **kwargs):
     _helpers.verify_path(path, is_collection=True)
     self._path = path
     self._client = kwargs.pop("client", None)
     if kwargs:
         raise TypeError("Received unexpected arguments", kwargs,
                         "Only `client` is supported")
Esempio n. 3
0
 def __init__(self, *path, **kwargs):
     _helpers.verify_path(path, is_collection=False)
     self._path = path
     self._client = kwargs.pop("client", None)
     if kwargs:
         raise TypeError(
             "Received unexpected arguments", kwargs, "Only `client` is supported"
         )
 def __init__(self, *path, **kwargs):
     _helpers.verify_path(path, is_collection=True)
     self._path = path
     self._client = kwargs.pop('client', None)
     if kwargs:
         raise TypeError(
             'Received unexpected arguments', kwargs,
             'Only `client` is supported')
    def _call_fut(path, is_collection):
        from google.cloud.firestore_v1beta1._helpers import verify_path

        return verify_path(path, is_collection)