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

Commit

Permalink
docs: Add documentation for enums (#52)
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] committed Jan 20, 2023
1 parent 0fa7466 commit 0058c52
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ def sample_resolve_app_connections():
# Done; return the response.
return response

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

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,37 @@ class AppConnection(proto.Message):
class Type(proto.Enum):
r"""Enum containing list of all possible network connectivity
options supported by BeyondCorp AppConnection.
Values:
TYPE_UNSPECIFIED (0):
Default value. This value is unused.
TCP_PROXY (1):
TCP Proxy based BeyondCorp AppConnection. API
will default to this if unset.
"""
TYPE_UNSPECIFIED = 0
TCP_PROXY = 1

class State(proto.Enum):
r"""Represents the different states of a AppConnection."""
r"""Represents the different states of a AppConnection.
Values:
STATE_UNSPECIFIED (0):
Default value. This value is unused.
CREATING (1):
AppConnection is being created.
CREATED (2):
AppConnection has been created.
UPDATING (3):
AppConnection's configuration is being
updated.
DELETING (4):
AppConnection is being deleted.
DOWN (5):
AppConnection is down and may be restored in
the future. This happens when CCFE sends
ProjectState = OFF.
"""
STATE_UNSPECIFIED = 0
CREATING = 1
CREATED = 2
Expand Down Expand Up @@ -516,7 +541,15 @@ class Gateway(proto.Message):
"""

class Type(proto.Enum):
r"""Enum listing possible gateway hosting options."""
r"""Enum listing possible gateway hosting options.
Values:
TYPE_UNSPECIFIED (0):
Default value. This value is unused.
GCP_REGIONAL_MIG (1):
Gateway hosted in a GCP regional managed
instance group.
"""
TYPE_UNSPECIFIED = 0
GCP_REGIONAL_MIG = 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-appconnections",
"version": "0.4.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 0058c52

Please sign in to comment.