From 14fee28c1c34bb90b4877ef1249f41602dd68c85 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 10:58:49 -0500 Subject: [PATCH 1/2] docs: Add documentation for enums (#15) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: https://github.com/googleapis/googleapis/commit/a391fd1dac18dfdfa00c18c8404f2c3a6ff8e98e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../services/analytics_hub_service/client.py | 2 +- .../analyticshub_v1/types/analyticshub.py | 56 ++++++++++++++++++- ...google.cloud.bigquery.analyticshub.v1.json | 2 +- 3 files changed, 56 insertions(+), 4 deletions(-) diff --git a/google/cloud/bigquery/analyticshub_v1/services/analytics_hub_service/client.py b/google/cloud/bigquery/analyticshub_v1/services/analytics_hub_service/client.py index 711e4e6..83daa3e 100644 --- a/google/cloud/bigquery/analyticshub_v1/services/analytics_hub_service/client.py +++ b/google/cloud/bigquery/analyticshub_v1/services/analytics_hub_service/client.py @@ -2194,7 +2194,7 @@ def sample_test_iam_permissions(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "AnalyticsHubServiceClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/bigquery/analyticshub_v1/types/analyticshub.py b/google/cloud/bigquery/analyticshub_v1/types/analyticshub.py index 211f670..43c857d 100644 --- a/google/cloud/bigquery/analyticshub_v1/types/analyticshub.py +++ b/google/cloud/bigquery/analyticshub_v1/types/analyticshub.py @@ -308,12 +308,64 @@ class Listing(proto.Message): """ class State(proto.Enum): - r"""State of the listing.""" + r"""State of the listing. + + Values: + STATE_UNSPECIFIED (0): + Default value. This value is unused. + ACTIVE (1): + Subscribable state. Users with + dataexchange.listings.subscribe permission can + subscribe to this listing. + """ STATE_UNSPECIFIED = 0 ACTIVE = 1 class Category(proto.Enum): - r"""Listing categories.""" + r"""Listing categories. + + Values: + CATEGORY_UNSPECIFIED (0): + + CATEGORY_OTHERS (1): + + CATEGORY_ADVERTISING_AND_MARKETING (2): + + CATEGORY_COMMERCE (3): + + CATEGORY_CLIMATE_AND_ENVIRONMENT (4): + + CATEGORY_DEMOGRAPHICS (5): + + CATEGORY_ECONOMICS (6): + + CATEGORY_EDUCATION (7): + + CATEGORY_ENERGY (8): + + CATEGORY_FINANCIAL (9): + + CATEGORY_GAMING (10): + + CATEGORY_GEOSPATIAL (11): + + CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE (12): + + CATEGORY_MEDIA (13): + + CATEGORY_PUBLIC_SECTOR (14): + + CATEGORY_RETAIL (15): + + CATEGORY_SPORTS (16): + + CATEGORY_SCIENCE_AND_RESEARCH (17): + + CATEGORY_TRANSPORTATION_AND_LOGISTICS (18): + + CATEGORY_TRAVEL_AND_TOURISM (19): + + """ CATEGORY_UNSPECIFIED = 0 CATEGORY_OTHERS = 1 CATEGORY_ADVERTISING_AND_MARKETING = 2 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json index 22023c3..addac63 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-analyticshub", - "version": "0.3.0" + "version": "0.1.0" }, "snippets": [ { From 2b32202d16382b022b631773c5899a0d2e4455a5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 11:04:15 -0500 Subject: [PATCH 2/2] chore(main): release 0.3.1 (#16) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 12 ++++++++++++ google/cloud/bigquery/analyticshub/gapic_version.py | 2 +- .../cloud/bigquery/analyticshub_v1/gapic_version.py | 2 +- ...tadata_google.cloud.bigquery.analyticshub.v1.json | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0ee8c01..816df2d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.3.0" + ".": "0.3.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b6d24f..c6f8d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.3.1](https://github.com/googleapis/python-bigquery-analyticshub/compare/v0.3.0...v0.3.1) (2023-01-20) + + +### Bug Fixes + +* Add context manager return types ([14fee28](https://github.com/googleapis/python-bigquery-analyticshub/commit/14fee28c1c34bb90b4877ef1249f41602dd68c85)) + + +### Documentation + +* Add documentation for enums ([14fee28](https://github.com/googleapis/python-bigquery-analyticshub/commit/14fee28c1c34bb90b4877ef1249f41602dd68c85)) + ## [0.3.0](https://github.com/googleapis/python-bigquery-analyticshub/compare/v0.2.0...v0.3.0) (2023-01-10) diff --git a/google/cloud/bigquery/analyticshub/gapic_version.py b/google/cloud/bigquery/analyticshub/gapic_version.py index a6ccd66..8743df4 100644 --- a/google/cloud/bigquery/analyticshub/gapic_version.py +++ b/google/cloud/bigquery/analyticshub/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.3.0" # {x-release-please-version} +__version__ = "0.3.1" # {x-release-please-version} diff --git a/google/cloud/bigquery/analyticshub_v1/gapic_version.py b/google/cloud/bigquery/analyticshub_v1/gapic_version.py index a6ccd66..8743df4 100644 --- a/google/cloud/bigquery/analyticshub_v1/gapic_version.py +++ b/google/cloud/bigquery/analyticshub_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.3.0" # {x-release-please-version} +__version__ = "0.3.1" # {x-release-please-version} diff --git a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json index addac63..cba8a48 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-analyticshub", - "version": "0.1.0" + "version": "0.3.1" }, "snippets": [ {