diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 87f5de0..23860f9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.12.1" + ".": "1.13.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 661bad0..c6c846e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.13.0](https://github.com/googleapis/python-bigquery-connection/compare/v1.12.1...v1.13.0) (2023-07-10) + + +### Features + +* Add cloud spanner connection properties - max_parallelism ([4d0c702](https://github.com/googleapis/python-bigquery-connection/commit/4d0c70242d2afe7be338d259cf5360f3b3de380f)) +* Add cloud spanner connection properties - use_data_boost ([4d0c702](https://github.com/googleapis/python-bigquery-connection/commit/4d0c70242d2afe7be338d259cf5360f3b3de380f)) +* Add support for Salesforce connections, which are usable only by allowlisted partners ([4d0c702](https://github.com/googleapis/python-bigquery-connection/commit/4d0c70242d2afe7be338d259cf5360f3b3de380f)) + ## [1.12.1](https://github.com/googleapis/python-bigquery-connection/compare/v1.12.0...v1.12.1) (2023-07-04) diff --git a/google/cloud/bigquery_connection/__init__.py b/google/cloud/bigquery_connection/__init__.py index a4d7ab1..e1479d5 100644 --- a/google/cloud/bigquery_connection/__init__.py +++ b/google/cloud/bigquery_connection/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ ListConnectionsRequest, ListConnectionsResponse, MetastoreServiceConfig, + SalesforceDataCloudProperties, SparkHistoryServerConfig, SparkProperties, UpdateConnectionRequest, @@ -63,6 +64,7 @@ "ListConnectionsRequest", "ListConnectionsResponse", "MetastoreServiceConfig", + "SalesforceDataCloudProperties", "SparkHistoryServerConfig", "SparkProperties", "UpdateConnectionRequest", diff --git a/google/cloud/bigquery_connection/gapic_version.py b/google/cloud/bigquery_connection/gapic_version.py index 0d065af..1fc1b24 100644 --- a/google/cloud/bigquery_connection/gapic_version.py +++ b/google/cloud/bigquery_connection/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.1" # {x-release-please-version} +__version__ = "1.13.0" # {x-release-please-version} diff --git a/google/cloud/bigquery_connection_v1/__init__.py b/google/cloud/bigquery_connection_v1/__init__.py index 6857887..dc69d91 100644 --- a/google/cloud/bigquery_connection_v1/__init__.py +++ b/google/cloud/bigquery_connection_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ ListConnectionsRequest, ListConnectionsResponse, MetastoreServiceConfig, + SalesforceDataCloudProperties, SparkHistoryServerConfig, SparkProperties, UpdateConnectionRequest, @@ -61,6 +62,7 @@ "ListConnectionsRequest", "ListConnectionsResponse", "MetastoreServiceConfig", + "SalesforceDataCloudProperties", "SparkHistoryServerConfig", "SparkProperties", "UpdateConnectionRequest", diff --git a/google/cloud/bigquery_connection_v1/gapic_version.py b/google/cloud/bigquery_connection_v1/gapic_version.py index 0d065af..1fc1b24 100644 --- a/google/cloud/bigquery_connection_v1/gapic_version.py +++ b/google/cloud/bigquery_connection_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.1" # {x-release-please-version} +__version__ = "1.13.0" # {x-release-please-version} diff --git a/google/cloud/bigquery_connection_v1/services/__init__.py b/google/cloud/bigquery_connection_v1/services/__init__.py index e8e1c38..89a37dc 100644 --- a/google/cloud/bigquery_connection_v1/services/__init__.py +++ b/google/cloud/bigquery_connection_v1/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/__init__.py b/google/cloud/bigquery_connection_v1/services/connection_service/__init__.py index 34709ef..1729977 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/__init__.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/async_client.py b/google/cloud/bigquery_connection_v1/services/connection_service/async_client.py index 1c639c4..d0f1810 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/async_client.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/client.py b/google/cloud/bigquery_connection_v1/services/connection_service/client.py index 355f598..8e1a6d4 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/client.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/pagers.py b/google/cloud/bigquery_connection_v1/services/connection_service/pagers.py index a2394cc..94976d6 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/pagers.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/transports/__init__.py b/google/cloud/bigquery_connection_v1/services/connection_service/transports/__init__.py index 16ea37c..7c00b98 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/transports/__init__.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/transports/base.py b/google/cloud/bigquery_connection_v1/services/connection_service/transports/base.py index 1a1546e..0cab80c 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/transports/base.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc.py b/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc.py index 60ffc55..2a06cd5 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc_asyncio.py b/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc_asyncio.py index bb9d3a4..d320530 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc_asyncio.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/services/connection_service/transports/rest.py b/google/cloud/bigquery_connection_v1/services/connection_service/transports/rest.py index 393f0f7..e6d0231 100644 --- a/google/cloud/bigquery_connection_v1/services/connection_service/transports/rest.py +++ b/google/cloud/bigquery_connection_v1/services/connection_service/transports/rest.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/bigquery_connection_v1/types/__init__.py b/google/cloud/bigquery_connection_v1/types/__init__.py index 2137bec..40ba917 100644 --- a/google/cloud/bigquery_connection_v1/types/__init__.py +++ b/google/cloud/bigquery_connection_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,6 +29,7 @@ ListConnectionsRequest, ListConnectionsResponse, MetastoreServiceConfig, + SalesforceDataCloudProperties, SparkHistoryServerConfig, SparkProperties, UpdateConnectionRequest, @@ -50,6 +51,7 @@ "ListConnectionsRequest", "ListConnectionsResponse", "MetastoreServiceConfig", + "SalesforceDataCloudProperties", "SparkHistoryServerConfig", "SparkProperties", "UpdateConnectionRequest", diff --git a/google/cloud/bigquery_connection_v1/types/connection.py b/google/cloud/bigquery_connection_v1/types/connection.py index 62e5eba..ffdeff6 100644 --- a/google/cloud/bigquery_connection_v1/types/connection.py +++ b/google/cloud/bigquery_connection_v1/types/connection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ "MetastoreServiceConfig", "SparkHistoryServerConfig", "SparkProperties", + "SalesforceDataCloudProperties", }, ) @@ -235,6 +236,14 @@ class Connection(proto.Message): spark (google.cloud.bigquery_connection_v1.types.SparkProperties): Spark properties. + This field is a member of `oneof`_ ``properties``. + salesforce_data_cloud (google.cloud.bigquery_connection_v1.types.SalesforceDataCloudProperties): + Optional. Salesforce DataCloud properties. + This field is intended for use only by + Salesforce partner projects. This field contains + properties for your Salesforce DataCloud + connection. + This field is a member of `oneof`_ ``properties``. creation_time (int): Output only. The creation timestamp of the @@ -295,6 +304,12 @@ class Connection(proto.Message): oneof="properties", message="SparkProperties", ) + salesforce_data_cloud: "SalesforceDataCloudProperties" = proto.Field( + proto.MESSAGE, + number=24, + oneof="properties", + message="SalesforceDataCloudProperties", + ) creation_time: int = proto.Field( proto.INT64, number=5, @@ -402,30 +417,38 @@ class CloudSpannerProperties(proto.Message): use_parallelism (bool): If parallelism should be used when reading from Cloud Spanner + max_parallelism (int): + Allows setting max parallelism per query when executing on + Spanner independent compute resources. If unspecified, + default values of parallelism are chosen that are dependent + on the Cloud Spanner instance configuration. + + REQUIRES: ``use_parallelism`` must be set. REQUIRES: Either + ``use_data_boost`` or ``use_serverless_analytics`` must be + set. use_serverless_analytics (bool): If the serverless analytics service should be used to read data from Cloud Spanner. Note: ``use_parallelism`` must be set when using serverless analytics. + use_data_boost (bool): + If set, the request will be executed via Spanner independent + compute resources. REQUIRES: ``use_parallelism`` must be + set. + + NOTE: ``use_serverless_analytics`` will be deprecated. + Prefer ``use_data_boost`` over ``use_serverless_analytics``. database_role (str): - Optional. Cloud Spanner database role for - fine-grained access control. A database role is - a collection of fine-grained access privileges. - Example: Admin predefines roles that provides - user a set of permissions (SELECT, INSERT, ..). - The user can then specify a predefined role on a - connection to execute their Cloud Spanner query. - The role is passthrough here. If the user is not - authorized to use the specified role, they get - an error. This validation happens on Cloud - Spanner. - - See - https://cloud.google.com/spanner/docs/fgac-about - for more details. - REQUIRES: database role name must start with - uppercase/lowercase letter and only contain - uppercase/lowercase letters, numbers, and - underscores. + Optional. Cloud Spanner database role for fine-grained + access control. The Cloud Spanner admin should have + provisioned the database role with appropriate permissions, + such as ``SELECT`` and ``INSERT``. Other users should only + use roles provided by their Cloud Spanner admins. + + For more details, see [About fine-grained access control] + (https://cloud.google.com/spanner/docs/fgac-about). + + REQUIRES: The database role name must start with a letter, + and can only contain letters, numbers, and underscores. """ database: str = proto.Field( @@ -436,10 +459,18 @@ class CloudSpannerProperties(proto.Message): proto.BOOL, number=2, ) + max_parallelism: int = proto.Field( + proto.INT32, + number=5, + ) use_serverless_analytics: bool = proto.Field( proto.BOOL, number=3, ) + use_data_boost: bool = proto.Field( + proto.BOOL, + number=6, + ) database_role: str = proto.Field( proto.STRING, number=4, @@ -683,7 +714,7 @@ class SparkProperties(proto.Message): permissions to the service account. When the connection is used in the context of a stored procedure for Apache Spark in BigQuery, the - service account will be used to connect to the + service account is used to connect to the desired resources in Google Cloud. The account ID is in the form of: bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com @@ -711,4 +742,34 @@ class SparkProperties(proto.Message): ) +class SalesforceDataCloudProperties(proto.Message): + r"""Connection properties specific to Salesforce DataCloud. This + is intended for use only by Salesforce partner projects. + + Attributes: + instance_uri (str): + The URL to the user's Salesforce DataCloud + instance. + identity (str): + Output only. A unique Google-owned and + Google-generated service account identity for + the connection. + tenant_id (str): + The ID of the user's Salesforce tenant. + """ + + instance_uri: str = proto.Field( + proto.STRING, + number=1, + ) + identity: str = proto.Field( + proto.STRING, + number=2, + ) + tenant_id: str = proto.Field( + proto.STRING, + number=3, + ) + + __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_async.py index d63e3ab..0e246e0 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_sync.py index e7c63ed..05f30c2 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_async.py index 4f17174..a60f1e6 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_sync.py index 19ffc3f..bba5b4e 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_async.py index 171cba9..346aa04 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_sync.py index 7aa43e5..fbb405b 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_async.py index 95a1452..7f85f48 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_sync.py index ed66e3d..d6dadde 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_async.py index e42ac39..f72cdf2 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_sync.py index c0adf05..c35c3a0 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_list_connections_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_async.py index ef9f57a..10c4df3 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_sync.py index 3fde414..2d8d464 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_set_iam_policy_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_async.py index af3e21a..39507c7 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_sync.py index 221d525..732d0b0 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_test_iam_permissions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_async.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_async.py index 918d7a6..aed94d3 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_async.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_sync.py b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_sync.py index 504e810..632eb08 100644 --- a/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_sync.py +++ b/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_update_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.connection.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.connection.v1.json index 42cb586..3fb55a1 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.connection.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.connection.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-connection", - "version": "1.12.1" + "version": "1.13.0" }, "snippets": [ { diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 8e8f5c2..95b74e7 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==7.3.2 +pytest==7.4.0 google-cloud-testutils==1.3.3 \ No newline at end of file diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 9339b22..d295684 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-bigquery-connection==1.12.0 \ No newline at end of file +google-cloud-bigquery-connection==1.12.1 \ No newline at end of file diff --git a/scripts/fixup_bigquery_connection_v1_keywords.py b/scripts/fixup_bigquery_connection_v1_keywords.py index 8330017..0076fbd 100644 --- a/scripts/fixup_bigquery_connection_v1_keywords.py +++ b/scripts/fixup_bigquery_connection_v1_keywords.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/setup.py b/setup.py index 4f1f795..3900f1a 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/__init__.py b/tests/__init__.py index e8e1c38..89a37dc 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index e8e1c38..89a37dc 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/__init__.py b/tests/unit/gapic/__init__.py index e8e1c38..89a37dc 100644 --- a/tests/unit/gapic/__init__.py +++ b/tests/unit/gapic/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/bigquery_connection_v1/__init__.py b/tests/unit/gapic/bigquery_connection_v1/__init__.py index e8e1c38..89a37dc 100644 --- a/tests/unit/gapic/bigquery_connection_v1/__init__.py +++ b/tests/unit/gapic/bigquery_connection_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/bigquery_connection_v1/test_connection_service.py b/tests/unit/gapic/bigquery_connection_v1/test_connection_service.py index 1da6f8d..02640b7 100644 --- a/tests/unit/gapic/bigquery_connection_v1/test_connection_service.py +++ b/tests/unit/gapic/bigquery_connection_v1/test_connection_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -3047,7 +3047,9 @@ def test_create_connection_rest(request_type): "cloud_spanner": { "database": "database_value", "use_parallelism": True, + "max_parallelism": 1595, "use_serverless_analytics": True, + "use_data_boost": True, "database_role": "database_role_value", }, "cloud_resource": {"service_account_id": "service_account_id_value"}, @@ -3060,6 +3062,11 @@ def test_create_connection_rest(request_type): "dataproc_cluster": "dataproc_cluster_value" }, }, + "salesforce_data_cloud": { + "instance_uri": "instance_uri_value", + "identity": "identity_value", + "tenant_id": "tenant_id_value", + }, "creation_time": 1379, "last_modified_time": 1890, "has_credential": True, @@ -3296,7 +3303,9 @@ def test_create_connection_rest_bad_request( "cloud_spanner": { "database": "database_value", "use_parallelism": True, + "max_parallelism": 1595, "use_serverless_analytics": True, + "use_data_boost": True, "database_role": "database_role_value", }, "cloud_resource": {"service_account_id": "service_account_id_value"}, @@ -3309,6 +3318,11 @@ def test_create_connection_rest_bad_request( "dataproc_cluster": "dataproc_cluster_value" }, }, + "salesforce_data_cloud": { + "instance_uri": "instance_uri_value", + "identity": "identity_value", + "tenant_id": "tenant_id_value", + }, "creation_time": 1379, "last_modified_time": 1890, "has_credential": True, @@ -4080,7 +4094,9 @@ def test_update_connection_rest(request_type): "cloud_spanner": { "database": "database_value", "use_parallelism": True, + "max_parallelism": 1595, "use_serverless_analytics": True, + "use_data_boost": True, "database_role": "database_role_value", }, "cloud_resource": {"service_account_id": "service_account_id_value"}, @@ -4093,6 +4109,11 @@ def test_update_connection_rest(request_type): "dataproc_cluster": "dataproc_cluster_value" }, }, + "salesforce_data_cloud": { + "instance_uri": "instance_uri_value", + "identity": "identity_value", + "tenant_id": "tenant_id_value", + }, "creation_time": 1379, "last_modified_time": 1890, "has_credential": True, @@ -4330,7 +4351,9 @@ def test_update_connection_rest_bad_request( "cloud_spanner": { "database": "database_value", "use_parallelism": True, + "max_parallelism": 1595, "use_serverless_analytics": True, + "use_data_boost": True, "database_role": "database_role_value", }, "cloud_resource": {"service_account_id": "service_account_id_value"}, @@ -4343,6 +4366,11 @@ def test_update_connection_rest_bad_request( "dataproc_cluster": "dataproc_cluster_value" }, }, + "salesforce_data_cloud": { + "instance_uri": "instance_uri_value", + "identity": "identity_value", + "tenant_id": "tenant_id_value", + }, "creation_time": 1379, "last_modified_time": 1890, "has_credential": True,