Skip to content

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] authored Jan 20, 2023
1 parent 781efd5 commit c87b2bb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 c87b2bb

Please sign in to comment.