Skip to content

Commit fe84916

Browse files
docs: Add documentation for enums (#45)
* 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 4e4c4f2 commit fe84916

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

packages/google-cloud-beyondcorp-appgateways/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def sample_delete_app_gateway():
975975
# Done; return the response.
976976
return response
977977

978-
def __enter__(self):
978+
def __enter__(self) -> "AppGatewaysServiceClient":
979979
return self
980980

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

packages/google-cloud-beyondcorp-appgateways/google/cloud/beyondcorp_appgateways_v1/types/app_gateways_service.py

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,36 @@ class AppGateway(proto.Message):
287287
class Type(proto.Enum):
288288
r"""Enum containing list of all possible network connectivity
289289
options supported by BeyondCorp AppGateway.
290+
291+
Values:
292+
TYPE_UNSPECIFIED (0):
293+
Default value. This value is unused.
294+
TCP_PROXY (1):
295+
TCP Proxy based BeyondCorp Connection. API
296+
will default to this if unset.
290297
"""
291298
TYPE_UNSPECIFIED = 0
292299
TCP_PROXY = 1
293300

294301
class State(proto.Enum):
295-
r"""Represents the different states of an AppGateway."""
302+
r"""Represents the different states of an AppGateway.
303+
304+
Values:
305+
STATE_UNSPECIFIED (0):
306+
Default value. This value is unused.
307+
CREATING (1):
308+
AppGateway is being created.
309+
CREATED (2):
310+
AppGateway has been created.
311+
UPDATING (3):
312+
AppGateway's configuration is being updated.
313+
DELETING (4):
314+
AppGateway is being deleted.
315+
DOWN (5):
316+
AppGateway is down and may be restored in the
317+
future. This happens when CCFE sends
318+
ProjectState = OFF.
319+
"""
296320
STATE_UNSPECIFIED = 0
297321
CREATING = 1
298322
CREATED = 2
@@ -303,6 +327,13 @@ class State(proto.Enum):
303327
class HostType(proto.Enum):
304328
r"""Enum containing list of all possible host types supported by
305329
BeyondCorp Connection.
330+
331+
Values:
332+
HOST_TYPE_UNSPECIFIED (0):
333+
Default value. This value is unused.
334+
GCP_REGIONAL_MIG (1):
335+
AppGateway hosted in a GCP regional managed
336+
instance group.
306337
"""
307338
HOST_TYPE_UNSPECIFIED = 0
308339
GCP_REGIONAL_MIG = 1

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

0 commit comments

Comments
 (0)