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

Commit

Permalink
feat: Add service_account_id output field to CloudSQL properties (#237)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Jul 27, 2022
1 parent 52593ec commit adc73a6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions google/cloud/bigquery_connection_v1/types/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ class CloudSqlProperties(proto.Message):
Type of the Cloud SQL database.
credential (google.cloud.bigquery_connection_v1.types.CloudSqlCredential):
Input only. Cloud SQL credential.
service_account_id (str):
Output only. The account ID of the service
used for the purpose of this connection.
When the connection is used in the context of an
operation in BigQuery, this service account will
serve as identity being used for connecting to
the CloudSQL instance specified in this
connection.
"""

class DatabaseType(proto.Enum):
Expand All @@ -320,6 +328,10 @@ class DatabaseType(proto.Enum):
number=4,
message="CloudSqlCredential",
)
service_account_id = proto.Field(
proto.STRING,
number=5,
)


class CloudSqlCredential(proto.Message):
Expand Down

0 comments on commit adc73a6

Please sign in to comment.