datastore.key¶
Classes¶
Module Contents¶
- class datastore.key.PathElement(kind, *, id_=None, name=None)¶
- Parameters:
kind (str)
id_ (int | None)
name (str | None)
- kind¶
- id = None¶
- name = None¶
- __eq__(other)¶
- Parameters:
other (Any)
- Return type:
bool
- __repr__()¶
- Return type:
str
- classmethod from_repr(data)¶
- Parameters:
data (dict[str, Any])
- Return type:
Self
- to_repr()¶
- Return type:
dict[str, Any]
- class datastore.key.Key(project, path, namespace='')¶
- Parameters:
project (str)
path (list[PathElement])
namespace (str)
- path_element_kind¶
- project¶
- namespace = ''¶
- path¶
- __eq__(other)¶
- Parameters:
other (Any)
- Return type:
bool
- __repr__()¶
- Return type:
str
- classmethod from_repr(data)¶
- Parameters:
data (dict[str, Any])
- Return type:
Self
- to_repr()¶
- Return type:
dict[str, Any]