Skip to content

Commit 660d976

Browse files
docs: Add documentation for enums (#177)
* 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 8f9569c commit 660d976

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

packages/google-cloud-private-catalog/google/cloud/privatecatalog_v1beta1/services/private_catalog/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def sample_search_versions():
784784
# Done; return the response.
785785
return response
786786

787-
def __enter__(self):
787+
def __enter__(self) -> "PrivateCatalogClient":
788788
return self
789789

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

packages/google-cloud-private-catalog/google/cloud/privatecatalog_v1beta1/types/private_catalog.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,20 @@ class AssetReference(proto.Message):
583583
"""
584584

585585
class AssetValidationState(proto.Enum):
586-
r"""Possible validation steates of an asset reference."""
586+
r"""Possible validation steates of an asset reference.
587+
588+
Values:
589+
ASSET_VALIDATION_STATE_UNSPECIFIED (0):
590+
Unknown state.
591+
PENDING (1):
592+
The validation is still in process.
593+
VALID (2):
594+
The validation is done and the asset
595+
reference is valid.
596+
INVALID (3):
597+
The validation is done and the asset
598+
reference is invalid.
599+
"""
587600
ASSET_VALIDATION_STATE_UNSPECIFIED = 0
588601
PENDING = 1
589602
VALID = 2

packages/google-cloud-private-catalog/samples/generated_samples/snippet_metadata_google.cloud.privatecatalog.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-private-catalog",
11-
"version": "0.9.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)