Skip to content

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: googleapis/googleapis-gen@73fad9a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNmYWQ5YTY1MDIyMjVmYzY0MzMyYjJmNmZlYTgwODljZGE2ZGI1NSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jul 27, 2022
1 parent 12eaef3 commit d4b3839
Showing 1 changed file with 12 additions and 0 deletions.
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 d4b3839

Please sign in to comment.