Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 7923a86

Browse files
docs: Add documentation for enums (#230)
* 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: 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent bdde741 commit 7923a86

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed

google/cloud/billing_v1/services/cloud_billing/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ def sample_test_iam_permissions():
17011701
# Done; return the response.
17021702
return response
17031703

1704-
def __enter__(self):
1704+
def __enter__(self) -> "CloudBillingClient":
17051705
return self
17061706

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

google/cloud/billing_v1/services/cloud_catalog/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def sample_list_skus():
651651
# Done; return the response.
652652
return response
653653

654-
def __enter__(self):
654+
def __enter__(self) -> "CloudCatalogClient":
655655
return self
656656

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

google/cloud/billing_v1/types/cloud_catalog.py

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,14 @@ class AggregationLevel(proto.Enum):
364364
Example: "ACCOUNT" aggregation level indicates that usage for
365365
tiered pricing is aggregated across all projects in a single
366366
account.
367+
368+
Values:
369+
AGGREGATION_LEVEL_UNSPECIFIED (0):
370+
371+
ACCOUNT (1):
372+
373+
PROJECT (2):
374+
367375
"""
368376
AGGREGATION_LEVEL_UNSPECIFIED = 0
369377
ACCOUNT = 1
@@ -373,6 +381,14 @@ class AggregationInterval(proto.Enum):
373381
r"""The interval at which usage is aggregated to compute cost.
374382
Example: "MONTHLY" aggregation interval indicates that usage for
375383
tiered pricing is aggregated every month.
384+
385+
Values:
386+
AGGREGATION_INTERVAL_UNSPECIFIED (0):
387+
388+
DAILY (1):
389+
390+
MONTHLY (2):
391+
376392
"""
377393
AGGREGATION_INTERVAL_UNSPECIFIED = 0
378394
DAILY = 1
@@ -408,7 +424,22 @@ class GeoTaxonomy(proto.Message):
408424
"""
409425

410426
class Type(proto.Enum):
411-
r"""The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL."""
427+
r"""The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
428+
429+
Values:
430+
TYPE_UNSPECIFIED (0):
431+
The type is not specified.
432+
GLOBAL (1):
433+
The sku is global in nature, e.g. a license
434+
sku. Global skus are available in all regions,
435+
and so have an empty region list.
436+
REGIONAL (2):
437+
The sku is available in a specific region,
438+
e.g. "us-west2".
439+
MULTI_REGIONAL (3):
440+
The sku is associated with multiple regions,
441+
e.g. "us-west2" and "us-east1".
442+
"""
412443
TYPE_UNSPECIFIED = 0
413444
GLOBAL = 1
414445
REGIONAL = 2

samples/generated_samples/snippet_metadata_google.cloud.billing.v1.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-billing",
11-
"version": "1.9.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)