Skip to content

Commit eb0700c

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add Cloud_Resource Connection Support
PiperOrigin-RevId: 433053270
1 parent 2a55d13 commit eb0700c

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 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.
@@ -24,7 +24,6 @@ import "google/iam/v1/iam_policy.proto";
2424
import "google/iam/v1/policy.proto";
2525
import "google/protobuf/empty.proto";
2626
import "google/protobuf/field_mask.proto";
27-
import "google/protobuf/wrappers.proto";
2827

2928
option csharp_namespace = "Google.Cloud.BigQuery.Connection.V1";
3029
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1;connection";
@@ -236,6 +235,9 @@ message Connection {
236235

237236
// Cloud Spanner properties.
238237
CloudSpannerProperties cloud_spanner = 21;
238+
239+
// Cloud Resource properties.
240+
CloudResourceProperties cloud_resource = 22;
239241
}
240242

241243
// Output only. The creation timestamp of the connection.
@@ -334,3 +336,19 @@ message AwsAccessRole {
334336
// This identity will be used to access the user's AWS IAM Role.
335337
string identity = 2;
336338
}
339+
340+
// Container for connection properties for delegation of access to GCP
341+
// resources.
342+
message CloudResourceProperties {
343+
// Output only. The account ID of the service created for the purpose of this connection.
344+
//
345+
// The service account does not have any permissions associated with it
346+
// when it is created. After creation, customers delegate permissions
347+
// to the service account. When the connection is used in the context of an
348+
// operation in BigQuery, the service account will be used to connect to the
349+
// desired resources in GCP.
350+
//
351+
// The account ID is in the form of:
352+
// <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
353+
string service_account_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
354+
}

0 commit comments

Comments
 (0)