Skip to content

Commit eba5492

Browse files
Google APIscopybara-github
authored andcommitted
feat: add cloud spanner connection support
PiperOrigin-RevId: 384325792
1 parent c61a01d commit eba5492

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 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.
@@ -233,6 +233,9 @@ message Connection {
233233

234234
// Amazon Web Services (AWS) properties.
235235
AwsProperties aws = 8;
236+
237+
// Cloud Spanner properties.
238+
CloudSpannerProperties cloud_spanner = 21;
236239
}
237240

238241
// Output only. The creation timestamp of the connection.
@@ -281,13 +284,26 @@ message CloudSqlCredential {
281284
string password = 2;
282285
}
283286

287+
// Connection properties specific to Cloud Spanner.
288+
message CloudSpannerProperties {
289+
// Cloud Spanner database in the form `project/instance/database'
290+
string database = 1;
291+
292+
// If parallelism should be used when reading from Cloud Spanner
293+
bool use_parallelism = 2;
294+
}
295+
284296
// Connection properties specific to Amazon Web Services (AWS).
285297
message AwsProperties {
286298
// Authentication method chosen at connection creation.
287299
oneof authentication_method {
288300
// Authentication using Google owned AWS IAM user's access key to assume
289301
// into customer's AWS IAM Role.
290302
AwsCrossAccountRole cross_account_role = 2;
303+
304+
// Authentication using Google owned service account to assume into
305+
// customer's AWS IAM Role.
306+
AwsAccessRole access_role = 3;
291307
}
292308
}
293309

@@ -306,3 +322,15 @@ message AwsCrossAccountRole {
306322
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
307323
string external_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
308324
}
325+
326+
// Authentication method for Amazon Web Services (AWS) that uses Google owned
327+
// Google service account to assume into customer's AWS IAM Role.
328+
message AwsAccessRole {
329+
// The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
330+
// Connection.
331+
string iam_role_id = 1;
332+
333+
// A unique Google-owned and Google-generated identity for the Connection.
334+
// This identity will be used to access the user's AWS IAM Role.
335+
string identity = 2;
336+
}

0 commit comments

Comments
 (0)