Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Side by Side Diff: appengine/gce-backend/models.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/gce-backend/main.py ('k') | appengine/gce-backend/proto/config.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Swarming Authors. All rights reserved. 1 # Copyright 2015 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 by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Datastore models for the Machine Provider messages.""" 5 """Datastore models for the Machine Provider messages."""
6 6
7 import hashlib 7 import hashlib
8 8
9 from google.appengine.ext import ndb 9 from google.appengine.ext import ndb
10 from google.appengine.ext.ndb import msgprop 10 from google.appengine.ext.ndb import msgprop
11 11
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 def generate_key(cls, name): 125 def generate_key(cls, name):
126 """Generates the key for an InstanceGroup with the given name. 126 """Generates the key for an InstanceGroup with the given name.
127 127
128 Args: 128 Args:
129 name: Name of this instance group. 129 name: Name of this instance group.
130 130
131 Returns: 131 Returns:
132 An ndb.Key instance. 132 An ndb.Key instance.
133 """ 133 """
134 return ndb.Key(cls, hashlib.sha1(name).hexdigest()) 134 return ndb.Key(cls, hashlib.sha1(name).hexdigest())
OLDNEW
« no previous file with comments | « appengine/gce-backend/main.py ('k') | appengine/gce-backend/proto/config.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698