Skip to content

Commit

Permalink
feat: Add Cloud_Resource Connection Support (#162)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 433053270
Source-Link: googleapis/googleapis@eb0700c
Source-Link: googleapis/googleapis-gen@0678286
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDY3ODI4NjllZDJiODUzYjI3NTBlYTJhNzhmYzRiMDgxYTgyMmRlOSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Mar 9, 2022
1 parent 0c5f678 commit 6e83ab1
Show file tree
Hide file tree
Showing 4 changed files with 357 additions and 2,608 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 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 All @@ -24,7 +24,6 @@ import "google/iam/v1/iam_policy.proto";
import "google/iam/v1/policy.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/wrappers.proto";

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

// Cloud Spanner properties.
CloudSpannerProperties cloud_spanner = 21;

// Cloud Resource properties.
CloudResourceProperties cloud_resource = 22;
}

// Output only. The creation timestamp of the connection.
Expand Down Expand Up @@ -334,3 +336,19 @@ message AwsAccessRole {
// This identity will be used to access the user's AWS IAM Role.
string identity = 2;
}

// Container for connection properties for delegation of access to GCP
// resources.
message CloudResourceProperties {
// Output only. The account ID of the service created for the purpose of this connection.
//
// The service account does not have any permissions associated with it
// when it is created. After creation, customers delegate permissions
// to the service account. When the connection is used in the context of an
// operation in BigQuery, the service account will be used to connect to the
// desired resources in GCP.
//
// The account ID is in the form of:
// <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
string service_account_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
}
Loading

0 comments on commit 6e83ab1

Please sign in to comment.