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 (#159)
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: 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 23, 2023
1 parent 66bc792 commit a5c0a5e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ def sample_delete_connector():
# Done; return the response.
return response

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

def __exit__(self, type, value, traceback):
Expand Down
21 changes: 20 additions & 1 deletion google/cloud/vpcaccess_v1/types/vpc_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,26 @@ class Connector(proto.Message):
"""

class State(proto.Enum):
r"""State of a connector."""
r"""State of a connector.
Values:
STATE_UNSPECIFIED (0):
Invalid state.
READY (1):
Connector is deployed and ready to receive
traffic.
CREATING (2):
An Insert operation is in progress. Transient
condition.
DELETING (3):
A Delete operation is in progress. Transient
condition.
ERROR (4):
Connector is in a bad state, manual deletion
recommended.
UPDATING (5):
The connector is being updated.
"""
STATE_UNSPECIFIED = 0
READY = 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-vpc-access",
"version": "1.7.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit a5c0a5e

Please sign in to comment.