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

Commit a5c0a5e

Browse files
docs: Add documentation for enums (#159)
* 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>
1 parent 66bc792 commit a5c0a5e

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

google/cloud/vpcaccess_v1/services/vpc_access_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ def sample_delete_connector():
931931
# Done; return the response.
932932
return response
933933

934-
def __enter__(self):
934+
def __enter__(self) -> "VpcAccessServiceClient":
935935
return self
936936

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

google/cloud/vpcaccess_v1/types/vpc_access.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,26 @@ class Connector(proto.Message):
7171
"""
7272

7373
class State(proto.Enum):
74-
r"""State of a connector."""
74+
r"""State of a connector.
75+
76+
Values:
77+
STATE_UNSPECIFIED (0):
78+
Invalid state.
79+
READY (1):
80+
Connector is deployed and ready to receive
81+
traffic.
82+
CREATING (2):
83+
An Insert operation is in progress. Transient
84+
condition.
85+
DELETING (3):
86+
A Delete operation is in progress. Transient
87+
condition.
88+
ERROR (4):
89+
Connector is in a bad state, manual deletion
90+
recommended.
91+
UPDATING (5):
92+
The connector is being updated.
93+
"""
7594
STATE_UNSPECIFIED = 0
7695
READY = 1
7796
CREATING = 2

samples/generated_samples/snippet_metadata_google.cloud.vpcaccess.v1.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-vpc-access",
11-
"version": "1.7.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)