This repository was archived by the owner on Sep 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +22951
-173
lines changed Expand file tree Collapse file tree 10 files changed +22951
-173
lines changed Original file line number Diff line number Diff line change 266
266
]
267
267
}
268
268
}
269
+ },
270
+ "rest" : {
271
+ "libraryClient" : " DatastreamClient" ,
272
+ "rpcs" : {
273
+ "CreateConnectionProfile" : {
274
+ "methods" : [
275
+ " create_connection_profile"
276
+ ]
277
+ },
278
+ "CreatePrivateConnection" : {
279
+ "methods" : [
280
+ " create_private_connection"
281
+ ]
282
+ },
283
+ "CreateRoute" : {
284
+ "methods" : [
285
+ " create_route"
286
+ ]
287
+ },
288
+ "CreateStream" : {
289
+ "methods" : [
290
+ " create_stream"
291
+ ]
292
+ },
293
+ "DeleteConnectionProfile" : {
294
+ "methods" : [
295
+ " delete_connection_profile"
296
+ ]
297
+ },
298
+ "DeletePrivateConnection" : {
299
+ "methods" : [
300
+ " delete_private_connection"
301
+ ]
302
+ },
303
+ "DeleteRoute" : {
304
+ "methods" : [
305
+ " delete_route"
306
+ ]
307
+ },
308
+ "DeleteStream" : {
309
+ "methods" : [
310
+ " delete_stream"
311
+ ]
312
+ },
313
+ "DiscoverConnectionProfile" : {
314
+ "methods" : [
315
+ " discover_connection_profile"
316
+ ]
317
+ },
318
+ "FetchStaticIps" : {
319
+ "methods" : [
320
+ " fetch_static_ips"
321
+ ]
322
+ },
323
+ "GetConnectionProfile" : {
324
+ "methods" : [
325
+ " get_connection_profile"
326
+ ]
327
+ },
328
+ "GetPrivateConnection" : {
329
+ "methods" : [
330
+ " get_private_connection"
331
+ ]
332
+ },
333
+ "GetRoute" : {
334
+ "methods" : [
335
+ " get_route"
336
+ ]
337
+ },
338
+ "GetStream" : {
339
+ "methods" : [
340
+ " get_stream"
341
+ ]
342
+ },
343
+ "GetStreamObject" : {
344
+ "methods" : [
345
+ " get_stream_object"
346
+ ]
347
+ },
348
+ "ListConnectionProfiles" : {
349
+ "methods" : [
350
+ " list_connection_profiles"
351
+ ]
352
+ },
353
+ "ListPrivateConnections" : {
354
+ "methods" : [
355
+ " list_private_connections"
356
+ ]
357
+ },
358
+ "ListRoutes" : {
359
+ "methods" : [
360
+ " list_routes"
361
+ ]
362
+ },
363
+ "ListStreamObjects" : {
364
+ "methods" : [
365
+ " list_stream_objects"
366
+ ]
367
+ },
368
+ "ListStreams" : {
369
+ "methods" : [
370
+ " list_streams"
371
+ ]
372
+ },
373
+ "LookupStreamObject" : {
374
+ "methods" : [
375
+ " lookup_stream_object"
376
+ ]
377
+ },
378
+ "StartBackfillJob" : {
379
+ "methods" : [
380
+ " start_backfill_job"
381
+ ]
382
+ },
383
+ "StopBackfillJob" : {
384
+ "methods" : [
385
+ " stop_backfill_job"
386
+ ]
387
+ },
388
+ "UpdateConnectionProfile" : {
389
+ "methods" : [
390
+ " update_connection_profile"
391
+ ]
392
+ },
393
+ "UpdateStream" : {
394
+ "methods" : [
395
+ " update_stream"
396
+ ]
397
+ }
398
+ }
269
399
}
270
400
}
271
401
}
Original file line number Diff line number Diff line change 62
62
from .transports .base import DEFAULT_CLIENT_INFO , DatastreamTransport
63
63
from .transports .grpc import DatastreamGrpcTransport
64
64
from .transports .grpc_asyncio import DatastreamGrpcAsyncIOTransport
65
+ from .transports .rest import DatastreamRestTransport
65
66
66
67
67
68
class DatastreamClientMeta (type ):
@@ -75,6 +76,7 @@ class DatastreamClientMeta(type):
75
76
_transport_registry = OrderedDict () # type: Dict[str, Type[DatastreamTransport]]
76
77
_transport_registry ["grpc" ] = DatastreamGrpcTransport
77
78
_transport_registry ["grpc_asyncio" ] = DatastreamGrpcAsyncIOTransport
79
+ _transport_registry ["rest" ] = DatastreamRestTransport
78
80
79
81
def get_transport_class (
80
82
cls ,
Original file line number Diff line number Diff line change 19
19
from .base import DatastreamTransport
20
20
from .grpc import DatastreamGrpcTransport
21
21
from .grpc_asyncio import DatastreamGrpcAsyncIOTransport
22
+ from .rest import DatastreamRestInterceptor , DatastreamRestTransport
22
23
23
24
# Compile a registry of transports.
24
25
_transport_registry = OrderedDict () # type: Dict[str, Type[DatastreamTransport]]
25
26
_transport_registry ["grpc" ] = DatastreamGrpcTransport
26
27
_transport_registry ["grpc_asyncio" ] = DatastreamGrpcAsyncIOTransport
28
+ _transport_registry ["rest" ] = DatastreamRestTransport
27
29
28
30
__all__ = (
29
31
"DatastreamTransport" ,
30
32
"DatastreamGrpcTransport" ,
31
33
"DatastreamGrpcAsyncIOTransport" ,
34
+ "DatastreamRestTransport" ,
35
+ "DatastreamRestInterceptor" ,
32
36
)
You can’t perform that action at this time.
0 commit comments