Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit a62dada

Browse files
docs: Add documentation for enums (#284)
* docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: googleapis/googleapis@a391fd1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 96b6e9c commit a62dada

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

google/cloud/bigquery_connection_v1/services/connection_service/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ def sample_test_iam_permissions():
14571457
# Done; return the response.
14581458
return response
14591459

1460-
def __enter__(self):
1460+
def __enter__(self) -> "ConnectionServiceClient":
14611461
return self
14621462

14631463
def __exit__(self, type, value, traceback):

google/cloud/bigquery_connection_v1/types/connection.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,16 @@ class CloudSqlProperties(proto.Message):
318318
"""
319319

320320
class DatabaseType(proto.Enum):
321-
r"""Supported Cloud SQL database types."""
321+
r"""Supported Cloud SQL database types.
322+
323+
Values:
324+
DATABASE_TYPE_UNSPECIFIED (0):
325+
Unspecified database type.
326+
POSTGRES (1):
327+
Cloud SQL for PostgreSQL.
328+
MYSQL (2):
329+
Cloud SQL for MySQL.
330+
"""
322331
DATABASE_TYPE_UNSPECIFIED = 0
323332
POSTGRES = 1
324333
MYSQL = 2

samples/generated_samples/snippet_metadata_google.cloud.bigquery.connection.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-bigquery-connection",
11-
"version": "1.9.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)