Skip to content

Commit 2581b47

Browse files
authored
update region tags (#709)
* request example * analytics * quickstart * memcache, redis * mailjet, sendgrid * static files * cloud sql and postgresql and datastore * Storage, twilio * pubsub * fix replace all errors
1 parent dfcb6a7 commit 2581b47

42 files changed

Lines changed: 87 additions & 181 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

appengine/analytics/app.flexible.yaml

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

14-
# [START app_yaml]
1514
runtime: nodejs
1615
env: flex
1716

18-
# [START env]
17+
# [START gae_flex_analytics_env_variables]
1918
env_variables:
2019
GA_TRACKING_ID: YOUR_TRACKING_ID
21-
# [END env]
22-
# [END app_yaml]
20+
# [END gae_flex_analytics_env_variables]

appengine/analytics/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
'use strict';
1717

18-
// [START app]
18+
// [START gae_flex_analytics_track_event]
1919
const express = require('express');
2020
const got = require('got');
2121

@@ -69,4 +69,4 @@ app.listen(PORT, () => {
6969
console.log(`App listening on port ${PORT}`);
7070
console.log('Press Ctrl+C to quit.');
7171
});
72-
// [END app]
72+
// [END gae_flex_analytics_track_event]

appengine/analytics/app.standard.yaml

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

14-
# [START app_yaml]
1514
runtime: nodejs8
1615

17-
# [START env]
16+
# [START gae_analytics_env_variables]
1817
env_variables:
1918
GA_TRACKING_ID: YOUR_TRACKING_ID
20-
# [END env]
21-
# [END app_yaml]
19+
# [END gae_analytics_env_variables]

appengine/cloudsql/app.flexible.yaml

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

14-
# [START app_yaml]
1514
runtime: nodejs
1615
env: flex
1716

18-
# [START env]
17+
# [START gae_flex_mysql_env]
1918
# The following env variables may contain sensitive information that grants
2019
# anyone access to your database. Do not add this file to your source control.
2120
env_variables:
@@ -24,13 +23,10 @@ env_variables:
2423
SQL_DATABASE: YOUR_SQL_DATABASE
2524
# e.g. my-awesome-project:us-central1:my-cloud-sql-instance
2625
INSTANCE_CONNECTION_NAME: YOUR_INSTANCE_CONNECTION_NAME
27-
# [END env]
26+
# [END gae_flex_mysql_env]
2827

29-
# [START cloudsql_settings]
3028
beta_settings:
3129
# The connection name of your instance, available by using
3230
# 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
3331
# the Instance details page in the Google Cloud Platform Console.
3432
cloud_sql_instances: YOUR_INSTANCE_CONNECTION_NAME
35-
# [END cloudsql_settings]
36-
# [END app_yaml]

appengine/cloudsql/app.standard.yaml

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

14-
# [START app_yaml]
1514
runtime: nodejs8
1615

17-
# [START env]
16+
# [START gae_mysql_env]
1817
# The following env variables may contain sensitive information that grants
1918
# anyone access to your database. Do not add this file to your source control.
2019
env_variables:
@@ -23,13 +22,10 @@ env_variables:
2322
SQL_DATABASE: YOUR_SQL_DATABASE
2423
# e.g. my-awesome-project:us-central1:my-cloud-sql-instance
2524
INSTANCE_CONNECTION_NAME: YOUR_INSTANCE_CONNECTION_NAME
26-
# [END env]
25+
# [END gae_mysql_env]
2726

28-
# [START cloudsql_settings]
2927
beta_settings:
3028
# The connection name of your instance, available by using
3129
# 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
3230
# the Instance details page in the Google Cloud Platform Console.
3331
cloud_sql_instances: YOUR_INSTANCE_CONNECTION_NAME
34-
# [END cloudsql_settings]
35-
# [END app_yaml]

appengine/cloudsql/createTables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
'use strict';
1717

18-
// [START createTables]
18+
// [START gae_flex_mysql_create_tables]
1919
const Knex = require('knex');
2020
const prompt = require('prompt');
2121

@@ -51,4 +51,4 @@ prompt.get(FIELDS, (err, config) => {
5151
}
5252
});
5353
});
54-
// [END createTables]
54+
// [END gae_flex_mysql_create_tables]

appengine/cloudsql/server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// Require process, so we can mock environment variables
1919
const process = require('process');
2020

21-
// [START app]
21+
// [START gae_flex_mysql_app]
2222
const express = require('express');
2323
const Knex = require('knex');
2424
const crypto = require('crypto');
@@ -29,7 +29,7 @@ app.enable('trust proxy');
2929
const knex = connect();
3030

3131
function connect () {
32-
// [START connect]
32+
// [START gae_flex_mysql_connect]
3333
const config = {
3434
user: process.env.SQL_USER,
3535
password: process.env.SQL_PASSWORD,
@@ -45,7 +45,7 @@ function connect () {
4545
client: 'mysql',
4646
connection: config
4747
});
48-
// [END connect]
48+
// [END gae_flex_mysql_connect]
4949

5050
return knex;
5151
}
@@ -105,6 +105,6 @@ app.listen(PORT, () => {
105105
console.log(`App listening on port ${PORT}`);
106106
console.log('Press Ctrl+C to quit.');
107107
});
108-
// [END app]
108+
// [END gae_flex_mysql_app]
109109

110110
module.exports = app;

appengine/cloudsql_postgresql/app.flexible.yaml

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

14-
# [START app_yaml]
1514
runtime: nodejs
1615
env: flex
1716

18-
# [START env]
17+
# [START gae_flex_postgres_env]
1918
# The following env variables may contain sensitive information that grants
2019
# anyone access to your database. Do not add this file to your source control.
2120
env_variables:
@@ -24,13 +23,10 @@ env_variables:
2423
SQL_DATABASE: YOUR_SQL_DATABASE
2524
# e.g. my-awesome-project:us-central1:my-cloud-sql-instance
2625
INSTANCE_CONNECTION_NAME: YOUR_INSTANCE_CONNECTION_NAME
27-
# [END env]
26+
# [END gae_flex_postgres_env]
2827

29-
# [START cloudsql_settings]
3028
beta_settings:
3129
# The connection name of your instance, available by using
3230
# 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
3331
# the Instance details page in the Google Cloud Platform Console.
3432
cloud_sql_instances: YOUR_INSTANCE_CONNECTION_NAME
35-
# [END cloudsql_settings]
36-
# [END app_yaml]

appengine/cloudsql_postgresql/app.standard.yaml

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

14-
# [START app_yaml]
1514
runtime: nodejs8
1615

17-
# [START env]
16+
# [START gae_postgres_env]
1817
# The following env variables may contain sensitive information that grants
1918
# anyone access to your database. Do not add this file to your source control.
2019
env_variables:
@@ -23,13 +22,10 @@ env_variables:
2322
SQL_DATABASE: YOUR_SQL_DATABASE
2423
# e.g. my-awesome-project:us-central1:my-cloud-sql-instance
2524
INSTANCE_CONNECTION_NAME: YOUR_INSTANCE_CONNECTION_NAME
26-
# [END env]
25+
# [END gae_postgres_env]
2726

28-
# [START cloudsql_settings]
2927
beta_settings:
3028
# The connection name of your instance, available by using
3129
# 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
3230
# the Instance details page in the Google Cloud Platform Console.
3331
cloud_sql_instances: YOUR_INSTANCE_CONNECTION_NAME
34-
# [END cloudsql_settings]
35-
# [END app_yaml]

appengine/cloudsql_postgresql/createTables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
'use strict';
1717

18-
// [START createTables]
18+
// [START gae_flex_postgres_create_tables]
1919
const Knex = require('knex');
2020
const prompt = require('prompt');
2121

@@ -50,4 +50,4 @@ prompt.get(FIELDS, (err, config) => {
5050
}
5151
});
5252
});
53-
// [END createTables]
53+
// [END gae_flex_postgres_create_tables]

0 commit comments

Comments
 (0)