Skip to content

Commit

Permalink
feat: add cloud spanner connection support (#110)
Browse files Browse the repository at this point in the history
* feat: add cloud spanner connection support

PiperOrigin-RevId: 384325792

Source-Link: googleapis/googleapis@eba5492

Source-Link: googleapis/googleapis-gen@6fdc90c

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 14, 2021
1 parent 5877f90 commit 808e300
Show file tree
Hide file tree
Showing 4 changed files with 763 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -233,6 +233,9 @@ message Connection {

// Amazon Web Services (AWS) properties.
AwsProperties aws = 8;

// Cloud Spanner properties.
CloudSpannerProperties cloud_spanner = 21;
}

// Output only. The creation timestamp of the connection.
Expand Down Expand Up @@ -281,13 +284,26 @@ message CloudSqlCredential {
string password = 2;
}

// Connection properties specific to Cloud Spanner.
message CloudSpannerProperties {
// Cloud Spanner database in the form `project/instance/database'
string database = 1;

// If parallelism should be used when reading from Cloud Spanner
bool use_parallelism = 2;
}

// Connection properties specific to Amazon Web Services (AWS).
message AwsProperties {
// Authentication method chosen at connection creation.
oneof authentication_method {
// Authentication using Google owned AWS IAM user's access key to assume
// into customer's AWS IAM Role.
AwsCrossAccountRole cross_account_role = 2;

// Authentication using Google owned service account to assume into
// customer's AWS IAM Role.
AwsAccessRole access_role = 3;
}
}

Expand All @@ -306,3 +322,15 @@ message AwsCrossAccountRole {
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
string external_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Authentication method for Amazon Web Services (AWS) that uses Google owned
// Google service account to assume into customer's AWS IAM Role.
message AwsAccessRole {
// The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
// Connection.
string iam_role_id = 1;

// A unique Google-owned and Google-generated identity for the Connection.
// This identity will be used to access the user's AWS IAM Role.
string identity = 2;
}
208 changes: 206 additions & 2 deletions packages/google-cloud-bigquery-connection/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 808e300

Please sign in to comment.