Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
docs: Add documentation for enums (#177)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jan 23, 2023
1 parent 38c56b6 commit 334a497
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def sample_search_versions():
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "PrivateCatalogClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
15 changes: 14 additions & 1 deletion google/cloud/privatecatalog_v1beta1/types/private_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,20 @@ class AssetReference(proto.Message):
"""

class AssetValidationState(proto.Enum):
r"""Possible validation steates of an asset reference."""
r"""Possible validation steates of an asset reference.
Values:
ASSET_VALIDATION_STATE_UNSPECIFIED (0):
Unknown state.
PENDING (1):
The validation is still in process.
VALID (2):
The validation is done and the asset
reference is valid.
INVALID (3):
The validation is done and the asset
reference is invalid.
"""
ASSET_VALIDATION_STATE_UNSPECIFIED = 0
PENDING = 1
VALID = 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-private-catalog",
"version": "0.9.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 334a497

Please sign in to comment.