A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/appengine/docs/legacy/standard/python/ndb/metadata below:

NDB Metadata Reference | App Engine standard environment for Python 2

NDB Metadata Reference

Stay organized with collections Save and categorize content based on your preferences.

This page describes how to use the legacy bundled services and APIs. This API can only run in first-generation runtimes in the App Engine standard environment. If you are updating to the App Engine Python 3 runtime, refer to the migration guide to learn about your migration options for legacy bundled services.

This API is in the google.appengine.ext.ndb.metadata module, typically used via from google.appengine.ext.ndb import metadata.

Functions
get_entity_group_version(key)
Return the version of the entity group containing key. This version is guaranteed to increase on every change to the entity group. The version may increase even in the absence of user-visible changes to the entity group. May return None if the entity group was never written to.

Warning: The behavior of entity group metadata is now different. The entity group version can increase independently of user updates. Previously, the entity group version increased only on user update. To maintain legacy behavior, use the entity group version workaround.

Arguments

key
key for an entity group.
get_namespaces(start=None, end=None)
Returns a list of namespace names.

Arguments

start
Don't return namespace names before this in alphabetical order.
end
Don't return namespace names after this in alphabetical order.
get_kinds(start=None, end=None):
Returns a list of kind names in the current namespace.

Arguments

start
Don't return kind names before this in alphabetical order.
end
Don't return kind names after this in alphabetical order.
get_properties_of_kind(kind, start=None, end=None):
Returns a list of property names for the given kind name in the current namespace.

Arguments

kind
Which kind's properties to list.
start
Don't return property names before this in alphabetical order.
end
Don't return property names after this in alphabetical order.
get_representations_of_kind(kind, start=None, end=None)
Returns a dict mapping property names for the given kind name to lists of representation names such as 'STRING', 'BOOLEAN' or 'INT64'. Only looks in the current namespace. For a complete list of these types, see Representation Types
Returns a list of property names for the given kind name.

Arguments

kind
Which kind's properties to list.
start
Don't return property names before this in alphabetical order.
end
Don't return property names after this in alphabetical order.
Representation Types Property Class Representation StringProperty STRING BooleanProperty BOOLEAN IntegerProperty INT64 FloatProperty DOUBLE DateTimeProperty
DateProperty
TimeProperty INT64 UserProperty USER BlobProperty STRING BlobKeyProperty STRING TextProperty STRING GeoPtProperty POINT GenericProperty (Depends on what value is stored.) ComputedProperty (Depends on what value is stored.) JsonProperty STRING PickleProperty STRING StructuredProperty (When you get representation types, StructuredProperty properties won't be returned. Instead, it shows values for the subproperties corresponding to their property types.) LocalStructuredProperty STRING KeyProperty REFERENCE

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This API, located in the `google.appengine.ext.ndb.metadata` module, is designed for use in first-generation runtimes within the App Engine standard environment, and users migrating to Python 3 should consult the migration guide."],["The `get_entity_group_version(key)` function retrieves the version of an entity group, which increases with every change, potentially even without user-visible updates, and a workaround is available for maintaining legacy behavior."],["The `get_namespaces(start=None, end=None)`, `get_kinds(start=None, end=None)`, `get_properties_of_kind(kind, start=None, end=None)` and `get_representations_of_kind(kind, start=None, end=None)` functions are used to list namespace names, kind names, property names and representation names respectively, with options for specifying alphabetical start and end boundaries."],["The document outlines the various property classes and their corresponding representation types, such as `StringProperty` to `STRING` and `IntegerProperty` to `INT64`, for different data types."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4