google-cloud-beyondcorp-clientgateways 0.4.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. google/cloud/beyondcorp_clientgateways/__init__.py +47 -0
  2. google/cloud/beyondcorp_clientgateways/gapic_version.py +16 -0
  3. google/cloud/beyondcorp_clientgateways/py.typed +2 -0
  4. google/cloud/beyondcorp_clientgateways_v1/__init__.py +45 -0
  5. google/cloud/beyondcorp_clientgateways_v1/gapic_metadata.json +88 -0
  6. google/cloud/beyondcorp_clientgateways_v1/gapic_version.py +16 -0
  7. google/cloud/beyondcorp_clientgateways_v1/py.typed +2 -0
  8. google/cloud/beyondcorp_clientgateways_v1/services/__init__.py +15 -0
  9. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/__init__.py +22 -0
  10. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/async_client.py +1489 -0
  11. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/client.py +1932 -0
  12. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/pagers.py +201 -0
  13. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/__init__.py +41 -0
  14. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/base.py +347 -0
  15. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc.py +663 -0
  16. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc_asyncio.py +747 -0
  17. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/rest.py +2591 -0
  18. google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/rest_base.py +592 -0
  19. google/cloud/beyondcorp_clientgateways_v1/types/__init__.py +34 -0
  20. google/cloud/beyondcorp_clientgateways_v1/types/client_gateways_service.py +381 -0
  21. google_cloud_beyondcorp_clientgateways-0.4.16.dist-info/LICENSE +202 -0
  22. google_cloud_beyondcorp_clientgateways-0.4.16.dist-info/METADATA +229 -0
  23. google_cloud_beyondcorp_clientgateways-0.4.16.dist-info/RECORD +25 -0
  24. google_cloud_beyondcorp_clientgateways-0.4.16.dist-info/WHEEL +5 -0
  25. google_cloud_beyondcorp_clientgateways-0.4.16.dist-info/top_level.txt +1 -0
@@ -0,0 +1,592 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ import json # type: ignore
17
+ import re
18
+ from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
19
+
20
+ from google.api_core import gapic_v1, path_template
21
+ from google.cloud.location import locations_pb2 # type: ignore
22
+ from google.iam.v1 import iam_policy_pb2 # type: ignore
23
+ from google.iam.v1 import policy_pb2 # type: ignore
24
+ from google.longrunning import operations_pb2 # type: ignore
25
+ from google.protobuf import json_format
26
+
27
+ from google.cloud.beyondcorp_clientgateways_v1.types import client_gateways_service
28
+
29
+ from .base import DEFAULT_CLIENT_INFO, ClientGatewaysServiceTransport
30
+
31
+
32
+ class _BaseClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
33
+ """Base REST backend transport for ClientGatewaysService.
34
+
35
+ Note: This class is not meant to be used directly. Use its sync and
36
+ async sub-classes instead.
37
+
38
+ This class defines the same methods as the primary client, so the
39
+ primary client can load the underlying transport implementation
40
+ and call it.
41
+
42
+ It sends JSON representations of protocol buffers over HTTP/1.1
43
+ """
44
+
45
+ def __init__(
46
+ self,
47
+ *,
48
+ host: str = "beyondcorp.googleapis.com",
49
+ credentials: Optional[Any] = None,
50
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
51
+ always_use_jwt_access: Optional[bool] = False,
52
+ url_scheme: str = "https",
53
+ api_audience: Optional[str] = None,
54
+ ) -> None:
55
+ """Instantiate the transport.
56
+ Args:
57
+ host (Optional[str]):
58
+ The hostname to connect to (default: 'beyondcorp.googleapis.com').
59
+ credentials (Optional[Any]): The
60
+ authorization credentials to attach to requests. These
61
+ credentials identify the application to the service; if none
62
+ are specified, the client will attempt to ascertain the
63
+ credentials from the environment.
64
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
65
+ The client info used to send a user-agent string along with
66
+ API requests. If ``None``, then default info will be used.
67
+ Generally, you only need to set this if you are developing
68
+ your own client library.
69
+ always_use_jwt_access (Optional[bool]): Whether self signed JWT should
70
+ be used for service account credentials.
71
+ url_scheme: the protocol scheme for the API endpoint. Normally
72
+ "https", but for testing or local servers,
73
+ "http" can be specified.
74
+ """
75
+ # Run the base constructor
76
+ maybe_url_match = re.match("^(?P<scheme>http(?:s)?://)?(?P<host>.*)$", host)
77
+ if maybe_url_match is None:
78
+ raise ValueError(
79
+ f"Unexpected hostname structure: {host}"
80
+ ) # pragma: NO COVER
81
+
82
+ url_match_items = maybe_url_match.groupdict()
83
+
84
+ host = f"{url_scheme}://{host}" if not url_match_items["scheme"] else host
85
+
86
+ super().__init__(
87
+ host=host,
88
+ credentials=credentials,
89
+ client_info=client_info,
90
+ always_use_jwt_access=always_use_jwt_access,
91
+ api_audience=api_audience,
92
+ )
93
+
94
+ class _BaseCreateClientGateway:
95
+ def __hash__(self): # pragma: NO COVER
96
+ return NotImplementedError("__hash__ must be implemented.")
97
+
98
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
99
+
100
+ @classmethod
101
+ def _get_unset_required_fields(cls, message_dict):
102
+ return {
103
+ k: v
104
+ for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items()
105
+ if k not in message_dict
106
+ }
107
+
108
+ @staticmethod
109
+ def _get_http_options():
110
+ http_options: List[Dict[str, str]] = [
111
+ {
112
+ "method": "post",
113
+ "uri": "/v1/{parent=projects/*/locations/*}/clientGateways",
114
+ "body": "client_gateway",
115
+ },
116
+ ]
117
+ return http_options
118
+
119
+ @staticmethod
120
+ def _get_transcoded_request(http_options, request):
121
+ pb_request = client_gateways_service.CreateClientGatewayRequest.pb(request)
122
+ transcoded_request = path_template.transcode(http_options, pb_request)
123
+ return transcoded_request
124
+
125
+ @staticmethod
126
+ def _get_request_body_json(transcoded_request):
127
+ # Jsonify the request body
128
+
129
+ body = json_format.MessageToJson(
130
+ transcoded_request["body"], use_integers_for_enums=True
131
+ )
132
+ return body
133
+
134
+ @staticmethod
135
+ def _get_query_params_json(transcoded_request):
136
+ query_params = json.loads(
137
+ json_format.MessageToJson(
138
+ transcoded_request["query_params"],
139
+ use_integers_for_enums=True,
140
+ )
141
+ )
142
+ query_params.update(
143
+ _BaseClientGatewaysServiceRestTransport._BaseCreateClientGateway._get_unset_required_fields(
144
+ query_params
145
+ )
146
+ )
147
+
148
+ query_params["$alt"] = "json;enum-encoding=int"
149
+ return query_params
150
+
151
+ class _BaseDeleteClientGateway:
152
+ def __hash__(self): # pragma: NO COVER
153
+ return NotImplementedError("__hash__ must be implemented.")
154
+
155
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
156
+
157
+ @classmethod
158
+ def _get_unset_required_fields(cls, message_dict):
159
+ return {
160
+ k: v
161
+ for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items()
162
+ if k not in message_dict
163
+ }
164
+
165
+ @staticmethod
166
+ def _get_http_options():
167
+ http_options: List[Dict[str, str]] = [
168
+ {
169
+ "method": "delete",
170
+ "uri": "/v1/{name=projects/*/locations/*/clientGateways/*}",
171
+ },
172
+ ]
173
+ return http_options
174
+
175
+ @staticmethod
176
+ def _get_transcoded_request(http_options, request):
177
+ pb_request = client_gateways_service.DeleteClientGatewayRequest.pb(request)
178
+ transcoded_request = path_template.transcode(http_options, pb_request)
179
+ return transcoded_request
180
+
181
+ @staticmethod
182
+ def _get_query_params_json(transcoded_request):
183
+ query_params = json.loads(
184
+ json_format.MessageToJson(
185
+ transcoded_request["query_params"],
186
+ use_integers_for_enums=True,
187
+ )
188
+ )
189
+ query_params.update(
190
+ _BaseClientGatewaysServiceRestTransport._BaseDeleteClientGateway._get_unset_required_fields(
191
+ query_params
192
+ )
193
+ )
194
+
195
+ query_params["$alt"] = "json;enum-encoding=int"
196
+ return query_params
197
+
198
+ class _BaseGetClientGateway:
199
+ def __hash__(self): # pragma: NO COVER
200
+ return NotImplementedError("__hash__ must be implemented.")
201
+
202
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
203
+
204
+ @classmethod
205
+ def _get_unset_required_fields(cls, message_dict):
206
+ return {
207
+ k: v
208
+ for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items()
209
+ if k not in message_dict
210
+ }
211
+
212
+ @staticmethod
213
+ def _get_http_options():
214
+ http_options: List[Dict[str, str]] = [
215
+ {
216
+ "method": "get",
217
+ "uri": "/v1/{name=projects/*/locations/*/clientGateways/*}",
218
+ },
219
+ ]
220
+ return http_options
221
+
222
+ @staticmethod
223
+ def _get_transcoded_request(http_options, request):
224
+ pb_request = client_gateways_service.GetClientGatewayRequest.pb(request)
225
+ transcoded_request = path_template.transcode(http_options, pb_request)
226
+ return transcoded_request
227
+
228
+ @staticmethod
229
+ def _get_query_params_json(transcoded_request):
230
+ query_params = json.loads(
231
+ json_format.MessageToJson(
232
+ transcoded_request["query_params"],
233
+ use_integers_for_enums=True,
234
+ )
235
+ )
236
+ query_params.update(
237
+ _BaseClientGatewaysServiceRestTransport._BaseGetClientGateway._get_unset_required_fields(
238
+ query_params
239
+ )
240
+ )
241
+
242
+ query_params["$alt"] = "json;enum-encoding=int"
243
+ return query_params
244
+
245
+ class _BaseListClientGateways:
246
+ def __hash__(self): # pragma: NO COVER
247
+ return NotImplementedError("__hash__ must be implemented.")
248
+
249
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
250
+
251
+ @classmethod
252
+ def _get_unset_required_fields(cls, message_dict):
253
+ return {
254
+ k: v
255
+ for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items()
256
+ if k not in message_dict
257
+ }
258
+
259
+ @staticmethod
260
+ def _get_http_options():
261
+ http_options: List[Dict[str, str]] = [
262
+ {
263
+ "method": "get",
264
+ "uri": "/v1/{parent=projects/*/locations/*}/clientGateways",
265
+ },
266
+ ]
267
+ return http_options
268
+
269
+ @staticmethod
270
+ def _get_transcoded_request(http_options, request):
271
+ pb_request = client_gateways_service.ListClientGatewaysRequest.pb(request)
272
+ transcoded_request = path_template.transcode(http_options, pb_request)
273
+ return transcoded_request
274
+
275
+ @staticmethod
276
+ def _get_query_params_json(transcoded_request):
277
+ query_params = json.loads(
278
+ json_format.MessageToJson(
279
+ transcoded_request["query_params"],
280
+ use_integers_for_enums=True,
281
+ )
282
+ )
283
+ query_params.update(
284
+ _BaseClientGatewaysServiceRestTransport._BaseListClientGateways._get_unset_required_fields(
285
+ query_params
286
+ )
287
+ )
288
+
289
+ query_params["$alt"] = "json;enum-encoding=int"
290
+ return query_params
291
+
292
+ class _BaseGetLocation:
293
+ def __hash__(self): # pragma: NO COVER
294
+ return NotImplementedError("__hash__ must be implemented.")
295
+
296
+ @staticmethod
297
+ def _get_http_options():
298
+ http_options: List[Dict[str, str]] = [
299
+ {
300
+ "method": "get",
301
+ "uri": "/v1/{name=projects/*/locations/*}",
302
+ },
303
+ ]
304
+ return http_options
305
+
306
+ @staticmethod
307
+ def _get_transcoded_request(http_options, request):
308
+ request_kwargs = json_format.MessageToDict(request)
309
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
310
+ return transcoded_request
311
+
312
+ @staticmethod
313
+ def _get_query_params_json(transcoded_request):
314
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
315
+ return query_params
316
+
317
+ class _BaseListLocations:
318
+ def __hash__(self): # pragma: NO COVER
319
+ return NotImplementedError("__hash__ must be implemented.")
320
+
321
+ @staticmethod
322
+ def _get_http_options():
323
+ http_options: List[Dict[str, str]] = [
324
+ {
325
+ "method": "get",
326
+ "uri": "/v1/{name=projects/*}/locations",
327
+ },
328
+ ]
329
+ return http_options
330
+
331
+ @staticmethod
332
+ def _get_transcoded_request(http_options, request):
333
+ request_kwargs = json_format.MessageToDict(request)
334
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
335
+ return transcoded_request
336
+
337
+ @staticmethod
338
+ def _get_query_params_json(transcoded_request):
339
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
340
+ return query_params
341
+
342
+ class _BaseGetIamPolicy:
343
+ def __hash__(self): # pragma: NO COVER
344
+ return NotImplementedError("__hash__ must be implemented.")
345
+
346
+ @staticmethod
347
+ def _get_http_options():
348
+ http_options: List[Dict[str, str]] = [
349
+ {
350
+ "method": "get",
351
+ "uri": "/v1/{resource=projects/*/locations/*/appConnections/*}:getIamPolicy",
352
+ },
353
+ {
354
+ "method": "get",
355
+ "uri": "/v1/{resource=projects/*/locations/*/appConnectors/*}:getIamPolicy",
356
+ },
357
+ {
358
+ "method": "get",
359
+ "uri": "/v1/{resource=projects/*/locations/*/appGateways/*}:getIamPolicy",
360
+ },
361
+ {
362
+ "method": "get",
363
+ "uri": "/v1/{resource=projects/*/locations/*/clientConnectorServices/*}:getIamPolicy",
364
+ },
365
+ {
366
+ "method": "get",
367
+ "uri": "/v1/{resource=projects/*/locations/*/clientGateways/*}:getIamPolicy",
368
+ },
369
+ ]
370
+ return http_options
371
+
372
+ @staticmethod
373
+ def _get_transcoded_request(http_options, request):
374
+ request_kwargs = json_format.MessageToDict(request)
375
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
376
+ return transcoded_request
377
+
378
+ @staticmethod
379
+ def _get_query_params_json(transcoded_request):
380
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
381
+ return query_params
382
+
383
+ class _BaseSetIamPolicy:
384
+ def __hash__(self): # pragma: NO COVER
385
+ return NotImplementedError("__hash__ must be implemented.")
386
+
387
+ @staticmethod
388
+ def _get_http_options():
389
+ http_options: List[Dict[str, str]] = [
390
+ {
391
+ "method": "post",
392
+ "uri": "/v1/{resource=projects/*/locations/*/appConnections/*}:setIamPolicy",
393
+ "body": "*",
394
+ },
395
+ {
396
+ "method": "post",
397
+ "uri": "/v1/{resource=projects/*/locations/*/appConnectors/*}:setIamPolicy",
398
+ "body": "*",
399
+ },
400
+ {
401
+ "method": "post",
402
+ "uri": "/v1/{resource=projects/*/locations/*/appGateways/*}:setIamPolicy",
403
+ "body": "*",
404
+ },
405
+ {
406
+ "method": "post",
407
+ "uri": "/v1/{resource=projects/*/locations/*/clientConnectorServices/*}:setIamPolicy",
408
+ "body": "*",
409
+ },
410
+ {
411
+ "method": "post",
412
+ "uri": "/v1/{resource=projects/*/locations/*/clientGateways/*}:setIamPolicy",
413
+ "body": "*",
414
+ },
415
+ ]
416
+ return http_options
417
+
418
+ @staticmethod
419
+ def _get_transcoded_request(http_options, request):
420
+ request_kwargs = json_format.MessageToDict(request)
421
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
422
+ return transcoded_request
423
+
424
+ @staticmethod
425
+ def _get_request_body_json(transcoded_request):
426
+ body = json.dumps(transcoded_request["body"])
427
+ return body
428
+
429
+ @staticmethod
430
+ def _get_query_params_json(transcoded_request):
431
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
432
+ return query_params
433
+
434
+ class _BaseTestIamPermissions:
435
+ def __hash__(self): # pragma: NO COVER
436
+ return NotImplementedError("__hash__ must be implemented.")
437
+
438
+ @staticmethod
439
+ def _get_http_options():
440
+ http_options: List[Dict[str, str]] = [
441
+ {
442
+ "method": "post",
443
+ "uri": "/v1/{resource=projects/*/locations/*/appConnections/*}:testIamPermissions",
444
+ "body": "*",
445
+ },
446
+ {
447
+ "method": "post",
448
+ "uri": "/v1/{resource=projects/*/locations/*/appConnectors/*}:testIamPermissions",
449
+ "body": "*",
450
+ },
451
+ {
452
+ "method": "post",
453
+ "uri": "/v1/{resource=projects/*/locations/*/appGateways/*}:testIamPermissions",
454
+ "body": "*",
455
+ },
456
+ {
457
+ "method": "post",
458
+ "uri": "/v1/{resource=projects/*/locations/*/clientConnectorServices/*}:testIamPermissions",
459
+ "body": "*",
460
+ },
461
+ {
462
+ "method": "post",
463
+ "uri": "/v1/{resource=projects/*/locations/*/clientGateways/*}:testIamPermissions",
464
+ "body": "*",
465
+ },
466
+ ]
467
+ return http_options
468
+
469
+ @staticmethod
470
+ def _get_transcoded_request(http_options, request):
471
+ request_kwargs = json_format.MessageToDict(request)
472
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
473
+ return transcoded_request
474
+
475
+ @staticmethod
476
+ def _get_request_body_json(transcoded_request):
477
+ body = json.dumps(transcoded_request["body"])
478
+ return body
479
+
480
+ @staticmethod
481
+ def _get_query_params_json(transcoded_request):
482
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
483
+ return query_params
484
+
485
+ class _BaseCancelOperation:
486
+ def __hash__(self): # pragma: NO COVER
487
+ return NotImplementedError("__hash__ must be implemented.")
488
+
489
+ @staticmethod
490
+ def _get_http_options():
491
+ http_options: List[Dict[str, str]] = [
492
+ {
493
+ "method": "post",
494
+ "uri": "/v1/{name=projects/*/locations/*/operations/*}:cancel",
495
+ "body": "*",
496
+ },
497
+ ]
498
+ return http_options
499
+
500
+ @staticmethod
501
+ def _get_transcoded_request(http_options, request):
502
+ request_kwargs = json_format.MessageToDict(request)
503
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
504
+ return transcoded_request
505
+
506
+ @staticmethod
507
+ def _get_request_body_json(transcoded_request):
508
+ body = json.dumps(transcoded_request["body"])
509
+ return body
510
+
511
+ @staticmethod
512
+ def _get_query_params_json(transcoded_request):
513
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
514
+ return query_params
515
+
516
+ class _BaseDeleteOperation:
517
+ def __hash__(self): # pragma: NO COVER
518
+ return NotImplementedError("__hash__ must be implemented.")
519
+
520
+ @staticmethod
521
+ def _get_http_options():
522
+ http_options: List[Dict[str, str]] = [
523
+ {
524
+ "method": "delete",
525
+ "uri": "/v1/{name=projects/*/locations/*/operations/*}",
526
+ },
527
+ ]
528
+ return http_options
529
+
530
+ @staticmethod
531
+ def _get_transcoded_request(http_options, request):
532
+ request_kwargs = json_format.MessageToDict(request)
533
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
534
+ return transcoded_request
535
+
536
+ @staticmethod
537
+ def _get_query_params_json(transcoded_request):
538
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
539
+ return query_params
540
+
541
+ class _BaseGetOperation:
542
+ def __hash__(self): # pragma: NO COVER
543
+ return NotImplementedError("__hash__ must be implemented.")
544
+
545
+ @staticmethod
546
+ def _get_http_options():
547
+ http_options: List[Dict[str, str]] = [
548
+ {
549
+ "method": "get",
550
+ "uri": "/v1/{name=projects/*/locations/*/operations/*}",
551
+ },
552
+ ]
553
+ return http_options
554
+
555
+ @staticmethod
556
+ def _get_transcoded_request(http_options, request):
557
+ request_kwargs = json_format.MessageToDict(request)
558
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
559
+ return transcoded_request
560
+
561
+ @staticmethod
562
+ def _get_query_params_json(transcoded_request):
563
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
564
+ return query_params
565
+
566
+ class _BaseListOperations:
567
+ def __hash__(self): # pragma: NO COVER
568
+ return NotImplementedError("__hash__ must be implemented.")
569
+
570
+ @staticmethod
571
+ def _get_http_options():
572
+ http_options: List[Dict[str, str]] = [
573
+ {
574
+ "method": "get",
575
+ "uri": "/v1/{name=projects/*/locations/*}/operations",
576
+ },
577
+ ]
578
+ return http_options
579
+
580
+ @staticmethod
581
+ def _get_transcoded_request(http_options, request):
582
+ request_kwargs = json_format.MessageToDict(request)
583
+ transcoded_request = path_template.transcode(http_options, **request_kwargs)
584
+ return transcoded_request
585
+
586
+ @staticmethod
587
+ def _get_query_params_json(transcoded_request):
588
+ query_params = json.loads(json.dumps(transcoded_request["query_params"]))
589
+ return query_params
590
+
591
+
592
+ __all__ = ("_BaseClientGatewaysServiceRestTransport",)
@@ -0,0 +1,34 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from .client_gateways_service import (
17
+ ClientGateway,
18
+ ClientGatewayOperationMetadata,
19
+ CreateClientGatewayRequest,
20
+ DeleteClientGatewayRequest,
21
+ GetClientGatewayRequest,
22
+ ListClientGatewaysRequest,
23
+ ListClientGatewaysResponse,
24
+ )
25
+
26
+ __all__ = (
27
+ "ClientGateway",
28
+ "ClientGatewayOperationMetadata",
29
+ "CreateClientGatewayRequest",
30
+ "DeleteClientGatewayRequest",
31
+ "GetClientGatewayRequest",
32
+ "ListClientGatewaysRequest",
33
+ "ListClientGatewaysResponse",
34
+ )