Visitar URL original
chore: use gapic-generator-python 0.65.1 (#105) · googleapis/google-cloud-python@2ddb37d · GitHub
Skip to content

Commit 2ddb37d

Browse files
chore: use gapic-generator-python 0.65.1 (#105)
* chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: googleapis/googleapis@2a27391 Source-Link: googleapis/googleapis-gen@ab6756a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 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 ed2de3a commit 2ddb37d

3 files changed

Lines changed: 158 additions & 10 deletions

File tree

‎packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/async_client.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def sample_list_connections():
288288
maximum=60.0,
289289
multiplier=1.3,
290290
predicate=retries.if_exception_type(
291-
core_exceptions.GoogleAPICallError,
291+
core_exceptions.ServiceUnavailable,
292+
core_exceptions.Unknown,
292293
),
293294
deadline=60.0,
294295
),

‎packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/transports/base.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def _prep_wrapped_messages(self, client_info):
128128
maximum=60.0,
129129
multiplier=1.3,
130130
predicate=retries.if_exception_type(
131-
core_exceptions.GoogleAPICallError,
131+
core_exceptions.ServiceUnavailable,
132+
core_exceptions.Unknown,
132133
),
133134
deadline=60.0,
134135
),

‎packages/google-cloud-apigee-connect/samples/generated_samples/snippet_metadata_apigeeconnect_v1.json‎

Lines changed: 154 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,61 @@
11
{
2+
"clientLibrary": {
3+
"apis": [
4+
{
5+
"id": "google.cloud.apigeeconnect.v1",
6+
"version": "v1"
7+
}
8+
],
9+
"language": "PYTHON",
10+
"name": "google-cloud-apigee-connect"
11+
},
212
"snippets": [
313
{
14+
"canonical": true,
415
"clientMethod": {
516
"async": true,
17+
"client": {
18+
"fullName": "google.cloud.apigeeconnect_v1.ConnectionServiceAsyncClient",
19+
"shortName": "ConnectionServiceAsyncClient"
20+
},
21+
"fullName": "google.cloud.apigeeconnect_v1.ConnectionServiceAsyncClient.list_connections",
622
"method": {
23+
"fullName": "google.cloud.apigeeconnect.v1.ConnectionService.ListConnections",
724
"service": {
25+
"fullName": "google.cloud.apigeeconnect.v1.ConnectionService",
826
"shortName": "ConnectionService"
927
},
1028
"shortName": "ListConnections"
11-
}
29+
},
30+
"parameters": [
31+
{
32+
"name": "request",
33+
"type": "google.cloud.apigeeconnect_v1.types.ListConnectionsRequest"
34+
},
35+
{
36+
"name": "parent",
37+
"type": "str"
38+
},
39+
{
40+
"name": "retry",
41+
"type": "google.api_core.retry.Retry"
42+
},
43+
{
44+
"name": "timeout",
45+
"type": "float"
46+
},
47+
{
48+
"name": "metadata",
49+
"type": "Sequence[Tuple[str, str]"
50+
}
51+
],
52+
"resultType": "google.cloud.apigeeconnect_v1.services.connection_service.pagers.ListConnectionsAsyncPager",
53+
"shortName": "list_connections"
1254
},
55+
"description": "Sample for ListConnections",
1356
"file": "apigeeconnect_v1_generated_connection_service_list_connections_async.py",
57+
"language": "PYTHON",
58+
"origin": "API_DEFINITION",
1459
"regionTag": "apigeeconnect_v1_generated_ConnectionService_ListConnections_async",
1560
"segments": [
1661
{
@@ -43,18 +88,54 @@
4388
"start": 42,
4489
"type": "RESPONSE_HANDLING"
4590
}
46-
]
91+
],
92+
"title": "apigeeconnect_v1_generated_connection_service_list_connections_async.py"
4793
},
4894
{
95+
"canonical": true,
4996
"clientMethod": {
97+
"client": {
98+
"fullName": "google.cloud.apigeeconnect_v1.ConnectionServiceClient",
99+
"shortName": "ConnectionServiceClient"
100+
},
101+
"fullName": "google.cloud.apigeeconnect_v1.ConnectionServiceClient.list_connections",
50102
"method": {
103+
"fullName": "google.cloud.apigeeconnect.v1.ConnectionService.ListConnections",
51104
"service": {
105+
"fullName": "google.cloud.apigeeconnect.v1.ConnectionService",
52106
"shortName": "ConnectionService"
53107
},
54108
"shortName": "ListConnections"
55-
}
109+
},
110+
"parameters": [
111+
{
112+
"name": "request",
113+
"type": "google.cloud.apigeeconnect_v1.types.ListConnectionsRequest"
114+
},
115+
{
116+
"name": "parent",
117+
"type": "str"
118+
},
119+
{
120+
"name": "retry",
121+
"type": "google.api_core.retry.Retry"
122+
},
123+
{
124+
"name": "timeout",
125+
"type": "float"
126+
},
127+
{
128+
"name": "metadata",
129+
"type": "Sequence[Tuple[str, str]"
130+
}
131+
],
132+
"resultType": "google.cloud.apigeeconnect_v1.services.connection_service.pagers.ListConnectionsPager",
133+
"shortName": "list_connections"
56134
},
135+
"description": "Sample for ListConnections",
57136
"file": "apigeeconnect_v1_generated_connection_service_list_connections_sync.py",
137+
"language": "PYTHON",
138+
"origin": "API_DEFINITION",
58139
"regionTag": "apigeeconnect_v1_generated_ConnectionService_ListConnections_sync",
59140
"segments": [
60141
{
@@ -87,19 +168,51 @@
87168
"start": 42,
88169
"type": "RESPONSE_HANDLING"
89170
}
90-
]
171+
],
172+
"title": "apigeeconnect_v1_generated_connection_service_list_connections_sync.py"
91173
},
92174
{
175+
"canonical": true,
93176
"clientMethod": {
94177
"async": true,
178+
"client": {
179+
"fullName": "google.cloud.apigeeconnect_v1.TetherAsyncClient",
180+
"shortName": "TetherAsyncClient"
181+
},
182+
"fullName": "google.cloud.apigeeconnect_v1.TetherAsyncClient.egress",
95183
"method": {
184+
"fullName": "google.cloud.apigeeconnect.v1.Tether.Egress",
96185
"service": {
186+
"fullName": "google.cloud.apigeeconnect.v1.Tether",
97187
"shortName": "Tether"
98188
},
99189
"shortName": "Egress"
100-
}
190+
},
191+
"parameters": [
192+
{
193+
"name": "requests",
194+
"type": "Iterator[google.cloud.apigeeconnect_v1.types.EgressResponse]"
195+
},
196+
{
197+
"name": "retry",
198+
"type": "google.api_core.retry.Retry"
199+
},
200+
{
201+
"name": "timeout",
202+
"type": "float"
203+
},
204+
{
205+
"name": "metadata",
206+
"type": "Sequence[Tuple[str, str]"
207+
}
208+
],
209+
"resultType": "Iterable[google.cloud.apigeeconnect_v1.types.EgressRequest]",
210+
"shortName": "egress"
101211
},
212+
"description": "Sample for Egress",
102213
"file": "apigeeconnect_v1_generated_tether_egress_async.py",
214+
"language": "PYTHON",
215+
"origin": "API_DEFINITION",
103216
"regionTag": "apigeeconnect_v1_generated_Tether_Egress_async",
104217
"segments": [
105218
{
@@ -132,18 +245,50 @@
132245
"start": 51,
133246
"type": "RESPONSE_HANDLING"
134247
}
135-
]
248+
],
249+
"title": "apigeeconnect_v1_generated_tether_egress_async.py"
136250
},
137251
{
252+
"canonical": true,
138253
"clientMethod": {
254+
"client": {
255+
"fullName": "google.cloud.apigeeconnect_v1.TetherClient",
256+
"shortName": "TetherClient"
257+
},
258+
"fullName": "google.cloud.apigeeconnect_v1.TetherClient.egress",
139259
"method": {
260+
"fullName": "google.cloud.apigeeconnect.v1.Tether.Egress",
140261
"service": {
262+
"fullName": "google.cloud.apigeeconnect.v1.Tether",
141263
"shortName": "Tether"
142264
},
143265
"shortName": "Egress"
144-
}
266+
},
267+
"parameters": [
268+
{
269+
"name": "requests",
270+
"type": "Iterator[google.cloud.apigeeconnect_v1.types.EgressResponse]"
271+
},
272+
{
273+
"name": "retry",
274+
"type": "google.api_core.retry.Retry"
275+
},
276+
{
277+
"name": "timeout",
278+
"type": "float"
279+
},
280+
{
281+
"name": "metadata",
282+
"type": "Sequence[Tuple[str, str]"
283+
}
284+
],
285+
"resultType": "Iterable[google.cloud.apigeeconnect_v1.types.EgressRequest]",
286+
"shortName": "egress"
145287
},
288+
"description": "Sample for Egress",
146289
"file": "apigeeconnect_v1_generated_tether_egress_sync.py",
290+
"language": "PYTHON",
291+
"origin": "API_DEFINITION",
147292
"regionTag": "apigeeconnect_v1_generated_Tether_Egress_sync",
148293
"segments": [
149294
{
@@ -176,7 +321,8 @@
176321
"start": 51,
177322
"type": "RESPONSE_HANDLING"
178323
}
179-
]
324+
],
325+
"title": "apigeeconnect_v1_generated_tether_egress_sync.py"
180326
}
181327
]
182328
}

0 commit comments

Comments
 (0)