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

docs: deprecate the AwsCrossAccountRole property #240

Merged
merged 2 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions google/cloud/bigquery_connection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
AwsAccessRole,
AwsCrossAccountRole,
AwsProperties,
AzureProperties,
CloudResourceProperties,
CloudSpannerProperties,
CloudSqlCredential,
Expand All @@ -43,6 +44,7 @@
"AwsAccessRole",
"AwsCrossAccountRole",
"AwsProperties",
"AzureProperties",
"CloudResourceProperties",
"CloudSpannerProperties",
"CloudSqlCredential",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/bigquery_connection_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
AwsAccessRole,
AwsCrossAccountRole,
AwsProperties,
AzureProperties,
CloudResourceProperties,
CloudSpannerProperties,
CloudSqlCredential,
Expand All @@ -40,6 +41,7 @@
"AwsAccessRole",
"AwsCrossAccountRole",
"AwsProperties",
"AzureProperties",
"CloudResourceProperties",
"CloudSpannerProperties",
"CloudSqlCredential",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/bigquery_connection_v1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
AwsAccessRole,
AwsCrossAccountRole,
AwsProperties,
AzureProperties,
CloudResourceProperties,
CloudSpannerProperties,
CloudSqlCredential,
Expand All @@ -34,6 +35,7 @@
"AwsAccessRole",
"AwsCrossAccountRole",
"AwsProperties",
"AzureProperties",
"CloudResourceProperties",
"CloudSpannerProperties",
"CloudSqlCredential",
Expand Down
73 changes: 72 additions & 1 deletion google/cloud/bigquery_connection_v1/types/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"AwsProperties",
"AwsCrossAccountRole",
"AwsAccessRole",
"AzureProperties",
"CloudResourceProperties",
},
)
Expand Down Expand Up @@ -211,6 +212,10 @@ class Connection(proto.Message):
aws (google.cloud.bigquery_connection_v1.types.AwsProperties):
Amazon Web Services (AWS) properties.

This field is a member of `oneof`_ ``properties``.
azure (google.cloud.bigquery_connection_v1.types.AzureProperties):
Azure properties.

This field is a member of `oneof`_ ``properties``.
cloud_spanner (google.cloud.bigquery_connection_v1.types.CloudSpannerProperties):
Cloud Spanner properties.
Expand Down Expand Up @@ -255,6 +260,12 @@ class Connection(proto.Message):
oneof="properties",
message="AwsProperties",
)
azure = proto.Field(
proto.MESSAGE,
number=11,
oneof="properties",
message="AzureProperties",
)
cloud_spanner = proto.Field(
proto.MESSAGE,
number=21,
Expand Down Expand Up @@ -390,7 +401,7 @@ class AwsProperties(proto.Message):
cross_account_role (google.cloud.bigquery_connection_v1.types.AwsCrossAccountRole):
Authentication using Google owned AWS IAM
user's access key to assume into customer's AWS
IAM Role.
IAM Role. Deprecated, do not use.

This field is a member of `oneof`_ ``authentication_method``.
access_role (google.cloud.bigquery_connection_v1.types.AwsAccessRole):
Expand Down Expand Up @@ -472,6 +483,66 @@ class AwsAccessRole(proto.Message):
)


class AzureProperties(proto.Message):
r"""Container for connection properties specific to Azure.

Attributes:
application (str):
Output only. The name of the Azure Active
Directory Application.
client_id (str):
Output only. The client id of the Azure
Active Directory Application.
object_id (str):
Output only. The object id of the Azure
Active Directory Application.
customer_tenant_id (str):
The id of customer's directory that host the
data.
redirect_uri (str):
The URL user will be redirected to after
granting consent during connection setup.
federated_application_client_id (str):
The client id of the user's Azure Active
Directory Application used for a federated
connection.
identity (str):
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.
"""

application = proto.Field(
proto.STRING,
number=1,
)
client_id = proto.Field(
proto.STRING,
number=2,
)
object_id = proto.Field(
proto.STRING,
number=3,
)
customer_tenant_id = proto.Field(
proto.STRING,
number=4,
)
redirect_uri = proto.Field(
proto.STRING,
number=5,
)
federated_application_client_id = proto.Field(
proto.STRING,
number=6,
)
identity = proto.Field(
proto.STRING,
number=7,
)


class CloudResourceProperties(proto.Message):
r"""Container for connection properties for delegation of access
to GCP resources.
Expand Down