From c1a444389dc7fe5d7ecea9020cf02a3113da9f3d Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sat, 15 Apr 2023 10:20:14 -0400 Subject: [PATCH] feat: set the default import to datapolicies_v1 (#12) --- .../.repo-metadata.json | 2 +- .../google-cloud-bigquery-datapolicies/docs/index.rst | 10 +++++----- .../google/cloud/bigquery/datapolicies/__init__.py | 8 +++++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/google-cloud-bigquery-datapolicies/.repo-metadata.json b/packages/google-cloud-bigquery-datapolicies/.repo-metadata.json index c86641c04c04..2a85218f615c 100644 --- a/packages/google-cloud-bigquery-datapolicies/.repo-metadata.json +++ b/packages/google-cloud-bigquery-datapolicies/.repo-metadata.json @@ -10,7 +10,7 @@ "repo": "googleapis/python-bigquery-datapolicies", "distribution_name": "google-cloud-bigquery-datapolicies", "api_id": "bigquerydatapolicy.googleapis.com", - "default_version": "v1beta1", + "default_version": "v1", "codeowner_team": "", "api_shortname": "bigquerydatapolicy", "api_description": "Allows users to manage BigQuery data policies." diff --git a/packages/google-cloud-bigquery-datapolicies/docs/index.rst b/packages/google-cloud-bigquery-datapolicies/docs/index.rst index bb76ab73797e..f91ead3647d1 100644 --- a/packages/google-cloud-bigquery-datapolicies/docs/index.rst +++ b/packages/google-cloud-bigquery-datapolicies/docs/index.rst @@ -3,7 +3,7 @@ .. include:: multiprocessing.rst This package includes clients for multiple versions of BigQuery Data Policy. -By default, you will get version ``datapolicies_v1beta1``. +By default, you will get version ``datapolicies_v1``. API Reference @@ -11,16 +11,16 @@ API Reference .. toctree:: :maxdepth: 2 - datapolicies_v1beta1/services - datapolicies_v1beta1/types + datapolicies_v1/services + datapolicies_v1/types API Reference ------------- .. toctree:: :maxdepth: 2 - datapolicies_v1/services - datapolicies_v1/types + datapolicies_v1beta1/services + datapolicies_v1beta1/types Changelog diff --git a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies/__init__.py b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies/__init__.py index c2fc55bb50f6..4948a72da85f 100644 --- a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies/__init__.py +++ b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies/__init__.py @@ -18,13 +18,13 @@ __version__ = package_version.__version__ -from google.cloud.bigquery.datapolicies_v1beta1.services.data_policy_service.async_client import ( +from google.cloud.bigquery.datapolicies_v1.services.data_policy_service.async_client import ( DataPolicyServiceAsyncClient, ) -from google.cloud.bigquery.datapolicies_v1beta1.services.data_policy_service.client import ( +from google.cloud.bigquery.datapolicies_v1.services.data_policy_service.client import ( DataPolicyServiceClient, ) -from google.cloud.bigquery.datapolicies_v1beta1.types.datapolicy import ( +from google.cloud.bigquery.datapolicies_v1.types.datapolicy import ( CreateDataPolicyRequest, DataMaskingPolicy, DataPolicy, @@ -32,6 +32,7 @@ GetDataPolicyRequest, ListDataPoliciesRequest, ListDataPoliciesResponse, + RenameDataPolicyRequest, UpdateDataPolicyRequest, ) @@ -45,5 +46,6 @@ "GetDataPolicyRequest", "ListDataPoliciesRequest", "ListDataPoliciesResponse", + "RenameDataPolicyRequest", "UpdateDataPolicyRequest", )