Skip to content

Commit

Permalink
fix: better support for fallback mode (#187)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 468790263

Source-Link: googleapis/googleapis@873ab45

Source-Link: googleapis/googleapis-gen@cb6f37a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9

chore: deprecate the AwsCrossAccountRole property
feat: add Azure Properties to Connection

Azure properties are used by BigQuery Omni in Azure regions.

PiperOrigin-RevId: 464570667

Source-Link: googleapis/googleapis@75905af

Source-Link: googleapis/googleapis-gen@8c3a248
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGMzYTI0ODViYjM1MDEyZWNiN2EyY2VkMGY5NGExMWQyZGUyNTNiMiJ9

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

Source-Link: googleapis/googleapis@fe833dd

Source-Link: googleapis/googleapis-gen@73fad9a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNmYWQ5YTY1MDIyMjVmYzY0MzMyYjJmNmZlYTgwODljZGE2ZGI1NSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Aug 23, 2022
1 parent 38051c5 commit 96601fd
Show file tree
Hide file tree
Showing 15 changed files with 734 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ message Connection {
// Amazon Web Services (AWS) properties.
AwsProperties aws = 8;

// Azure properties.
AzureProperties azure = 11;

// Cloud Spanner properties.
CloudSpannerProperties cloud_spanner = 21;

Expand Down Expand Up @@ -275,6 +278,13 @@ message CloudSqlProperties {

// Input only. Cloud SQL credential.
CloudSqlCredential credential = 4 [(google.api.field_behavior) = INPUT_ONLY];

// Output only. The account ID of the service used for the purpose of this connection.
//
// When the connection is used in the context of an operation in
// BigQuery, this service account will serve as identity being used for
// connecting to the CloudSQL instance specified in this connection.
string service_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Credential info for the Cloud SQL.
Expand All @@ -301,7 +311,8 @@ message AwsProperties {
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;
// Deprecated, do not use.
AwsCrossAccountRole cross_account_role = 2 [deprecated = true];

// Authentication using Google owned service account to assume into
// customer's AWS IAM Role.
Expand Down Expand Up @@ -337,6 +348,34 @@ message AwsAccessRole {
string identity = 2;
}

// Container for connection properties specific to Azure.
message AzureProperties {
// Output only. The name of the Azure Active Directory Application.
string application = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The client id of the Azure Active Directory Application.
string client_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The object id of the Azure Active Directory Application.
string object_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];

// The id of customer's directory that host the data.
string customer_tenant_id = 4;

// The URL user will be redirected to after granting consent during connection
// setup.
string redirect_uri = 5;

// The client id of the user's Azure Active Directory Application used for a
// federated connection.
string federated_application_client_id = 6;

// Output only. A unique Google-owned and Google-generated identity for the Connection.
// This identity will be used to access the user's Azure Active Directory
// Application.
string identity = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Container for connection properties for delegation of access to GCP
// resources.
message CloudResourceProperties {
Expand Down
140 changes: 139 additions & 1 deletion 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 96601fd

Please sign in to comment.