App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.datastore.datastore_v4_validator._EntityValidator Class Reference
Inheritance diagram for google.appengine.datastore.datastore_v4_validator._EntityValidator:

Public Member Functions

def validate_keys
 
def validate_key
 
def validate_partition_id
 
def validate_dataset_id
 
def validate_partition_id_dimension
 
def validate_kind
 
def validate_entities
 
def validate_entity
 
def validate_property
 
def validate_value
 
def validate_property_name
 

Detailed Description

Validator for v4 entities and keys.

Member Function Documentation

def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_dataset_id (   self,
  constraint,
  dataset_id 
)
Validates a dataset ID.

Args:
  constraint: a _ValidationConstraint to apply
  dataset_id: dataset ID

Raises:
  ValidationError: if the partition ID dimension is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_entities (   self,
  constraint,
  entities 
)
Validates a list of entities.

Args:
  constraint: a _ValidationConstraint to apply
  entities: a list of entity_v4_pb.Entity objects

Raises:
  ValidationError: if any of the entities is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_entity (   self,
  constraint,
  entity 
)
Validates an entity.

Args:
  constraint: a _ValidationConstraint to apply
  entity: an entity_v4_pb.Entity

Raises:
  ValidationError: if the entity is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_key (   self,
  constraint,
  key 
)
Validates a key.

Args:
  constraint: a _ValidationConstraint to apply
  key: an entity_v4_pb.Key

Raises:
  ValidationError: if the key is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_keys (   self,
  constraint,
  keys 
)
Validates a list of keys.

Args:
  constraint: a _ValidationConstraint to apply
  keys: a list of entity_v4_pb.Key objects

Raises:
  ValidationError: if any of the keys is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_kind (   self,
  constraint,
  kind 
)
Validates a kind.

Args:
  constraint: a _ValidationConstraint to apply
  kind: kind string

Raises:
  ValidationError: if the kind is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_partition_id (   self,
  constraint,
  partition_id 
)
Validates a partition ID.

Args:
  constraint: a _ValidationConstraint to apply
  partition_id: a datastore_v4_pb.PartitionId

Raises:
  ValidationError: if the partition ID is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_partition_id_dimension (   self,
  constraint,
  partition_dimension,
  desc 
)
Validates a dimension (e.g. namespace) of a partition ID.

Should not be used for datasets (see validate_dataset).

Args:
  constraint: a _ValidationConstraint to apply
  partition_dimension: string representing one dimension of a partition ID
  desc: description of the dimension (used in error messages)

Raises:
  ValidationError: if the partition ID dimension is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_property (   self,
  constraint,
  prop 
)
Validates a property.

Args:
  constraint: a _ValidationConstraint to apply
  prop: an entity_v4_pb.Property

Raises:
  ValidationError: if the property is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_property_name (   self,
  constraint,
  property_name 
)
Validates a property name.

Args:
  constraint: a _ValidationConstraint to apply
  property_name: name of a property

Raises:
  ValidationError: if the property name is invalid
def google.appengine.datastore.datastore_v4_validator._EntityValidator.validate_value (   self,
  constraint,
  value 
)
Validates a value.

Args:
  constraint: a _ValidationConstraint to apply
  value: an entity_v4_pb.Value

Raises:
  ValidationError: if the value is invalid

The documentation for this class was generated from the following file: