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

Commit 21e3444

Browse files
docs: Add documentation for enums (#17)
* 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 d9b66f3 commit 21e3444

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

google/cloud/edgecontainer_v1/services/edge_container/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ def sample_delete_vpn_connection():
25742574
# Done; return the response.
25752575
return response
25762576

2577-
def __enter__(self):
2577+
def __enter__(self) -> "EdgeContainerClient":
25782578
return self
25792579

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

google/cloud/edgecontainer_v1/types/resources.py

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@
4545
class KmsKeyState(proto.Enum):
4646
r"""Represents the accessibility state of a customer-managed KMS
4747
key used for CMEK integration.
48+
49+
Values:
50+
KMS_KEY_STATE_UNSPECIFIED (0):
51+
Unspecified.
52+
KMS_KEY_STATE_KEY_AVAILABLE (1):
53+
The key is available for use, and dependent
54+
resources should be accessible.
55+
KMS_KEY_STATE_KEY_UNAVAILABLE (2):
56+
The key is unavailable for an unspecified
57+
reason. Dependent resources may be inaccessible.
4858
"""
4959
KMS_KEY_STATE_UNSPECIFIED = 0
5060
KMS_KEY_STATE_KEY_AVAILABLE = 1
@@ -456,7 +466,16 @@ class VpnConnection(proto.Message):
456466
"""
457467

458468
class BgpRoutingMode(proto.Enum):
459-
r"""Routing mode."""
469+
r"""Routing mode.
470+
471+
Values:
472+
BGP_ROUTING_MODE_UNSPECIFIED (0):
473+
Unknown.
474+
REGIONAL (1):
475+
Regional mode.
476+
GLOBAL (2):
477+
Global mode.
478+
"""
460479
BGP_ROUTING_MODE_UNSPECIFIED = 0
461480
REGIONAL = 1
462481
GLOBAL = 2
@@ -505,7 +524,18 @@ class Details(proto.Message):
505524
"""
506525

507526
class State(proto.Enum):
508-
r"""The current connection state."""
527+
r"""The current connection state.
528+
529+
Values:
530+
STATE_UNSPECIFIED (0):
531+
Unknown.
532+
STATE_CONNECTED (1):
533+
Connected.
534+
STATE_CONNECTING (2):
535+
Still connecting.
536+
STATE_ERROR (3):
537+
Error occurred.
538+
"""
509539
STATE_UNSPECIFIED = 0
510540
STATE_CONNECTED = 1
511541
STATE_CONNECTING = 2

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

0 commit comments

Comments
 (0)