OLD | NEW |
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 """GCE Backend Pub/Sub push subscription receiver.""" | 5 """GCE Backend Pub/Sub push subscription receiver.""" |
6 | 6 |
7 import base64 | 7 import base64 |
8 import json | 8 import json |
9 import logging | 9 import logging |
10 | 10 |
11 from google.appengine.api import app_identity | 11 from google.appengine.api import app_identity |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 subscription_project, | 156 subscription_project, |
157 topic, | 157 topic, |
158 topic_project, | 158 topic_project, |
159 ) | 159 ) |
160 | 160 |
161 | 161 |
162 def create_pubsub_app(): | 162 def create_pubsub_app(): |
163 return webapp2.WSGIApplication([ | 163 return webapp2.WSGIApplication([ |
164 (MACHINE_PROVIDER_ENDPOINT, MachineProviderSubscriptionHandler), | 164 (MACHINE_PROVIDER_ENDPOINT, MachineProviderSubscriptionHandler), |
165 ]) | 165 ]) |
OLD | NEW |