google-cloud-datastream 1.13.2__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 (44) hide show
  1. google/cloud/datastream/__init__.py +219 -0
  2. google/cloud/datastream/gapic_version.py +16 -0
  3. google/cloud/datastream/py.typed +2 -0
  4. google/cloud/datastream_v1/__init__.py +216 -0
  5. google/cloud/datastream_v1/gapic_metadata.json +418 -0
  6. google/cloud/datastream_v1/gapic_version.py +16 -0
  7. google/cloud/datastream_v1/py.typed +2 -0
  8. google/cloud/datastream_v1/services/__init__.py +15 -0
  9. google/cloud/datastream_v1/services/datastream/__init__.py +22 -0
  10. google/cloud/datastream_v1/services/datastream/async_client.py +3939 -0
  11. google/cloud/datastream_v1/services/datastream/client.py +4420 -0
  12. google/cloud/datastream_v1/services/datastream/pagers.py +977 -0
  13. google/cloud/datastream_v1/services/datastream/transports/__init__.py +36 -0
  14. google/cloud/datastream_v1/services/datastream/transports/base.py +639 -0
  15. google/cloud/datastream_v1/services/datastream/transports/grpc.py +1193 -0
  16. google/cloud/datastream_v1/services/datastream/transports/grpc_asyncio.py +1389 -0
  17. google/cloud/datastream_v1/services/datastream/transports/rest.py +6861 -0
  18. google/cloud/datastream_v1/services/datastream/transports/rest_base.py +1591 -0
  19. google/cloud/datastream_v1/types/__init__.py +208 -0
  20. google/cloud/datastream_v1/types/datastream.py +1491 -0
  21. google/cloud/datastream_v1/types/datastream_resources.py +2986 -0
  22. google/cloud/datastream_v1alpha1/__init__.py +156 -0
  23. google/cloud/datastream_v1alpha1/gapic_metadata.json +343 -0
  24. google/cloud/datastream_v1alpha1/gapic_version.py +16 -0
  25. google/cloud/datastream_v1alpha1/py.typed +2 -0
  26. google/cloud/datastream_v1alpha1/services/__init__.py +15 -0
  27. google/cloud/datastream_v1alpha1/services/datastream/__init__.py +22 -0
  28. google/cloud/datastream_v1alpha1/services/datastream/async_client.py +3018 -0
  29. google/cloud/datastream_v1alpha1/services/datastream/client.py +3458 -0
  30. google/cloud/datastream_v1alpha1/services/datastream/pagers.py +821 -0
  31. google/cloud/datastream_v1alpha1/services/datastream/transports/__init__.py +36 -0
  32. google/cloud/datastream_v1alpha1/services/datastream/transports/base.py +467 -0
  33. google/cloud/datastream_v1alpha1/services/datastream/transports/grpc.py +942 -0
  34. google/cloud/datastream_v1alpha1/services/datastream/transports/grpc_asyncio.py +1078 -0
  35. google/cloud/datastream_v1alpha1/services/datastream/transports/rest.py +4770 -0
  36. google/cloud/datastream_v1alpha1/services/datastream/transports/rest_base.py +1152 -0
  37. google/cloud/datastream_v1alpha1/types/__init__.py +148 -0
  38. google/cloud/datastream_v1alpha1/types/datastream.py +1230 -0
  39. google/cloud/datastream_v1alpha1/types/datastream_resources.py +1416 -0
  40. google_cloud_datastream-1.13.2.dist-info/LICENSE +202 -0
  41. google_cloud_datastream-1.13.2.dist-info/METADATA +229 -0
  42. google_cloud_datastream-1.13.2.dist-info/RECORD +44 -0
  43. google_cloud_datastream-1.13.2.dist-info/WHEEL +5 -0
  44. google_cloud_datastream-1.13.2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,36 @@
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 collections import OrderedDict
17
+ from typing import Dict, Type
18
+
19
+ from .base import DatastreamTransport
20
+ from .grpc import DatastreamGrpcTransport
21
+ from .grpc_asyncio import DatastreamGrpcAsyncIOTransport
22
+ from .rest import DatastreamRestInterceptor, DatastreamRestTransport
23
+
24
+ # Compile a registry of transports.
25
+ _transport_registry = OrderedDict() # type: Dict[str, Type[DatastreamTransport]]
26
+ _transport_registry["grpc"] = DatastreamGrpcTransport
27
+ _transport_registry["grpc_asyncio"] = DatastreamGrpcAsyncIOTransport
28
+ _transport_registry["rest"] = DatastreamRestTransport
29
+
30
+ __all__ = (
31
+ "DatastreamTransport",
32
+ "DatastreamGrpcTransport",
33
+ "DatastreamGrpcAsyncIOTransport",
34
+ "DatastreamRestTransport",
35
+ "DatastreamRestInterceptor",
36
+ )
@@ -0,0 +1,639 @@
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 abc
17
+ from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
18
+
19
+ import google.api_core
20
+ from google.api_core import exceptions as core_exceptions
21
+ from google.api_core import gapic_v1, operations_v1
22
+ from google.api_core import retry as retries
23
+ import google.auth # type: ignore
24
+ from google.auth import credentials as ga_credentials # type: ignore
25
+ from google.cloud.location import locations_pb2 # type: ignore
26
+ from google.iam.v1 import iam_policy_pb2 # type: ignore
27
+ from google.iam.v1 import policy_pb2 # type: ignore
28
+ from google.longrunning import operations_pb2 # type: ignore
29
+ from google.oauth2 import service_account # type: ignore
30
+
31
+ from google.cloud.datastream_v1 import gapic_version as package_version
32
+ from google.cloud.datastream_v1.types import datastream, datastream_resources
33
+
34
+ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
35
+ gapic_version=package_version.__version__
36
+ )
37
+
38
+
39
+ class DatastreamTransport(abc.ABC):
40
+ """Abstract transport class for Datastream."""
41
+
42
+ AUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",)
43
+
44
+ DEFAULT_HOST: str = "datastream.googleapis.com"
45
+
46
+ def __init__(
47
+ self,
48
+ *,
49
+ host: str = DEFAULT_HOST,
50
+ credentials: Optional[ga_credentials.Credentials] = None,
51
+ credentials_file: Optional[str] = None,
52
+ scopes: Optional[Sequence[str]] = None,
53
+ quota_project_id: Optional[str] = None,
54
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
55
+ always_use_jwt_access: Optional[bool] = False,
56
+ api_audience: Optional[str] = None,
57
+ **kwargs,
58
+ ) -> None:
59
+ """Instantiate the transport.
60
+
61
+ Args:
62
+ host (Optional[str]):
63
+ The hostname to connect to (default: 'datastream.googleapis.com').
64
+ credentials (Optional[google.auth.credentials.Credentials]): The
65
+ authorization credentials to attach to requests. These
66
+ credentials identify the application to the service; if none
67
+ are specified, the client will attempt to ascertain the
68
+ credentials from the environment.
69
+ credentials_file (Optional[str]): A file with credentials that can
70
+ be loaded with :func:`google.auth.load_credentials_from_file`.
71
+ This argument is mutually exclusive with credentials.
72
+ scopes (Optional[Sequence[str]]): A list of scopes.
73
+ quota_project_id (Optional[str]): An optional project to use for billing
74
+ and quota.
75
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
76
+ The client info used to send a user-agent string along with
77
+ API requests. If ``None``, then default info will be used.
78
+ Generally, you only need to set this if you're developing
79
+ your own client library.
80
+ always_use_jwt_access (Optional[bool]): Whether self signed JWT should
81
+ be used for service account credentials.
82
+ """
83
+
84
+ scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
85
+
86
+ # Save the scopes.
87
+ self._scopes = scopes
88
+ if not hasattr(self, "_ignore_credentials"):
89
+ self._ignore_credentials: bool = False
90
+
91
+ # If no credentials are provided, then determine the appropriate
92
+ # defaults.
93
+ if credentials and credentials_file:
94
+ raise core_exceptions.DuplicateCredentialArgs(
95
+ "'credentials_file' and 'credentials' are mutually exclusive"
96
+ )
97
+
98
+ if credentials_file is not None:
99
+ credentials, _ = google.auth.load_credentials_from_file(
100
+ credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
101
+ )
102
+ elif credentials is None and not self._ignore_credentials:
103
+ credentials, _ = google.auth.default(
104
+ **scopes_kwargs, quota_project_id=quota_project_id
105
+ )
106
+ # Don't apply audience if the credentials file passed from user.
107
+ if hasattr(credentials, "with_gdch_audience"):
108
+ credentials = credentials.with_gdch_audience(
109
+ api_audience if api_audience else host
110
+ )
111
+
112
+ # If the credentials are service account credentials, then always try to use self signed JWT.
113
+ if (
114
+ always_use_jwt_access
115
+ and isinstance(credentials, service_account.Credentials)
116
+ and hasattr(service_account.Credentials, "with_always_use_jwt_access")
117
+ ):
118
+ credentials = credentials.with_always_use_jwt_access(True)
119
+
120
+ # Save the credentials.
121
+ self._credentials = credentials
122
+
123
+ # Save the hostname. Default to port 443 (HTTPS) if none is specified.
124
+ if ":" not in host:
125
+ host += ":443"
126
+ self._host = host
127
+
128
+ @property
129
+ def host(self):
130
+ return self._host
131
+
132
+ def _prep_wrapped_messages(self, client_info):
133
+ # Precompute the wrapped methods.
134
+ self._wrapped_methods = {
135
+ self.list_connection_profiles: gapic_v1.method.wrap_method(
136
+ self.list_connection_profiles,
137
+ default_timeout=None,
138
+ client_info=client_info,
139
+ ),
140
+ self.get_connection_profile: gapic_v1.method.wrap_method(
141
+ self.get_connection_profile,
142
+ default_timeout=None,
143
+ client_info=client_info,
144
+ ),
145
+ self.create_connection_profile: gapic_v1.method.wrap_method(
146
+ self.create_connection_profile,
147
+ default_timeout=60.0,
148
+ client_info=client_info,
149
+ ),
150
+ self.update_connection_profile: gapic_v1.method.wrap_method(
151
+ self.update_connection_profile,
152
+ default_timeout=60.0,
153
+ client_info=client_info,
154
+ ),
155
+ self.delete_connection_profile: gapic_v1.method.wrap_method(
156
+ self.delete_connection_profile,
157
+ default_timeout=60.0,
158
+ client_info=client_info,
159
+ ),
160
+ self.discover_connection_profile: gapic_v1.method.wrap_method(
161
+ self.discover_connection_profile,
162
+ default_timeout=None,
163
+ client_info=client_info,
164
+ ),
165
+ self.list_streams: gapic_v1.method.wrap_method(
166
+ self.list_streams,
167
+ default_timeout=None,
168
+ client_info=client_info,
169
+ ),
170
+ self.get_stream: gapic_v1.method.wrap_method(
171
+ self.get_stream,
172
+ default_timeout=None,
173
+ client_info=client_info,
174
+ ),
175
+ self.create_stream: gapic_v1.method.wrap_method(
176
+ self.create_stream,
177
+ default_timeout=60.0,
178
+ client_info=client_info,
179
+ ),
180
+ self.update_stream: gapic_v1.method.wrap_method(
181
+ self.update_stream,
182
+ default_timeout=60.0,
183
+ client_info=client_info,
184
+ ),
185
+ self.delete_stream: gapic_v1.method.wrap_method(
186
+ self.delete_stream,
187
+ default_timeout=60.0,
188
+ client_info=client_info,
189
+ ),
190
+ self.run_stream: gapic_v1.method.wrap_method(
191
+ self.run_stream,
192
+ default_timeout=None,
193
+ client_info=client_info,
194
+ ),
195
+ self.get_stream_object: gapic_v1.method.wrap_method(
196
+ self.get_stream_object,
197
+ default_timeout=None,
198
+ client_info=client_info,
199
+ ),
200
+ self.lookup_stream_object: gapic_v1.method.wrap_method(
201
+ self.lookup_stream_object,
202
+ default_timeout=None,
203
+ client_info=client_info,
204
+ ),
205
+ self.list_stream_objects: gapic_v1.method.wrap_method(
206
+ self.list_stream_objects,
207
+ default_timeout=None,
208
+ client_info=client_info,
209
+ ),
210
+ self.start_backfill_job: gapic_v1.method.wrap_method(
211
+ self.start_backfill_job,
212
+ default_timeout=None,
213
+ client_info=client_info,
214
+ ),
215
+ self.stop_backfill_job: gapic_v1.method.wrap_method(
216
+ self.stop_backfill_job,
217
+ default_timeout=None,
218
+ client_info=client_info,
219
+ ),
220
+ self.fetch_static_ips: gapic_v1.method.wrap_method(
221
+ self.fetch_static_ips,
222
+ default_timeout=None,
223
+ client_info=client_info,
224
+ ),
225
+ self.create_private_connection: gapic_v1.method.wrap_method(
226
+ self.create_private_connection,
227
+ default_timeout=60.0,
228
+ client_info=client_info,
229
+ ),
230
+ self.get_private_connection: gapic_v1.method.wrap_method(
231
+ self.get_private_connection,
232
+ default_timeout=None,
233
+ client_info=client_info,
234
+ ),
235
+ self.list_private_connections: gapic_v1.method.wrap_method(
236
+ self.list_private_connections,
237
+ default_timeout=None,
238
+ client_info=client_info,
239
+ ),
240
+ self.delete_private_connection: gapic_v1.method.wrap_method(
241
+ self.delete_private_connection,
242
+ default_timeout=60.0,
243
+ client_info=client_info,
244
+ ),
245
+ self.create_route: gapic_v1.method.wrap_method(
246
+ self.create_route,
247
+ default_timeout=60.0,
248
+ client_info=client_info,
249
+ ),
250
+ self.get_route: gapic_v1.method.wrap_method(
251
+ self.get_route,
252
+ default_timeout=None,
253
+ client_info=client_info,
254
+ ),
255
+ self.list_routes: gapic_v1.method.wrap_method(
256
+ self.list_routes,
257
+ default_timeout=None,
258
+ client_info=client_info,
259
+ ),
260
+ self.delete_route: gapic_v1.method.wrap_method(
261
+ self.delete_route,
262
+ default_timeout=60.0,
263
+ client_info=client_info,
264
+ ),
265
+ self.get_location: gapic_v1.method.wrap_method(
266
+ self.get_location,
267
+ default_timeout=None,
268
+ client_info=client_info,
269
+ ),
270
+ self.list_locations: gapic_v1.method.wrap_method(
271
+ self.list_locations,
272
+ default_timeout=None,
273
+ client_info=client_info,
274
+ ),
275
+ self.cancel_operation: gapic_v1.method.wrap_method(
276
+ self.cancel_operation,
277
+ default_timeout=None,
278
+ client_info=client_info,
279
+ ),
280
+ self.delete_operation: gapic_v1.method.wrap_method(
281
+ self.delete_operation,
282
+ default_timeout=None,
283
+ client_info=client_info,
284
+ ),
285
+ self.get_operation: gapic_v1.method.wrap_method(
286
+ self.get_operation,
287
+ default_timeout=None,
288
+ client_info=client_info,
289
+ ),
290
+ self.list_operations: gapic_v1.method.wrap_method(
291
+ self.list_operations,
292
+ default_timeout=None,
293
+ client_info=client_info,
294
+ ),
295
+ }
296
+
297
+ def close(self):
298
+ """Closes resources associated with the transport.
299
+
300
+ .. warning::
301
+ Only call this method if the transport is NOT shared
302
+ with other clients - this may cause errors in other clients!
303
+ """
304
+ raise NotImplementedError()
305
+
306
+ @property
307
+ def operations_client(self):
308
+ """Return the client designed to process long-running operations."""
309
+ raise NotImplementedError()
310
+
311
+ @property
312
+ def list_connection_profiles(
313
+ self,
314
+ ) -> Callable[
315
+ [datastream.ListConnectionProfilesRequest],
316
+ Union[
317
+ datastream.ListConnectionProfilesResponse,
318
+ Awaitable[datastream.ListConnectionProfilesResponse],
319
+ ],
320
+ ]:
321
+ raise NotImplementedError()
322
+
323
+ @property
324
+ def get_connection_profile(
325
+ self,
326
+ ) -> Callable[
327
+ [datastream.GetConnectionProfileRequest],
328
+ Union[
329
+ datastream_resources.ConnectionProfile,
330
+ Awaitable[datastream_resources.ConnectionProfile],
331
+ ],
332
+ ]:
333
+ raise NotImplementedError()
334
+
335
+ @property
336
+ def create_connection_profile(
337
+ self,
338
+ ) -> Callable[
339
+ [datastream.CreateConnectionProfileRequest],
340
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
341
+ ]:
342
+ raise NotImplementedError()
343
+
344
+ @property
345
+ def update_connection_profile(
346
+ self,
347
+ ) -> Callable[
348
+ [datastream.UpdateConnectionProfileRequest],
349
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
350
+ ]:
351
+ raise NotImplementedError()
352
+
353
+ @property
354
+ def delete_connection_profile(
355
+ self,
356
+ ) -> Callable[
357
+ [datastream.DeleteConnectionProfileRequest],
358
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
359
+ ]:
360
+ raise NotImplementedError()
361
+
362
+ @property
363
+ def discover_connection_profile(
364
+ self,
365
+ ) -> Callable[
366
+ [datastream.DiscoverConnectionProfileRequest],
367
+ Union[
368
+ datastream.DiscoverConnectionProfileResponse,
369
+ Awaitable[datastream.DiscoverConnectionProfileResponse],
370
+ ],
371
+ ]:
372
+ raise NotImplementedError()
373
+
374
+ @property
375
+ def list_streams(
376
+ self,
377
+ ) -> Callable[
378
+ [datastream.ListStreamsRequest],
379
+ Union[
380
+ datastream.ListStreamsResponse, Awaitable[datastream.ListStreamsResponse]
381
+ ],
382
+ ]:
383
+ raise NotImplementedError()
384
+
385
+ @property
386
+ def get_stream(
387
+ self,
388
+ ) -> Callable[
389
+ [datastream.GetStreamRequest],
390
+ Union[datastream_resources.Stream, Awaitable[datastream_resources.Stream]],
391
+ ]:
392
+ raise NotImplementedError()
393
+
394
+ @property
395
+ def create_stream(
396
+ self,
397
+ ) -> Callable[
398
+ [datastream.CreateStreamRequest],
399
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
400
+ ]:
401
+ raise NotImplementedError()
402
+
403
+ @property
404
+ def update_stream(
405
+ self,
406
+ ) -> Callable[
407
+ [datastream.UpdateStreamRequest],
408
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
409
+ ]:
410
+ raise NotImplementedError()
411
+
412
+ @property
413
+ def delete_stream(
414
+ self,
415
+ ) -> Callable[
416
+ [datastream.DeleteStreamRequest],
417
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
418
+ ]:
419
+ raise NotImplementedError()
420
+
421
+ @property
422
+ def run_stream(
423
+ self,
424
+ ) -> Callable[
425
+ [datastream.RunStreamRequest],
426
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
427
+ ]:
428
+ raise NotImplementedError()
429
+
430
+ @property
431
+ def get_stream_object(
432
+ self,
433
+ ) -> Callable[
434
+ [datastream.GetStreamObjectRequest],
435
+ Union[
436
+ datastream_resources.StreamObject,
437
+ Awaitable[datastream_resources.StreamObject],
438
+ ],
439
+ ]:
440
+ raise NotImplementedError()
441
+
442
+ @property
443
+ def lookup_stream_object(
444
+ self,
445
+ ) -> Callable[
446
+ [datastream.LookupStreamObjectRequest],
447
+ Union[
448
+ datastream_resources.StreamObject,
449
+ Awaitable[datastream_resources.StreamObject],
450
+ ],
451
+ ]:
452
+ raise NotImplementedError()
453
+
454
+ @property
455
+ def list_stream_objects(
456
+ self,
457
+ ) -> Callable[
458
+ [datastream.ListStreamObjectsRequest],
459
+ Union[
460
+ datastream.ListStreamObjectsResponse,
461
+ Awaitable[datastream.ListStreamObjectsResponse],
462
+ ],
463
+ ]:
464
+ raise NotImplementedError()
465
+
466
+ @property
467
+ def start_backfill_job(
468
+ self,
469
+ ) -> Callable[
470
+ [datastream.StartBackfillJobRequest],
471
+ Union[
472
+ datastream.StartBackfillJobResponse,
473
+ Awaitable[datastream.StartBackfillJobResponse],
474
+ ],
475
+ ]:
476
+ raise NotImplementedError()
477
+
478
+ @property
479
+ def stop_backfill_job(
480
+ self,
481
+ ) -> Callable[
482
+ [datastream.StopBackfillJobRequest],
483
+ Union[
484
+ datastream.StopBackfillJobResponse,
485
+ Awaitable[datastream.StopBackfillJobResponse],
486
+ ],
487
+ ]:
488
+ raise NotImplementedError()
489
+
490
+ @property
491
+ def fetch_static_ips(
492
+ self,
493
+ ) -> Callable[
494
+ [datastream.FetchStaticIpsRequest],
495
+ Union[
496
+ datastream.FetchStaticIpsResponse,
497
+ Awaitable[datastream.FetchStaticIpsResponse],
498
+ ],
499
+ ]:
500
+ raise NotImplementedError()
501
+
502
+ @property
503
+ def create_private_connection(
504
+ self,
505
+ ) -> Callable[
506
+ [datastream.CreatePrivateConnectionRequest],
507
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
508
+ ]:
509
+ raise NotImplementedError()
510
+
511
+ @property
512
+ def get_private_connection(
513
+ self,
514
+ ) -> Callable[
515
+ [datastream.GetPrivateConnectionRequest],
516
+ Union[
517
+ datastream_resources.PrivateConnection,
518
+ Awaitable[datastream_resources.PrivateConnection],
519
+ ],
520
+ ]:
521
+ raise NotImplementedError()
522
+
523
+ @property
524
+ def list_private_connections(
525
+ self,
526
+ ) -> Callable[
527
+ [datastream.ListPrivateConnectionsRequest],
528
+ Union[
529
+ datastream.ListPrivateConnectionsResponse,
530
+ Awaitable[datastream.ListPrivateConnectionsResponse],
531
+ ],
532
+ ]:
533
+ raise NotImplementedError()
534
+
535
+ @property
536
+ def delete_private_connection(
537
+ self,
538
+ ) -> Callable[
539
+ [datastream.DeletePrivateConnectionRequest],
540
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
541
+ ]:
542
+ raise NotImplementedError()
543
+
544
+ @property
545
+ def create_route(
546
+ self,
547
+ ) -> Callable[
548
+ [datastream.CreateRouteRequest],
549
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
550
+ ]:
551
+ raise NotImplementedError()
552
+
553
+ @property
554
+ def get_route(
555
+ self,
556
+ ) -> Callable[
557
+ [datastream.GetRouteRequest],
558
+ Union[datastream_resources.Route, Awaitable[datastream_resources.Route]],
559
+ ]:
560
+ raise NotImplementedError()
561
+
562
+ @property
563
+ def list_routes(
564
+ self,
565
+ ) -> Callable[
566
+ [datastream.ListRoutesRequest],
567
+ Union[datastream.ListRoutesResponse, Awaitable[datastream.ListRoutesResponse]],
568
+ ]:
569
+ raise NotImplementedError()
570
+
571
+ @property
572
+ def delete_route(
573
+ self,
574
+ ) -> Callable[
575
+ [datastream.DeleteRouteRequest],
576
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
577
+ ]:
578
+ raise NotImplementedError()
579
+
580
+ @property
581
+ def list_operations(
582
+ self,
583
+ ) -> Callable[
584
+ [operations_pb2.ListOperationsRequest],
585
+ Union[
586
+ operations_pb2.ListOperationsResponse,
587
+ Awaitable[operations_pb2.ListOperationsResponse],
588
+ ],
589
+ ]:
590
+ raise NotImplementedError()
591
+
592
+ @property
593
+ def get_operation(
594
+ self,
595
+ ) -> Callable[
596
+ [operations_pb2.GetOperationRequest],
597
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
598
+ ]:
599
+ raise NotImplementedError()
600
+
601
+ @property
602
+ def cancel_operation(
603
+ self,
604
+ ) -> Callable[[operations_pb2.CancelOperationRequest], None,]:
605
+ raise NotImplementedError()
606
+
607
+ @property
608
+ def delete_operation(
609
+ self,
610
+ ) -> Callable[[operations_pb2.DeleteOperationRequest], None,]:
611
+ raise NotImplementedError()
612
+
613
+ @property
614
+ def get_location(
615
+ self,
616
+ ) -> Callable[
617
+ [locations_pb2.GetLocationRequest],
618
+ Union[locations_pb2.Location, Awaitable[locations_pb2.Location]],
619
+ ]:
620
+ raise NotImplementedError()
621
+
622
+ @property
623
+ def list_locations(
624
+ self,
625
+ ) -> Callable[
626
+ [locations_pb2.ListLocationsRequest],
627
+ Union[
628
+ locations_pb2.ListLocationsResponse,
629
+ Awaitable[locations_pb2.ListLocationsResponse],
630
+ ],
631
+ ]:
632
+ raise NotImplementedError()
633
+
634
+ @property
635
+ def kind(self) -> str:
636
+ raise NotImplementedError()
637
+
638
+
639
+ __all__ = ("DatastreamTransport",)