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

Side by Side Diff: appengine/components/components/gce.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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
OLDNEW
1 # Copyright 2015 The LUCI 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 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 """Wrapper around GCE REST API.""" 5 """Wrapper around GCE REST API."""
6 6
7 import json 7 import json
8 import re 8 import re
9 9
10 from components import net 10 from components import net
11 11
12 12
13 AUTH_SCOPES = [ 13 AUTH_SCOPES = [
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 def machine_type_to_num_cpus(machine_type): 584 def machine_type_to_num_cpus(machine_type):
585 """Given a machine type returns its number of CPUs.""" 585 """Given a machine type returns its number of CPUs."""
586 assert machine_type in MACHINE_TYPES, machine_type 586 assert machine_type in MACHINE_TYPES, machine_type
587 return MACHINE_TYPES[machine_type]['cpus'] 587 return MACHINE_TYPES[machine_type]['cpus']
588 588
589 589
590 def machine_type_to_memory(machine_type): 590 def machine_type_to_memory(machine_type):
591 """Given a machine type returns its memory in GB.""" 591 """Given a machine type returns its memory in GB."""
592 assert machine_type in MACHINE_TYPES, machine_type 592 assert machine_type in MACHINE_TYPES, machine_type
593 return MACHINE_TYPES[machine_type]['memory'] 593 return MACHINE_TYPES[machine_type]['memory']
OLDNEW
« no previous file with comments | « appengine/components/components/ereporter2/ui_test.py ('k') | appengine/components/components/gce_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698