Skip to content

Commit 7db3b20

Browse files
chore(cloudsql): add consistent region tags (GoogleCloudPlatform#8250)
1 parent 1d5caa7 commit 7db3b20

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cloud-sql/mysql/sqlalchemy/connect_tcp.py

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

15+
# TODO (https://github.com/GoogleCloudPlatform/python-docs-samples/issues/8253): remove old region tags
1516
# [START cloud_sql_mysql_sqlalchemy_connect_tcp]
1617
# [START cloud_sql_mysql_sqlalchemy_sslcerts]
18+
# [START cloud_sql_mysql_sqlalchemy_connect_tcp_sslcerts]
1719
import os
1820

1921
import sqlalchemy
@@ -96,5 +98,6 @@ def connect_tcp_socket() -> sqlalchemy.engine.base.Engine:
9698
)
9799
return pool
98100

101+
# [END cloud_sql_mysql_sqlalchemy_connect_tcp_sslcerts]
99102
# [END cloud_sql_mysql_sqlalchemy_sslcerts]
100103
# [END cloud_sql_mysql_sqlalchemy_connect_tcp]

cloud-sql/postgres/sqlalchemy/connect_tcp.py

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

15+
# TODO (https://github.com/GoogleCloudPlatform/python-docs-samples/issues/8253): remove old region tags
1516
# [START cloud_sql_postgres_sqlalchemy_connect_tcp]
1617
# [START cloud_sql_postgres_sqlalchemy_sslcerts]
18+
# [START cloud_sql_postgres_sqlalchemy_connect_tcp_sslcerts]
1719
import os
1820
import ssl
1921

@@ -96,5 +98,6 @@ def connect_tcp_socket() -> sqlalchemy.engine.base.Engine:
9698
)
9799
return pool
98100

101+
# [END cloud_sql_postgres_sqlalchemy_connect_tcp_sslcerts]
99102
# [END cloud_sql_postgres_sqlalchemy_sslcerts]
100103
# [END cloud_sql_postgres_sqlalchemy_connect_tcp]

cloud-sql/sql-server/sqlalchemy/connect_tcp.py

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

15+
# TODO (https://github.com/GoogleCloudPlatform/python-docs-samples/issues/8253): remove old region tags
1516
# [START cloud_sql_sqlserver_sqlalchemy_connect_tcp]
1617
# [START cloud_sql_sqlserver_sqlalchemy_sslcerts]
18+
# [START cloud_sql_sqlserver_sqlalchemy_connect_tcp_sslcerts]
1719
import os
1820

1921
import sqlalchemy
@@ -100,5 +102,6 @@ def connect_tcp_socket() -> sqlalchemy.engine.base.Engine:
100102

101103
return pool
102104

105+
# [END cloud_sql_sqlserver_sqlalchemy_connect_tcp_sslcerts]
103106
# [END cloud_sql_sqlserver_sqlalchemy_sslcerts]
104107
# [END cloud_sql_sqlserver_sqlalchemy_connect_tcp]

0 commit comments

Comments
 (0)