Skip to content

Commit fdedf95

Browse files
docs: Add documentation for enums (#58)
* 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: googleapis/googleapis@a391fd1 Source-Link: googleapis/googleapis-gen@0080f83 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ba01c34 commit fdedf95

File tree

3 files changed

+56
-4
lines changed

3 files changed

+56
-4
lines changed

packages/google-cloud-bigquery-data-exchange/google/cloud/bigquery_data_exchange_v1beta1/services/analytics_hub_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2197,7 +2197,7 @@ def sample_test_iam_permissions():
21972197
# Done; return the response.
21982198
return response
21992199

2200-
def __enter__(self):
2200+
def __enter__(self) -> "AnalyticsHubServiceClient":
22012201
return self
22022202

22032203
def __exit__(self, type, value, traceback):

packages/google-cloud-bigquery-data-exchange/google/cloud/bigquery_data_exchange_v1beta1/types/dataexchange.py

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,64 @@ class Listing(proto.Message):
308308
"""
309309

310310
class State(proto.Enum):
311-
r"""State of the listing."""
311+
r"""State of the listing.
312+
313+
Values:
314+
STATE_UNSPECIFIED (0):
315+
Default value. This value is unused.
316+
ACTIVE (1):
317+
Subscribable state. Users with
318+
dataexchange.listings.subscribe permission can
319+
subscribe to this listing.
320+
"""
312321
STATE_UNSPECIFIED = 0
313322
ACTIVE = 1
314323

315324
class Category(proto.Enum):
316-
r"""Listing categories."""
325+
r"""Listing categories.
326+
327+
Values:
328+
CATEGORY_UNSPECIFIED (0):
329+
330+
CATEGORY_OTHERS (1):
331+
332+
CATEGORY_ADVERTISING_AND_MARKETING (2):
333+
334+
CATEGORY_COMMERCE (3):
335+
336+
CATEGORY_CLIMATE_AND_ENVIRONMENT (4):
337+
338+
CATEGORY_DEMOGRAPHICS (5):
339+
340+
CATEGORY_ECONOMICS (6):
341+
342+
CATEGORY_EDUCATION (7):
343+
344+
CATEGORY_ENERGY (8):
345+
346+
CATEGORY_FINANCIAL (9):
347+
348+
CATEGORY_GAMING (10):
349+
350+
CATEGORY_GEOSPATIAL (11):
351+
352+
CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE (12):
353+
354+
CATEGORY_MEDIA (13):
355+
356+
CATEGORY_PUBLIC_SECTOR (14):
357+
358+
CATEGORY_RETAIL (15):
359+
360+
CATEGORY_SPORTS (16):
361+
362+
CATEGORY_SCIENCE_AND_RESEARCH (17):
363+
364+
CATEGORY_TRANSPORTATION_AND_LOGISTICS (18):
365+
366+
CATEGORY_TRAVEL_AND_TOURISM (19):
367+
368+
"""
317369
CATEGORY_UNSPECIFIED = 0
318370
CATEGORY_OTHERS = 1
319371
CATEGORY_ADVERTISING_AND_MARKETING = 2

packages/google-cloud-bigquery-data-exchange/samples/generated_samples/snippet_metadata_google.cloud.bigquery.dataexchange.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-bigquery-data-exchange",
11-
"version": "0.5.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)