Skip to content

Commit a34064a

Browse files
chore: [Many APIs] Update gapic-generator-python to v1.19.1 (#13154)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 684571179 Source-Link: googleapis/googleapis@fbdc238 Source-Link: googleapis/googleapis-gen@3a2cdcf Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2Vjb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6IjNhMmNkY2ZiODBjMmQwZjVlYzBjYzY2M2MyYmFiMGE5NDg2MjI5ZDAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2VuZXR3b3JrLy5Pd2xCb3QueWFtbCIsImgiOiIzYTJjZGNmYjgwYzJkMGY1ZWMwY2M2NjNjMmJhYjBhOTQ4NjIyOWQwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVudGVycHJpc2Vrbm93bGVkZ2VncmFwaC8uT3dsQm90LnlhbWwiLCJoIjoiM2EyY2RjZmI4MGMyZDBmNWVjMGNjNjYzYzJiYWIwYTk0ODYyMjlkMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVzc2VudGlhbC1jb250YWN0cy8uT3dsQm90LnlhbWwiLCJoIjoiM2EyY2RjZmI4MGMyZDBmNWVjMGNjNjYzYzJiYWIwYTk0ODYyMjlkMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLXB1Ymxpc2hpbmcvLk93bEJvdC55YW1sIiwiaCI6IjNhMmNkY2ZiODBjMmQwZjVlYzBjYzY2M2MyYmFiMGE5NDg2MjI5ZDAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLy5Pd2xCb3QueWFtbCIsImgiOiIzYTJjZGNmYjgwYzJkMGY1ZWMwY2M2NjNjMmJhYjBhOTQ4NjIyOWQwIn0=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partheniou@google.com>
1 parent 1c5ad16 commit a34064a

253 files changed

Lines changed: 144063 additions & 109339 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-edgecontainer/google/cloud/edgecontainer_v1/services/edge_container/async_client.py

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,11 +2747,7 @@ async def list_operations(
27472747

27482748
# Wrap the RPC method; this adds retry and timeout information,
27492749
# and friendly error handling.
2750-
rpc = gapic_v1.method_async.wrap_method(
2751-
self._client._transport.list_operations,
2752-
default_timeout=None,
2753-
client_info=DEFAULT_CLIENT_INFO,
2754-
)
2750+
rpc = self.transport._wrapped_methods[self._client._transport.list_operations]
27552751

27562752
# Certain fields should be provided within the metadata header;
27572753
# add these here.
@@ -2804,11 +2800,7 @@ async def get_operation(
28042800

28052801
# Wrap the RPC method; this adds retry and timeout information,
28062802
# and friendly error handling.
2807-
rpc = gapic_v1.method_async.wrap_method(
2808-
self._client._transport.get_operation,
2809-
default_timeout=None,
2810-
client_info=DEFAULT_CLIENT_INFO,
2811-
)
2803+
rpc = self.transport._wrapped_methods[self._client._transport.get_operation]
28122804

28132805
# Certain fields should be provided within the metadata header;
28142806
# add these here.
@@ -2865,11 +2857,7 @@ async def delete_operation(
28652857

28662858
# Wrap the RPC method; this adds retry and timeout information,
28672859
# and friendly error handling.
2868-
rpc = gapic_v1.method_async.wrap_method(
2869-
self._client._transport.delete_operation,
2870-
default_timeout=None,
2871-
client_info=DEFAULT_CLIENT_INFO,
2872-
)
2860+
rpc = self.transport._wrapped_methods[self._client._transport.delete_operation]
28732861

28742862
# Certain fields should be provided within the metadata header;
28752863
# add these here.
@@ -2922,11 +2910,7 @@ async def cancel_operation(
29222910

29232911
# Wrap the RPC method; this adds retry and timeout information,
29242912
# and friendly error handling.
2925-
rpc = gapic_v1.method_async.wrap_method(
2926-
self._client._transport.cancel_operation,
2927-
default_timeout=None,
2928-
client_info=DEFAULT_CLIENT_INFO,
2929-
)
2913+
rpc = self.transport._wrapped_methods[self._client._transport.cancel_operation]
29302914

29312915
# Certain fields should be provided within the metadata header;
29322916
# add these here.
@@ -2976,11 +2960,7 @@ async def get_location(
29762960

29772961
# Wrap the RPC method; this adds retry and timeout information,
29782962
# and friendly error handling.
2979-
rpc = gapic_v1.method_async.wrap_method(
2980-
self._client._transport.get_location,
2981-
default_timeout=None,
2982-
client_info=DEFAULT_CLIENT_INFO,
2983-
)
2963+
rpc = self.transport._wrapped_methods[self._client._transport.get_location]
29842964

29852965
# Certain fields should be provided within the metadata header;
29862966
# add these here.
@@ -3033,11 +3013,7 @@ async def list_locations(
30333013

30343014
# Wrap the RPC method; this adds retry and timeout information,
30353015
# and friendly error handling.
3036-
rpc = gapic_v1.method_async.wrap_method(
3037-
self._client._transport.list_locations,
3038-
default_timeout=None,
3039-
client_info=DEFAULT_CLIENT_INFO,
3040-
)
3016+
rpc = self.transport._wrapped_methods[self._client._transport.list_locations]
30413017

30423018
# Certain fields should be provided within the metadata header;
30433019
# add these here.

packages/google-cloud-edgecontainer/google/cloud/edgecontainer_v1/services/edge_container/client.py

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3227,11 +3227,7 @@ def list_operations(
32273227

32283228
# Wrap the RPC method; this adds retry and timeout information,
32293229
# and friendly error handling.
3230-
rpc = gapic_v1.method.wrap_method(
3231-
self._transport.list_operations,
3232-
default_timeout=None,
3233-
client_info=DEFAULT_CLIENT_INFO,
3234-
)
3230+
rpc = self._transport._wrapped_methods[self._transport.list_operations]
32353231

32363232
# Certain fields should be provided within the metadata header;
32373233
# add these here.
@@ -3284,11 +3280,7 @@ def get_operation(
32843280

32853281
# Wrap the RPC method; this adds retry and timeout information,
32863282
# and friendly error handling.
3287-
rpc = gapic_v1.method.wrap_method(
3288-
self._transport.get_operation,
3289-
default_timeout=None,
3290-
client_info=DEFAULT_CLIENT_INFO,
3291-
)
3283+
rpc = self._transport._wrapped_methods[self._transport.get_operation]
32923284

32933285
# Certain fields should be provided within the metadata header;
32943286
# add these here.
@@ -3345,11 +3337,7 @@ def delete_operation(
33453337

33463338
# Wrap the RPC method; this adds retry and timeout information,
33473339
# and friendly error handling.
3348-
rpc = gapic_v1.method.wrap_method(
3349-
self._transport.delete_operation,
3350-
default_timeout=None,
3351-
client_info=DEFAULT_CLIENT_INFO,
3352-
)
3340+
rpc = self._transport._wrapped_methods[self._transport.delete_operation]
33533341

33543342
# Certain fields should be provided within the metadata header;
33553343
# add these here.
@@ -3402,11 +3390,7 @@ def cancel_operation(
34023390

34033391
# Wrap the RPC method; this adds retry and timeout information,
34043392
# and friendly error handling.
3405-
rpc = gapic_v1.method.wrap_method(
3406-
self._transport.cancel_operation,
3407-
default_timeout=None,
3408-
client_info=DEFAULT_CLIENT_INFO,
3409-
)
3393+
rpc = self._transport._wrapped_methods[self._transport.cancel_operation]
34103394

34113395
# Certain fields should be provided within the metadata header;
34123396
# add these here.
@@ -3456,11 +3440,7 @@ def get_location(
34563440

34573441
# Wrap the RPC method; this adds retry and timeout information,
34583442
# and friendly error handling.
3459-
rpc = gapic_v1.method.wrap_method(
3460-
self._transport.get_location,
3461-
default_timeout=None,
3462-
client_info=DEFAULT_CLIENT_INFO,
3463-
)
3443+
rpc = self._transport._wrapped_methods[self._transport.get_location]
34643444

34653445
# Certain fields should be provided within the metadata header;
34663446
# add these here.
@@ -3513,11 +3493,7 @@ def list_locations(
35133493

35143494
# Wrap the RPC method; this adds retry and timeout information,
35153495
# and friendly error handling.
3516-
rpc = gapic_v1.method.wrap_method(
3517-
self._transport.list_locations,
3518-
default_timeout=None,
3519-
client_info=DEFAULT_CLIENT_INFO,
3520-
)
3496+
rpc = self._transport._wrapped_methods[self._transport.list_locations]
35213497

35223498
# Certain fields should be provided within the metadata header;
35233499
# add these here.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
transport inheritance structure
3+
_______________________________
4+
5+
`EdgeContainerTransport` is the ABC for all transports.
6+
- public child `EdgeContainerGrpcTransport` for sync gRPC transport (defined in `grpc.py`).
7+
- public child `EdgeContainerGrpcAsyncIOTransport` for async gRPC transport (defined in `grpc_asyncio.py`).
8+
- private child `_BaseEdgeContainerRestTransport` for base REST transport with inner classes `_BaseMETHOD` (defined in `rest_base.py`).
9+
- public child `EdgeContainerRestTransport` for sync REST transport with inner classes `METHOD` derived from the parent's corresponding `_BaseMETHOD` classes (defined in `rest.py`).

packages/google-cloud-edgecontainer/google/cloud/edgecontainer_v1/services/edge_container/transports/base.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,36 @@ def _prep_wrapped_messages(self, client_info):
329329
default_timeout=60.0,
330330
client_info=client_info,
331331
),
332+
self.get_location: gapic_v1.method.wrap_method(
333+
self.get_location,
334+
default_timeout=None,
335+
client_info=client_info,
336+
),
337+
self.list_locations: gapic_v1.method.wrap_method(
338+
self.list_locations,
339+
default_timeout=None,
340+
client_info=client_info,
341+
),
342+
self.cancel_operation: gapic_v1.method.wrap_method(
343+
self.cancel_operation,
344+
default_timeout=None,
345+
client_info=client_info,
346+
),
347+
self.delete_operation: gapic_v1.method.wrap_method(
348+
self.delete_operation,
349+
default_timeout=None,
350+
client_info=client_info,
351+
),
352+
self.get_operation: gapic_v1.method.wrap_method(
353+
self.get_operation,
354+
default_timeout=None,
355+
client_info=client_info,
356+
),
357+
self.list_operations: gapic_v1.method.wrap_method(
358+
self.list_operations,
359+
default_timeout=None,
360+
client_info=client_info,
361+
),
332362
}
333363

334364
def close(self):

0 commit comments

Comments
 (0)