Skip to content

Commit

Permalink
docs: Add documentation for enums (#48)
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 fbc11b7 commit 52b90c0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def sample_delete_client_connector_service():
# Done; return the response.
return response

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

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,27 @@ class ClientConnectorService(proto.Message):
"""

class State(proto.Enum):
r"""Represents the different states of a ClientConnectorService."""
r"""Represents the different states of a ClientConnectorService.
Values:
STATE_UNSPECIFIED (0):
Default value. This value is unused.
CREATING (1):
ClientConnectorService is being created.
UPDATING (2):
ClientConnectorService is being updated.
DELETING (3):
ClientConnectorService is being deleted.
RUNNING (4):
ClientConnectorService is running.
DOWN (5):
ClientConnectorService is down and may be
restored in the future. This happens when CCFE
sends ProjectState = OFF.
ERROR (6):
ClientConnectorService encountered an error
and is in an indeterministic state.
"""
STATE_UNSPECIFIED = 0
CREATING = 1
UPDATING = 2
Expand Down Expand Up @@ -99,7 +119,14 @@ class Config(proto.Message):
"""

class TransportProtocol(proto.Enum):
r"""The protocol used to connect to the server."""
r"""The protocol used to connect to the server.
Values:
TRANSPORT_PROTOCOL_UNSPECIFIED (0):
Default value. This value is unused.
TCP (1):
TCP protocol.
"""
TRANSPORT_PROTOCOL_UNSPECIFIED = 0
TCP = 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-beyondcorp-clientconnectorservices",
"version": "0.4.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 52b90c0

Please sign in to comment.