Skip to content

Commit cc88e66

Browse files
authored
Update Region Tags (GoogleCloudPlatform#1650)
* app_identity, blobstore region tags * fix errors * logs * region tags * standard region tags * fix region tag typo
1 parent de2cb86 commit cc88e66

File tree

21 files changed

+47
-83
lines changed

21 files changed

+47
-83
lines changed

appengine/flexible/mailjet/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runtime_config:
66
python_version: 3
77

88
# [START gae_flex_mailjet_yaml]
9-
gae_flex_mailjet_yaml:
9+
env_variables:
1010
MAILJET_API_KEY: your-mailjet-api-key
1111
MAILJET_API_SECRET: your-mailjet-api-secret
1212
MAILJET_SENDER: your-mailjet-sender-address

appengine/flexible/metadata/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START app]
1615
import logging
1716

1817
from flask import Flask
@@ -23,7 +22,7 @@
2322
app = Flask(__name__)
2423

2524

26-
# [START metadata]
25+
# [START gae_flex_metadata]
2726
METADATA_NETWORK_INTERFACE_URL = \
2827
('http://metadata/computeMetadata/v1/instance/network-interfaces/0/'
2928
'access-configs/0/external-ip')
@@ -43,7 +42,7 @@ def get_external_ip():
4342
except requests.RequestException:
4443
logging.info('Metadata server could not be reached, assuming local.')
4544
return 'localhost'
46-
# [END metadata]
45+
# [END gae_flex_metadata]
4746

4847

4948
@app.route('/')
@@ -52,7 +51,6 @@ def index():
5251
# external IP address of this instance is needed.
5352
external_ip = get_external_ip()
5453
return 'External IP: {}'.format(external_ip)
55-
# [END app]
5654

5755

5856
@app.errorhandler(500)

appengine/flexible/numpy/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
app = Flask(__name__)
2121

2222

23-
# [START numpy]
2423
@app.route('/')
2524
def calculate():
2625
return_str = ''
@@ -32,7 +31,6 @@ def calculate():
3231
# Multiply matrices
3332
return_str += 'x dot y : {}'.format(str(np.dot(x, y)))
3433
return return_str
35-
# [END numpy]
3634

3735

3836
@app.errorhandler(500)

appengine/flexible/pubsub/templates/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
</ul>
2929
<p><small>Note: because your application is likely running multiple instances, each instance will have a different list of messages.</small></p>
3030
</div>
31-
<!-- [START form] -->
3231
<form method="post">
3332
<textarea name="payload" placeholder="Enter message here"></textarea>
3433
<input type="submit">
3534
</form>
36-
<!-- [END form] -->
3735
</body>
3836
</html>

appengine/flexible/redis/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runtime_config:
66
python_version: 3
77

88
# [START gae_flex_python_redis_yaml]
9-
gae_flex_python_redis_yaml:
9+
env_variables:
1010
REDIS_HOST: your-redis-host
1111
REDIS_PORT: your-redis-port
1212
REDIS_PASSWORD: your-redis-password

appengine/flexible/scipy/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
app = Flask(__name__)
2222

2323

24-
# [START scipy]
2524
@app.route('/')
2625
def resize():
2726
"""Demonstrates using scipy to resize an image."""
@@ -34,7 +33,6 @@ def resize():
3433
# Write the tinted image back to disk
3534
scipy.misc.imsave(output_image_path, img_tinted)
3635
return "Image resized."
37-
# [END scipy]
3836

3937

4038
@app.errorhandler(500)

appengine/flexible/sendgrid/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runtime_config:
66
python_version: 3
77

88
# [START gae_flex_sendgrid_yaml]
9-
gae_flex_sendgrid_yaml:
9+
env_variables:
1010
SENDGRID_API_KEY: your-sendgrid-api-key
1111
SENDGRID_SENDER: your-sendgrid-sender
1212
# [END gae_flex_sendgrid_yaml]

appengine/standard/app_identity/asserting/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
For more information about App Engine, see README.md under /appengine.
2020
"""
2121

22-
# [START all]
22+
# [START gae_python_app_identity_asserting]
2323
import json
2424
import logging
2525

@@ -59,4 +59,4 @@ def get(self):
5959
('/', MainPage)
6060
], debug=True)
6161

62-
# [END all]
62+
# [END gae_python_app_identity_asserting]

appengine/standard/app_identity/incoming/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
For more information about App Engine, see README.md under /appengine.
2020
"""
2121

22-
# [START all]
22+
# [START gae_python_app_identity_incoming]
2323
import webapp2
2424

2525

@@ -43,4 +43,4 @@ def get(self):
4343
('/', MainPage)
4444
], debug=True)
4545

46-
# [END all]
46+
# [END gae_python_app_identity_incoming]

appengine/standard/app_identity/signing/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
For more information about App Engine, see README.md under /appengine.
2020
"""
2121

22-
# [START all]
22+
# [START gae_python_app_identity_signing]
2323

2424
import base64
2525

@@ -81,4 +81,4 @@ def get(self):
8181
('/', MainPage)
8282
], debug=True)
8383

84-
# [END all]
84+
# [END gae_python_app_identity_signing]

0 commit comments

Comments
 (0)