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 (#63)
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 20, 2023
1 parent aa99258 commit 7cad108
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
Expand Up @@ -821,7 +821,7 @@ def sample_get_instance():
# Done; return the response.
return response

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

def __exit__(self, type, value, traceback):
Expand Down
Expand Up @@ -4491,7 +4491,7 @@ def sample_delete_artifact():
metadata=metadata,
)

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

def __exit__(self, type, value, traceback):
Expand Down
23 changes: 22 additions & 1 deletion google/cloud/apigee_registry_v1/types/provisioning_service.py
Expand Up @@ -172,7 +172,28 @@ class Instance(proto.Message):
"""

class State(proto.Enum):
r"""State of the Instance."""
r"""State of the Instance.
Values:
STATE_UNSPECIFIED (0):
The default value. This value is used if the
state is omitted.
INACTIVE (1):
The Instance has not been initialized or has
been deleted.
CREATING (2):
The Instance is being created.
ACTIVE (3):
The Instance has been created and is ready
for use.
UPDATING (4):
The Instance is being updated.
DELETING (5):
The Instance is being deleted.
FAILED (6):
The Instance encountered an error during a
state change.
"""
STATE_UNSPECIFIED = 0
INACTIVE = 1
CREATING = 2
Expand Down
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-apigee-registry",
"version": "0.6.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 7cad108

Please sign in to comment.