diff --git a/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/client.py b/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/client.py index 3292893..d6a31b5 100644 --- a/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/client.py +++ b/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/client.py @@ -975,7 +975,7 @@ def sample_delete_app_gateway(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "AppGatewaysServiceClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/beyondcorp_appgateways_v1/types/app_gateways_service.py b/google/cloud/beyondcorp_appgateways_v1/types/app_gateways_service.py index d68c2ac..34dbec7 100644 --- a/google/cloud/beyondcorp_appgateways_v1/types/app_gateways_service.py +++ b/google/cloud/beyondcorp_appgateways_v1/types/app_gateways_service.py @@ -287,12 +287,36 @@ class AppGateway(proto.Message): class Type(proto.Enum): r"""Enum containing list of all possible network connectivity options supported by BeyondCorp AppGateway. + + Values: + TYPE_UNSPECIFIED (0): + Default value. This value is unused. + TCP_PROXY (1): + TCP Proxy based BeyondCorp Connection. API + will default to this if unset. """ TYPE_UNSPECIFIED = 0 TCP_PROXY = 1 class State(proto.Enum): - r"""Represents the different states of an AppGateway.""" + r"""Represents the different states of an AppGateway. + + Values: + STATE_UNSPECIFIED (0): + Default value. This value is unused. + CREATING (1): + AppGateway is being created. + CREATED (2): + AppGateway has been created. + UPDATING (3): + AppGateway's configuration is being updated. + DELETING (4): + AppGateway is being deleted. + DOWN (5): + AppGateway is down and may be restored in the + future. This happens when CCFE sends + ProjectState = OFF. + """ STATE_UNSPECIFIED = 0 CREATING = 1 CREATED = 2 @@ -303,6 +327,13 @@ class State(proto.Enum): class HostType(proto.Enum): r"""Enum containing list of all possible host types supported by BeyondCorp Connection. + + Values: + HOST_TYPE_UNSPECIFIED (0): + Default value. This value is unused. + GCP_REGIONAL_MIG (1): + AppGateway hosted in a GCP regional managed + instance group. """ HOST_TYPE_UNSPECIFIED = 0 GCP_REGIONAL_MIG = 1 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json index f2a97e3..4146eed 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-beyondcorp-appgateways", - "version": "0.4.0" + "version": "0.1.0" }, "snippets": [ {