Skip to content

Commit fe833dd

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add service_account_id output field to CloudSQL properties
Clients can now observe the Service Account that is being used when connecting to the CloudSQL from the BigQuery. PiperOrigin-RevId: 463445598
1 parent ea22966 commit fe833dd

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

google/cloud/bigquery/connection/v1/connection.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,13 @@ message CloudSqlProperties {
275275

276276
// Input only. Cloud SQL credential.
277277
CloudSqlCredential credential = 4 [(google.api.field_behavior) = INPUT_ONLY];
278+
279+
// Output only. The account ID of the service used for the purpose of this connection.
280+
//
281+
// When the connection is used in the context of an operation in
282+
// BigQuery, this service account will serve as identity being used for
283+
// connecting to the CloudSQL instance specified in this connection.
284+
string service_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
278285
}
279286

280287
// Credential info for the Cloud SQL.

google/cloud/bigquery/connection/v1beta1/connection.proto

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -105,7 +105,7 @@ service ConnectionService {
105105
// Sets the access control policy on the specified resource. Replaces any
106106
// existing policy.
107107
//
108-
// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
108+
// Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
109109
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
110110
option (google.api.http) = {
111111
post: "/v1beta1/{resource=projects/*/locations/*/connections/*}:setIamPolicy"
@@ -116,7 +116,7 @@ service ConnectionService {
116116

117117
// Returns permissions that a caller has on the specified resource.
118118
// If the resource does not exist, this will return an empty set of
119-
// permissions, not a NOT_FOUND error.
119+
// permissions, not a `NOT_FOUND` error.
120120
//
121121
// Note: This operation is designed to be used for building permission-aware
122122
// UIs and command-line tools, not for authorization checking. This operation
@@ -295,6 +295,13 @@ message CloudSqlProperties {
295295

296296
// Input only. Cloud SQL credential.
297297
CloudSqlCredential credential = 4 [(google.api.field_behavior) = INPUT_ONLY];
298+
299+
// Output only. The account ID of the service used for the purpose of this connection.
300+
//
301+
// When the connection is used in the context of an operation in
302+
// BigQuery, this service account will serve as identity being used for
303+
// connecting to the CloudSQL instance specified in this connection.
304+
string service_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
298305
}
299306

300307
// Credential info for the Cloud SQL.

0 commit comments

Comments
 (0)