OLD | NEW |
1 # Copyright 2016 The LUCI Authors. All rights reserved. | 1 # Copyright 2016 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 """Datastore model for GCE Backend.""" | 5 """Datastore model for GCE Backend.""" |
6 | 6 |
7 from google.appengine.ext import ndb | 7 from google.appengine.ext import ndb |
8 from google.appengine.ext.ndb import msgprop | 8 from google.appengine.ext.ndb import msgprop |
9 | 9 |
10 from components.machine_provider import rpc_messages | 10 from components.machine_provider import rpc_messages |
11 | 11 |
12 import utilities | 12 import utilities |
13 | 13 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 Key: | 121 Key: |
122 id: base_name of the | 122 id: base_name of the |
123 proto.config_pb2.InstanceTemplateConfig.InstanceTemplate this entity | 123 proto.config_pb2.InstanceTemplateConfig.InstanceTemplate this entity |
124 represents. | 124 represents. |
125 kind: InstanceTemplate (root entity). | 125 kind: InstanceTemplate (root entity). |
126 """ | 126 """ |
127 # ndb.Key for the active InstanceTemplateRevision. | 127 # ndb.Key for the active InstanceTemplateRevision. |
128 active = ndb.KeyProperty(kind=InstanceTemplateRevision) | 128 active = ndb.KeyProperty(kind=InstanceTemplateRevision) |
129 # List of ndb.Keys for drained InstanceTemplateRevisions. | 129 # List of ndb.Keys for drained InstanceTemplateRevisions. |
130 drained = ndb.KeyProperty(kind=InstanceTemplateRevision, repeated=True) | 130 drained = ndb.KeyProperty(kind=InstanceTemplateRevision, repeated=True) |
OLD | NEW |