Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit ad17197

Browse files
docs: deprecate the AwsCrossAccountRole property (#240)
- [ ] Regenerate this pull request now. 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: https://github.com/googleapis/googleapis-gen/commit/8c3a2485bb35012ecb7a2ced0f94a11d2de253b2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGMzYTI0ODViYjM1MDEyZWNiN2EyY2VkMGY5NGExMWQyZGUyNTNiMiJ9
1 parent adc73a6 commit ad17197

File tree

4 files changed

+78
-1
lines changed

4 files changed

+78
-1
lines changed

google/cloud/bigquery_connection/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
AwsAccessRole,
2525
AwsCrossAccountRole,
2626
AwsProperties,
27+
AzureProperties,
2728
CloudResourceProperties,
2829
CloudSpannerProperties,
2930
CloudSqlCredential,
@@ -43,6 +44,7 @@
4344
"AwsAccessRole",
4445
"AwsCrossAccountRole",
4546
"AwsProperties",
47+
"AzureProperties",
4648
"CloudResourceProperties",
4749
"CloudSpannerProperties",
4850
"CloudSqlCredential",

google/cloud/bigquery_connection_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
AwsAccessRole,
2323
AwsCrossAccountRole,
2424
AwsProperties,
25+
AzureProperties,
2526
CloudResourceProperties,
2627
CloudSpannerProperties,
2728
CloudSqlCredential,
@@ -40,6 +41,7 @@
4041
"AwsAccessRole",
4142
"AwsCrossAccountRole",
4243
"AwsProperties",
44+
"AzureProperties",
4345
"CloudResourceProperties",
4446
"CloudSpannerProperties",
4547
"CloudSqlCredential",

google/cloud/bigquery_connection_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
AwsAccessRole,
1818
AwsCrossAccountRole,
1919
AwsProperties,
20+
AzureProperties,
2021
CloudResourceProperties,
2122
CloudSpannerProperties,
2223
CloudSqlCredential,
@@ -34,6 +35,7 @@
3435
"AwsAccessRole",
3536
"AwsCrossAccountRole",
3637
"AwsProperties",
38+
"AzureProperties",
3739
"CloudResourceProperties",
3840
"CloudSpannerProperties",
3941
"CloudSqlCredential",

google/cloud/bigquery_connection_v1/types/connection.py

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"AwsProperties",
3333
"AwsCrossAccountRole",
3434
"AwsAccessRole",
35+
"AzureProperties",
3536
"CloudResourceProperties",
3637
},
3738
)
@@ -211,6 +212,10 @@ class Connection(proto.Message):
211212
aws (google.cloud.bigquery_connection_v1.types.AwsProperties):
212213
Amazon Web Services (AWS) properties.
213214
215+
This field is a member of `oneof`_ ``properties``.
216+
azure (google.cloud.bigquery_connection_v1.types.AzureProperties):
217+
Azure properties.
218+
214219
This field is a member of `oneof`_ ``properties``.
215220
cloud_spanner (google.cloud.bigquery_connection_v1.types.CloudSpannerProperties):
216221
Cloud Spanner properties.
@@ -255,6 +260,12 @@ class Connection(proto.Message):
255260
oneof="properties",
256261
message="AwsProperties",
257262
)
263+
azure = proto.Field(
264+
proto.MESSAGE,
265+
number=11,
266+
oneof="properties",
267+
message="AzureProperties",
268+
)
258269
cloud_spanner = proto.Field(
259270
proto.MESSAGE,
260271
number=21,
@@ -390,7 +401,7 @@ class AwsProperties(proto.Message):
390401
cross_account_role (google.cloud.bigquery_connection_v1.types.AwsCrossAccountRole):
391402
Authentication using Google owned AWS IAM
392403
user's access key to assume into customer's AWS
393-
IAM Role.
404+
IAM Role. Deprecated, do not use.
394405
395406
This field is a member of `oneof`_ ``authentication_method``.
396407
access_role (google.cloud.bigquery_connection_v1.types.AwsAccessRole):
@@ -472,6 +483,66 @@ class AwsAccessRole(proto.Message):
472483
)
473484

474485

486+
class AzureProperties(proto.Message):
487+
r"""Container for connection properties specific to Azure.
488+
489+
Attributes:
490+
application (str):
491+
Output only. The name of the Azure Active
492+
Directory Application.
493+
client_id (str):
494+
Output only. The client id of the Azure
495+
Active Directory Application.
496+
object_id (str):
497+
Output only. The object id of the Azure
498+
Active Directory Application.
499+
customer_tenant_id (str):
500+
The id of customer's directory that host the
501+
data.
502+
redirect_uri (str):
503+
The URL user will be redirected to after
504+
granting consent during connection setup.
505+
federated_application_client_id (str):
506+
The client id of the user's Azure Active
507+
Directory Application used for a federated
508+
connection.
509+
identity (str):
510+
Output only. A unique Google-owned and
511+
Google-generated identity for the Connection.
512+
This identity will be used to access the user's
513+
Azure Active Directory Application.
514+
"""
515+
516+
application = proto.Field(
517+
proto.STRING,
518+
number=1,
519+
)
520+
client_id = proto.Field(
521+
proto.STRING,
522+
number=2,
523+
)
524+
object_id = proto.Field(
525+
proto.STRING,
526+
number=3,
527+
)
528+
customer_tenant_id = proto.Field(
529+
proto.STRING,
530+
number=4,
531+
)
532+
redirect_uri = proto.Field(
533+
proto.STRING,
534+
number=5,
535+
)
536+
federated_application_client_id = proto.Field(
537+
proto.STRING,
538+
number=6,
539+
)
540+
identity = proto.Field(
541+
proto.STRING,
542+
number=7,
543+
)
544+
545+
475546
class CloudResourceProperties(proto.Message):
476547
r"""Container for connection properties for delegation of access
477548
to GCP resources.

0 commit comments

Comments
 (0)