Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 514bdf3

Browse files
docs: Add documentation for enums (#171)
* 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: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 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 440f5d0 commit 514bdf3

File tree

4 files changed

+32
-6
lines changed

4 files changed

+32
-6
lines changed

google/cloud/apigeeconnect_v1/services/connection_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def sample_list_connections():
554554
# Done; return the response.
555555
return response
556556

557-
def __enter__(self):
557+
def __enter__(self) -> "ConnectionServiceClient":
558558
return self
559559

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

google/cloud/apigeeconnect_v1/services/tether/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def request_generator():
507507
# Done; return the response.
508508
return response
509509

510-
def __enter__(self):
510+
def __enter__(self) -> "TetherClient":
511511
return self
512512

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

google/cloud/apigeeconnect_v1/types/tether.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,47 @@
3838

3939

4040
class Action(proto.Enum):
41-
r"""The action taken by agent."""
41+
r"""The action taken by agent.
42+
43+
Values:
44+
ACTION_UNSPECIFIED (0):
45+
Unspecified Action.
46+
OPEN_NEW_STREAM (1):
47+
Indicates that agent should open a new
48+
stream.
49+
"""
4250
ACTION_UNSPECIFIED = 0
4351
OPEN_NEW_STREAM = 1
4452

4553

4654
class TetherEndpoint(proto.Enum):
47-
r"""Endpoint indicates where the messages will be delivered."""
55+
r"""Endpoint indicates where the messages will be delivered.
56+
57+
Values:
58+
TETHER_ENDPOINT_UNSPECIFIED (0):
59+
Unspecified tether endpoint.
60+
APIGEE_MART (1):
61+
Apigee MART endpoint.
62+
APIGEE_RUNTIME (2):
63+
Apigee Runtime endpoint.
64+
APIGEE_MINT_RATING (3):
65+
Apigee Mint Rating endpoint.
66+
"""
4867
TETHER_ENDPOINT_UNSPECIFIED = 0
4968
APIGEE_MART = 1
5069
APIGEE_RUNTIME = 2
5170
APIGEE_MINT_RATING = 3
5271

5372

5473
class Scheme(proto.Enum):
55-
r"""HTTP Scheme."""
74+
r"""HTTP Scheme.
75+
76+
Values:
77+
SCHEME_UNSPECIFIED (0):
78+
Unspecified scheme.
79+
HTTPS (1):
80+
HTTPS protocol.
81+
"""
5682
SCHEME_UNSPECIFIED = 0
5783
HTTPS = 1
5884

samples/generated_samples/snippet_metadata_google.cloud.apigeeconnect.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-apigee-connect",
11-
"version": "1.7.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)