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

Commit adc73a6

Browse files
feat: Add service_account_id output field to CloudSQL properties (#237)
- [ ] Regenerate this pull request now. Clients can now observe the Service Account that is being used when connecting to the CloudSQL from the BigQuery. PiperOrigin-RevId: 463445598 Source-Link: googleapis/googleapis@fe833dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/73fad9a6502225fc64332b2f6fea8089cda6db55 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNmYWQ5YTY1MDIyMjVmYzY0MzMyYjJmNmZlYTgwODljZGE2ZGI1NSJ9
1 parent 52593ec commit adc73a6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

google/cloud/bigquery_connection_v1/types/connection.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,14 @@ class CloudSqlProperties(proto.Message):
294294
Type of the Cloud SQL database.
295295
credential (google.cloud.bigquery_connection_v1.types.CloudSqlCredential):
296296
Input only. Cloud SQL credential.
297+
service_account_id (str):
298+
Output only. The account ID of the service
299+
used for the purpose of this connection.
300+
When the connection is used in the context of an
301+
operation in BigQuery, this service account will
302+
serve as identity being used for connecting to
303+
the CloudSQL instance specified in this
304+
connection.
297305
"""
298306

299307
class DatabaseType(proto.Enum):
@@ -320,6 +328,10 @@ class DatabaseType(proto.Enum):
320328
number=4,
321329
message="CloudSqlCredential",
322330
)
331+
service_account_id = proto.Field(
332+
proto.STRING,
333+
number=5,
334+
)
323335

324336

325337
class CloudSqlCredential(proto.Message):

0 commit comments

Comments
 (0)