diff --git a/google/cloud/bigquery_connection/__init__.py b/google/cloud/bigquery_connection/__init__.py index 3b48bcc..03a4424 100644 --- a/google/cloud/bigquery_connection/__init__.py +++ b/google/cloud/bigquery_connection/__init__.py @@ -24,6 +24,7 @@ AwsAccessRole, AwsCrossAccountRole, AwsProperties, + AzureProperties, CloudResourceProperties, CloudSpannerProperties, CloudSqlCredential, @@ -43,6 +44,7 @@ "AwsAccessRole", "AwsCrossAccountRole", "AwsProperties", + "AzureProperties", "CloudResourceProperties", "CloudSpannerProperties", "CloudSqlCredential", diff --git a/google/cloud/bigquery_connection_v1/__init__.py b/google/cloud/bigquery_connection_v1/__init__.py index 057bb6d..1893abc 100644 --- a/google/cloud/bigquery_connection_v1/__init__.py +++ b/google/cloud/bigquery_connection_v1/__init__.py @@ -22,6 +22,7 @@ AwsAccessRole, AwsCrossAccountRole, AwsProperties, + AzureProperties, CloudResourceProperties, CloudSpannerProperties, CloudSqlCredential, @@ -40,6 +41,7 @@ "AwsAccessRole", "AwsCrossAccountRole", "AwsProperties", + "AzureProperties", "CloudResourceProperties", "CloudSpannerProperties", "CloudSqlCredential", diff --git a/google/cloud/bigquery_connection_v1/types/__init__.py b/google/cloud/bigquery_connection_v1/types/__init__.py index 4d07f1a..c24bc3e 100644 --- a/google/cloud/bigquery_connection_v1/types/__init__.py +++ b/google/cloud/bigquery_connection_v1/types/__init__.py @@ -17,6 +17,7 @@ AwsAccessRole, AwsCrossAccountRole, AwsProperties, + AzureProperties, CloudResourceProperties, CloudSpannerProperties, CloudSqlCredential, @@ -34,6 +35,7 @@ "AwsAccessRole", "AwsCrossAccountRole", "AwsProperties", + "AzureProperties", "CloudResourceProperties", "CloudSpannerProperties", "CloudSqlCredential", diff --git a/google/cloud/bigquery_connection_v1/types/connection.py b/google/cloud/bigquery_connection_v1/types/connection.py index ff2a0e9..34572d7 100644 --- a/google/cloud/bigquery_connection_v1/types/connection.py +++ b/google/cloud/bigquery_connection_v1/types/connection.py @@ -32,6 +32,7 @@ "AwsProperties", "AwsCrossAccountRole", "AwsAccessRole", + "AzureProperties", "CloudResourceProperties", }, ) @@ -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. @@ -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, @@ -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): @@ -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.