google.appengine.api.backendinfo module
Summary
A library for working with BackendInfoExternal records, describing backends configured for an application. Supports loading the records from backend.yaml.
Contents
- class google.appengine.api.backendinfo.BackendEntry(*args, **kwargs)source
-
Bases: google.appengine.api.validation.Validated
A backend entry describes a single backend.
- ATTRIBUTES = {'max_concurrent_requests': <google.appengine.api.validation.Optional object>, 'instances': <google.appengine.api.validation.Optional object>, 'state': <google.appengine.api.validation.Optional object>, 'name': '(?!-)[a-z\\d\\-]{1,100}', 'start': <google.appengine.api.validation.Optional object>, 'public': <google.appengine.api.validation.Optional object>, 'dynamic': <google.appengine.api.validation.Optional object>, 'class': <google.appengine.api.validation.Optional object>, 'failfast': <google.appengine.api.validation.Optional object>, 'options': <google.appengine.api.validation.Optional object>}
- Init()source
- ParseOptions()source
-
Parses the ‘options’ field and sets appropriate fields.
- ToDict()source
-
Returns a sorted dictionary representing the backend entry.
- WriteOptions()source
-
Writes the ‘options’ field based on other settings.
- get_class()source
-
Accessor for ‘class’, since an attribute reference is an error.
- set_class(Class)source
-
Setter for ‘class’, since an attribute reference is an error.
- class google.appengine.api.backendinfo.BackendInfoExternal(**attributes)source
-
Bases: google.appengine.api.validation.Validated
BackendInfoExternal describes all backend entries for an application.
- ATTRIBUTES = {'backends': <google.appengine.api.validation.Optional object>}
- exception google.appengine.api.backendinfo.BadConfigsource
-
Bases: exceptions.Exception
An invalid configuration was provided.
- google.appengine.api.backendinfo.LoadBackendEntry(backend_entry)source
Parses a BackendEntry object from a string.
Parametersbackend_entry – a backend entry, as a string
ReturnsA BackendEntry object.
- google.appengine.api.backendinfo.LoadBackendInfo(backend_info, open_fn=None)source
Parses a BackendInfoExternal object from a string.
Parameters-
backend_info – a backends stanza (list of backends) as a string
-
open_fn – Function for opening files. Unused.
A BackendInfoExternal object.
-