Skip to content

Commit 52b90c0

Browse files
docs: Add documentation for enums (#48)
* 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>
1 parent fbc11b7 commit 52b90c0

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ def sample_delete_client_connector_service():
11861186
# Done; return the response.
11871187
return response
11881188

1189-
def __enter__(self):
1189+
def __enter__(self) -> "ClientConnectorServicesServiceClient":
11901190
return self
11911191

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

packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/types/client_connector_services_service.py

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,27 @@ class ClientConnectorService(proto.Message):
6363
"""
6464

6565
class State(proto.Enum):
66-
r"""Represents the different states of a ClientConnectorService."""
66+
r"""Represents the different states of a ClientConnectorService.
67+
68+
Values:
69+
STATE_UNSPECIFIED (0):
70+
Default value. This value is unused.
71+
CREATING (1):
72+
ClientConnectorService is being created.
73+
UPDATING (2):
74+
ClientConnectorService is being updated.
75+
DELETING (3):
76+
ClientConnectorService is being deleted.
77+
RUNNING (4):
78+
ClientConnectorService is running.
79+
DOWN (5):
80+
ClientConnectorService is down and may be
81+
restored in the future. This happens when CCFE
82+
sends ProjectState = OFF.
83+
ERROR (6):
84+
ClientConnectorService encountered an error
85+
and is in an indeterministic state.
86+
"""
6787
STATE_UNSPECIFIED = 0
6888
CREATING = 1
6989
UPDATING = 2
@@ -99,7 +119,14 @@ class Config(proto.Message):
99119
"""
100120

101121
class TransportProtocol(proto.Enum):
102-
r"""The protocol used to connect to the server."""
122+
r"""The protocol used to connect to the server.
123+
124+
Values:
125+
TRANSPORT_PROTOCOL_UNSPECIFIED (0):
126+
Default value. This value is unused.
127+
TCP (1):
128+
TCP protocol.
129+
"""
103130
TRANSPORT_PROTOCOL_UNSPECIFIED = 0
104131
TCP = 1
105132

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

0 commit comments

Comments
 (0)