cloudquery-plugin-pb 0.0.55__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.
- cloudquery/discovery_v1/__init__.py +0 -0
- cloudquery/discovery_v1/discovery_pb2.py +43 -0
- cloudquery/discovery_v1/discovery_pb2.pyi +19 -0
- cloudquery/discovery_v1/discovery_pb2_grpc.py +98 -0
- cloudquery/discovery_v1/py.typed +0 -0
- cloudquery/plugin_v3/__init__.py +0 -0
- cloudquery/plugin_v3/arrow.py +51 -0
- cloudquery/plugin_v3/plugin_pb2.py +162 -0
- cloudquery/plugin_v3/plugin_pb2.pyi +413 -0
- cloudquery/plugin_v3/plugin_pb2_grpc.py +678 -0
- cloudquery/plugin_v3/py.typed +0 -0
- cloudquery_plugin_pb-0.0.55.dist-info/METADATA +49 -0
- cloudquery_plugin_pb-0.0.55.dist-info/RECORD +16 -0
- cloudquery_plugin_pb-0.0.55.dist-info/WHEEL +5 -0
- cloudquery_plugin_pb-0.0.55.dist-info/licenses/LICENSE +355 -0
- cloudquery_plugin_pb-0.0.55.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from cloudquery.plugin_v3 import plugin_pb2 as cloudquery_dot_plugin__v3_dot_plugin__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.78.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in cloudquery/plugin_v3/plugin_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class PluginStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.GetName = channel.unary_unary(
|
|
38
|
+
'/cloudquery.plugin.v3.Plugin/GetName',
|
|
39
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetName.Request.SerializeToString,
|
|
40
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetName.Response.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.GetVersion = channel.unary_unary(
|
|
43
|
+
'/cloudquery.plugin.v3.Plugin/GetVersion',
|
|
44
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Request.SerializeToString,
|
|
45
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Response.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.GetSpecSchema = channel.unary_unary(
|
|
48
|
+
'/cloudquery.plugin.v3.Plugin/GetSpecSchema',
|
|
49
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Request.SerializeToString,
|
|
50
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Response.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.Init = channel.unary_unary(
|
|
53
|
+
'/cloudquery.plugin.v3.Plugin/Init',
|
|
54
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Request.SerializeToString,
|
|
55
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Response.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.GetTables = channel.unary_unary(
|
|
58
|
+
'/cloudquery.plugin.v3.Plugin/GetTables',
|
|
59
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetTables.Request.SerializeToString,
|
|
60
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetTables.Response.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.Sync = channel.unary_stream(
|
|
63
|
+
'/cloudquery.plugin.v3.Plugin/Sync',
|
|
64
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Sync.Request.SerializeToString,
|
|
65
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Sync.Response.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
self.Read = channel.unary_stream(
|
|
68
|
+
'/cloudquery.plugin.v3.Plugin/Read',
|
|
69
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Read.Request.SerializeToString,
|
|
70
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Read.Response.FromString,
|
|
71
|
+
_registered_method=True)
|
|
72
|
+
self.Write = channel.stream_unary(
|
|
73
|
+
'/cloudquery.plugin.v3.Plugin/Write',
|
|
74
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Request.SerializeToString,
|
|
75
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Response.FromString,
|
|
76
|
+
_registered_method=True)
|
|
77
|
+
self.Transform = channel.stream_stream(
|
|
78
|
+
'/cloudquery.plugin.v3.Plugin/Transform',
|
|
79
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Request.SerializeToString,
|
|
80
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Response.FromString,
|
|
81
|
+
_registered_method=True)
|
|
82
|
+
self.TransformSchema = channel.unary_unary(
|
|
83
|
+
'/cloudquery.plugin.v3.Plugin/TransformSchema',
|
|
84
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Request.SerializeToString,
|
|
85
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Response.FromString,
|
|
86
|
+
_registered_method=True)
|
|
87
|
+
self.Close = channel.unary_unary(
|
|
88
|
+
'/cloudquery.plugin.v3.Plugin/Close',
|
|
89
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Close.Request.SerializeToString,
|
|
90
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Close.Response.FromString,
|
|
91
|
+
_registered_method=True)
|
|
92
|
+
self.TestConnection = channel.unary_unary(
|
|
93
|
+
'/cloudquery.plugin.v3.Plugin/TestConnection',
|
|
94
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TestConnection.Request.SerializeToString,
|
|
95
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TestConnection.Response.FromString,
|
|
96
|
+
_registered_method=True)
|
|
97
|
+
self.AssessTables = channel.unary_unary(
|
|
98
|
+
'/cloudquery.plugin.v3.Plugin/AssessTables',
|
|
99
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.AssessTables.Request.SerializeToString,
|
|
100
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.AssessTables.Response.FromString,
|
|
101
|
+
_registered_method=True)
|
|
102
|
+
self.WriteStream = channel.stream_stream(
|
|
103
|
+
'/cloudquery.plugin.v3.Plugin/WriteStream',
|
|
104
|
+
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Request.SerializeToString,
|
|
105
|
+
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Response.FromString,
|
|
106
|
+
_registered_method=True)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class PluginServicer(object):
|
|
110
|
+
"""Missing associated documentation comment in .proto file."""
|
|
111
|
+
|
|
112
|
+
def GetName(self, request, context):
|
|
113
|
+
"""Get the name of the plugin
|
|
114
|
+
"""
|
|
115
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
116
|
+
context.set_details('Method not implemented!')
|
|
117
|
+
raise NotImplementedError('Method not implemented!')
|
|
118
|
+
|
|
119
|
+
def GetVersion(self, request, context):
|
|
120
|
+
"""Get the current version of the plugin
|
|
121
|
+
"""
|
|
122
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
123
|
+
context.set_details('Method not implemented!')
|
|
124
|
+
raise NotImplementedError('Method not implemented!')
|
|
125
|
+
|
|
126
|
+
def GetSpecSchema(self, request, context):
|
|
127
|
+
"""Get plugin spec schema.
|
|
128
|
+
This will allow validating the input even before calling Init.
|
|
129
|
+
Should be called before Init.
|
|
130
|
+
"""
|
|
131
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
132
|
+
context.set_details('Method not implemented!')
|
|
133
|
+
raise NotImplementedError('Method not implemented!')
|
|
134
|
+
|
|
135
|
+
def Init(self, request, context):
|
|
136
|
+
"""Configure the plugin with the given credentials and mode
|
|
137
|
+
"""
|
|
138
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
139
|
+
context.set_details('Method not implemented!')
|
|
140
|
+
raise NotImplementedError('Method not implemented!')
|
|
141
|
+
|
|
142
|
+
def GetTables(self, request, context):
|
|
143
|
+
"""Get all tables the source plugin supports. Must be called after Init
|
|
144
|
+
"""
|
|
145
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
146
|
+
context.set_details('Method not implemented!')
|
|
147
|
+
raise NotImplementedError('Method not implemented!')
|
|
148
|
+
|
|
149
|
+
def Sync(self, request, context):
|
|
150
|
+
"""Start a sync on the source plugin. It streams messages as output.
|
|
151
|
+
"""
|
|
152
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
153
|
+
context.set_details('Method not implemented!')
|
|
154
|
+
raise NotImplementedError('Method not implemented!')
|
|
155
|
+
|
|
156
|
+
def Read(self, request, context):
|
|
157
|
+
"""Start a Read on the source plugin for a given table and schema. It streams messages as output.
|
|
158
|
+
The plugin assume that that schema was used to also write the data beforehand
|
|
159
|
+
"""
|
|
160
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
161
|
+
context.set_details('Method not implemented!')
|
|
162
|
+
raise NotImplementedError('Method not implemented!')
|
|
163
|
+
|
|
164
|
+
def Write(self, request_iterator, context):
|
|
165
|
+
"""Write resources. Write is the mirror of Sync, expecting a stream of messages as input.
|
|
166
|
+
"""
|
|
167
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
168
|
+
context.set_details('Method not implemented!')
|
|
169
|
+
raise NotImplementedError('Method not implemented!')
|
|
170
|
+
|
|
171
|
+
def Transform(self, request_iterator, context):
|
|
172
|
+
"""Transform resources.
|
|
173
|
+
"""
|
|
174
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
175
|
+
context.set_details('Method not implemented!')
|
|
176
|
+
raise NotImplementedError('Method not implemented!')
|
|
177
|
+
|
|
178
|
+
def TransformSchema(self, request, context):
|
|
179
|
+
"""Transform schemas.
|
|
180
|
+
"""
|
|
181
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
182
|
+
context.set_details('Method not implemented!')
|
|
183
|
+
raise NotImplementedError('Method not implemented!')
|
|
184
|
+
|
|
185
|
+
def Close(self, request, context):
|
|
186
|
+
"""Send signal to flush and close open connections
|
|
187
|
+
"""
|
|
188
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
189
|
+
context.set_details('Method not implemented!')
|
|
190
|
+
raise NotImplementedError('Method not implemented!')
|
|
191
|
+
|
|
192
|
+
def TestConnection(self, request, context):
|
|
193
|
+
"""Validate and test the connections used by the plugin
|
|
194
|
+
"""
|
|
195
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
196
|
+
context.set_details('Method not implemented!')
|
|
197
|
+
raise NotImplementedError('Method not implemented!')
|
|
198
|
+
|
|
199
|
+
def AssessTables(self, request, context):
|
|
200
|
+
"""Assess how the destination plugin would apply table schema changes, without writing anything.
|
|
201
|
+
Plugins that do not support assessment return Unimplemented.
|
|
202
|
+
"""
|
|
203
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
204
|
+
context.set_details('Method not implemented!')
|
|
205
|
+
raise NotImplementedError('Method not implemented!')
|
|
206
|
+
|
|
207
|
+
def WriteStream(self, request_iterator, context):
|
|
208
|
+
"""Write resources, like Write, and also accept Write.MessageFlush.
|
|
209
|
+
The plugin sends one Write.Response per Write.MessageFlush, once it has tried to commit every message sent before
|
|
210
|
+
the flush. Write.Response.flush_error is set if some messages sent since the previous flush may not have been
|
|
211
|
+
committed.
|
|
212
|
+
Only use it with plugins that set Init.Response.supports_flush.
|
|
213
|
+
"""
|
|
214
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
215
|
+
context.set_details('Method not implemented!')
|
|
216
|
+
raise NotImplementedError('Method not implemented!')
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def add_PluginServicer_to_server(servicer, server):
|
|
220
|
+
rpc_method_handlers = {
|
|
221
|
+
'GetName': grpc.unary_unary_rpc_method_handler(
|
|
222
|
+
servicer.GetName,
|
|
223
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetName.Request.FromString,
|
|
224
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetName.Response.SerializeToString,
|
|
225
|
+
),
|
|
226
|
+
'GetVersion': grpc.unary_unary_rpc_method_handler(
|
|
227
|
+
servicer.GetVersion,
|
|
228
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Request.FromString,
|
|
229
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Response.SerializeToString,
|
|
230
|
+
),
|
|
231
|
+
'GetSpecSchema': grpc.unary_unary_rpc_method_handler(
|
|
232
|
+
servicer.GetSpecSchema,
|
|
233
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Request.FromString,
|
|
234
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Response.SerializeToString,
|
|
235
|
+
),
|
|
236
|
+
'Init': grpc.unary_unary_rpc_method_handler(
|
|
237
|
+
servicer.Init,
|
|
238
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Request.FromString,
|
|
239
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Response.SerializeToString,
|
|
240
|
+
),
|
|
241
|
+
'GetTables': grpc.unary_unary_rpc_method_handler(
|
|
242
|
+
servicer.GetTables,
|
|
243
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetTables.Request.FromString,
|
|
244
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetTables.Response.SerializeToString,
|
|
245
|
+
),
|
|
246
|
+
'Sync': grpc.unary_stream_rpc_method_handler(
|
|
247
|
+
servicer.Sync,
|
|
248
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Sync.Request.FromString,
|
|
249
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Sync.Response.SerializeToString,
|
|
250
|
+
),
|
|
251
|
+
'Read': grpc.unary_stream_rpc_method_handler(
|
|
252
|
+
servicer.Read,
|
|
253
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Read.Request.FromString,
|
|
254
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Read.Response.SerializeToString,
|
|
255
|
+
),
|
|
256
|
+
'Write': grpc.stream_unary_rpc_method_handler(
|
|
257
|
+
servicer.Write,
|
|
258
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Request.FromString,
|
|
259
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Response.SerializeToString,
|
|
260
|
+
),
|
|
261
|
+
'Transform': grpc.stream_stream_rpc_method_handler(
|
|
262
|
+
servicer.Transform,
|
|
263
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Request.FromString,
|
|
264
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Response.SerializeToString,
|
|
265
|
+
),
|
|
266
|
+
'TransformSchema': grpc.unary_unary_rpc_method_handler(
|
|
267
|
+
servicer.TransformSchema,
|
|
268
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Request.FromString,
|
|
269
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Response.SerializeToString,
|
|
270
|
+
),
|
|
271
|
+
'Close': grpc.unary_unary_rpc_method_handler(
|
|
272
|
+
servicer.Close,
|
|
273
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Close.Request.FromString,
|
|
274
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Close.Response.SerializeToString,
|
|
275
|
+
),
|
|
276
|
+
'TestConnection': grpc.unary_unary_rpc_method_handler(
|
|
277
|
+
servicer.TestConnection,
|
|
278
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TestConnection.Request.FromString,
|
|
279
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TestConnection.Response.SerializeToString,
|
|
280
|
+
),
|
|
281
|
+
'AssessTables': grpc.unary_unary_rpc_method_handler(
|
|
282
|
+
servicer.AssessTables,
|
|
283
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.AssessTables.Request.FromString,
|
|
284
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.AssessTables.Response.SerializeToString,
|
|
285
|
+
),
|
|
286
|
+
'WriteStream': grpc.stream_stream_rpc_method_handler(
|
|
287
|
+
servicer.WriteStream,
|
|
288
|
+
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Request.FromString,
|
|
289
|
+
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Response.SerializeToString,
|
|
290
|
+
),
|
|
291
|
+
}
|
|
292
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
293
|
+
'cloudquery.plugin.v3.Plugin', rpc_method_handlers)
|
|
294
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
295
|
+
server.add_registered_method_handlers('cloudquery.plugin.v3.Plugin', rpc_method_handlers)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
# This class is part of an EXPERIMENTAL API.
|
|
299
|
+
class Plugin(object):
|
|
300
|
+
"""Missing associated documentation comment in .proto file."""
|
|
301
|
+
|
|
302
|
+
@staticmethod
|
|
303
|
+
def GetName(request,
|
|
304
|
+
target,
|
|
305
|
+
options=(),
|
|
306
|
+
channel_credentials=None,
|
|
307
|
+
call_credentials=None,
|
|
308
|
+
insecure=False,
|
|
309
|
+
compression=None,
|
|
310
|
+
wait_for_ready=None,
|
|
311
|
+
timeout=None,
|
|
312
|
+
metadata=None):
|
|
313
|
+
return grpc.experimental.unary_unary(
|
|
314
|
+
request,
|
|
315
|
+
target,
|
|
316
|
+
'/cloudquery.plugin.v3.Plugin/GetName',
|
|
317
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetName.Request.SerializeToString,
|
|
318
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetName.Response.FromString,
|
|
319
|
+
options,
|
|
320
|
+
channel_credentials,
|
|
321
|
+
insecure,
|
|
322
|
+
call_credentials,
|
|
323
|
+
compression,
|
|
324
|
+
wait_for_ready,
|
|
325
|
+
timeout,
|
|
326
|
+
metadata,
|
|
327
|
+
_registered_method=True)
|
|
328
|
+
|
|
329
|
+
@staticmethod
|
|
330
|
+
def GetVersion(request,
|
|
331
|
+
target,
|
|
332
|
+
options=(),
|
|
333
|
+
channel_credentials=None,
|
|
334
|
+
call_credentials=None,
|
|
335
|
+
insecure=False,
|
|
336
|
+
compression=None,
|
|
337
|
+
wait_for_ready=None,
|
|
338
|
+
timeout=None,
|
|
339
|
+
metadata=None):
|
|
340
|
+
return grpc.experimental.unary_unary(
|
|
341
|
+
request,
|
|
342
|
+
target,
|
|
343
|
+
'/cloudquery.plugin.v3.Plugin/GetVersion',
|
|
344
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Request.SerializeToString,
|
|
345
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Response.FromString,
|
|
346
|
+
options,
|
|
347
|
+
channel_credentials,
|
|
348
|
+
insecure,
|
|
349
|
+
call_credentials,
|
|
350
|
+
compression,
|
|
351
|
+
wait_for_ready,
|
|
352
|
+
timeout,
|
|
353
|
+
metadata,
|
|
354
|
+
_registered_method=True)
|
|
355
|
+
|
|
356
|
+
@staticmethod
|
|
357
|
+
def GetSpecSchema(request,
|
|
358
|
+
target,
|
|
359
|
+
options=(),
|
|
360
|
+
channel_credentials=None,
|
|
361
|
+
call_credentials=None,
|
|
362
|
+
insecure=False,
|
|
363
|
+
compression=None,
|
|
364
|
+
wait_for_ready=None,
|
|
365
|
+
timeout=None,
|
|
366
|
+
metadata=None):
|
|
367
|
+
return grpc.experimental.unary_unary(
|
|
368
|
+
request,
|
|
369
|
+
target,
|
|
370
|
+
'/cloudquery.plugin.v3.Plugin/GetSpecSchema',
|
|
371
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Request.SerializeToString,
|
|
372
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Response.FromString,
|
|
373
|
+
options,
|
|
374
|
+
channel_credentials,
|
|
375
|
+
insecure,
|
|
376
|
+
call_credentials,
|
|
377
|
+
compression,
|
|
378
|
+
wait_for_ready,
|
|
379
|
+
timeout,
|
|
380
|
+
metadata,
|
|
381
|
+
_registered_method=True)
|
|
382
|
+
|
|
383
|
+
@staticmethod
|
|
384
|
+
def Init(request,
|
|
385
|
+
target,
|
|
386
|
+
options=(),
|
|
387
|
+
channel_credentials=None,
|
|
388
|
+
call_credentials=None,
|
|
389
|
+
insecure=False,
|
|
390
|
+
compression=None,
|
|
391
|
+
wait_for_ready=None,
|
|
392
|
+
timeout=None,
|
|
393
|
+
metadata=None):
|
|
394
|
+
return grpc.experimental.unary_unary(
|
|
395
|
+
request,
|
|
396
|
+
target,
|
|
397
|
+
'/cloudquery.plugin.v3.Plugin/Init',
|
|
398
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Request.SerializeToString,
|
|
399
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Response.FromString,
|
|
400
|
+
options,
|
|
401
|
+
channel_credentials,
|
|
402
|
+
insecure,
|
|
403
|
+
call_credentials,
|
|
404
|
+
compression,
|
|
405
|
+
wait_for_ready,
|
|
406
|
+
timeout,
|
|
407
|
+
metadata,
|
|
408
|
+
_registered_method=True)
|
|
409
|
+
|
|
410
|
+
@staticmethod
|
|
411
|
+
def GetTables(request,
|
|
412
|
+
target,
|
|
413
|
+
options=(),
|
|
414
|
+
channel_credentials=None,
|
|
415
|
+
call_credentials=None,
|
|
416
|
+
insecure=False,
|
|
417
|
+
compression=None,
|
|
418
|
+
wait_for_ready=None,
|
|
419
|
+
timeout=None,
|
|
420
|
+
metadata=None):
|
|
421
|
+
return grpc.experimental.unary_unary(
|
|
422
|
+
request,
|
|
423
|
+
target,
|
|
424
|
+
'/cloudquery.plugin.v3.Plugin/GetTables',
|
|
425
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetTables.Request.SerializeToString,
|
|
426
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.GetTables.Response.FromString,
|
|
427
|
+
options,
|
|
428
|
+
channel_credentials,
|
|
429
|
+
insecure,
|
|
430
|
+
call_credentials,
|
|
431
|
+
compression,
|
|
432
|
+
wait_for_ready,
|
|
433
|
+
timeout,
|
|
434
|
+
metadata,
|
|
435
|
+
_registered_method=True)
|
|
436
|
+
|
|
437
|
+
@staticmethod
|
|
438
|
+
def Sync(request,
|
|
439
|
+
target,
|
|
440
|
+
options=(),
|
|
441
|
+
channel_credentials=None,
|
|
442
|
+
call_credentials=None,
|
|
443
|
+
insecure=False,
|
|
444
|
+
compression=None,
|
|
445
|
+
wait_for_ready=None,
|
|
446
|
+
timeout=None,
|
|
447
|
+
metadata=None):
|
|
448
|
+
return grpc.experimental.unary_stream(
|
|
449
|
+
request,
|
|
450
|
+
target,
|
|
451
|
+
'/cloudquery.plugin.v3.Plugin/Sync',
|
|
452
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Sync.Request.SerializeToString,
|
|
453
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Sync.Response.FromString,
|
|
454
|
+
options,
|
|
455
|
+
channel_credentials,
|
|
456
|
+
insecure,
|
|
457
|
+
call_credentials,
|
|
458
|
+
compression,
|
|
459
|
+
wait_for_ready,
|
|
460
|
+
timeout,
|
|
461
|
+
metadata,
|
|
462
|
+
_registered_method=True)
|
|
463
|
+
|
|
464
|
+
@staticmethod
|
|
465
|
+
def Read(request,
|
|
466
|
+
target,
|
|
467
|
+
options=(),
|
|
468
|
+
channel_credentials=None,
|
|
469
|
+
call_credentials=None,
|
|
470
|
+
insecure=False,
|
|
471
|
+
compression=None,
|
|
472
|
+
wait_for_ready=None,
|
|
473
|
+
timeout=None,
|
|
474
|
+
metadata=None):
|
|
475
|
+
return grpc.experimental.unary_stream(
|
|
476
|
+
request,
|
|
477
|
+
target,
|
|
478
|
+
'/cloudquery.plugin.v3.Plugin/Read',
|
|
479
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Read.Request.SerializeToString,
|
|
480
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Read.Response.FromString,
|
|
481
|
+
options,
|
|
482
|
+
channel_credentials,
|
|
483
|
+
insecure,
|
|
484
|
+
call_credentials,
|
|
485
|
+
compression,
|
|
486
|
+
wait_for_ready,
|
|
487
|
+
timeout,
|
|
488
|
+
metadata,
|
|
489
|
+
_registered_method=True)
|
|
490
|
+
|
|
491
|
+
@staticmethod
|
|
492
|
+
def Write(request_iterator,
|
|
493
|
+
target,
|
|
494
|
+
options=(),
|
|
495
|
+
channel_credentials=None,
|
|
496
|
+
call_credentials=None,
|
|
497
|
+
insecure=False,
|
|
498
|
+
compression=None,
|
|
499
|
+
wait_for_ready=None,
|
|
500
|
+
timeout=None,
|
|
501
|
+
metadata=None):
|
|
502
|
+
return grpc.experimental.stream_unary(
|
|
503
|
+
request_iterator,
|
|
504
|
+
target,
|
|
505
|
+
'/cloudquery.plugin.v3.Plugin/Write',
|
|
506
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Request.SerializeToString,
|
|
507
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Response.FromString,
|
|
508
|
+
options,
|
|
509
|
+
channel_credentials,
|
|
510
|
+
insecure,
|
|
511
|
+
call_credentials,
|
|
512
|
+
compression,
|
|
513
|
+
wait_for_ready,
|
|
514
|
+
timeout,
|
|
515
|
+
metadata,
|
|
516
|
+
_registered_method=True)
|
|
517
|
+
|
|
518
|
+
@staticmethod
|
|
519
|
+
def Transform(request_iterator,
|
|
520
|
+
target,
|
|
521
|
+
options=(),
|
|
522
|
+
channel_credentials=None,
|
|
523
|
+
call_credentials=None,
|
|
524
|
+
insecure=False,
|
|
525
|
+
compression=None,
|
|
526
|
+
wait_for_ready=None,
|
|
527
|
+
timeout=None,
|
|
528
|
+
metadata=None):
|
|
529
|
+
return grpc.experimental.stream_stream(
|
|
530
|
+
request_iterator,
|
|
531
|
+
target,
|
|
532
|
+
'/cloudquery.plugin.v3.Plugin/Transform',
|
|
533
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Request.SerializeToString,
|
|
534
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Response.FromString,
|
|
535
|
+
options,
|
|
536
|
+
channel_credentials,
|
|
537
|
+
insecure,
|
|
538
|
+
call_credentials,
|
|
539
|
+
compression,
|
|
540
|
+
wait_for_ready,
|
|
541
|
+
timeout,
|
|
542
|
+
metadata,
|
|
543
|
+
_registered_method=True)
|
|
544
|
+
|
|
545
|
+
@staticmethod
|
|
546
|
+
def TransformSchema(request,
|
|
547
|
+
target,
|
|
548
|
+
options=(),
|
|
549
|
+
channel_credentials=None,
|
|
550
|
+
call_credentials=None,
|
|
551
|
+
insecure=False,
|
|
552
|
+
compression=None,
|
|
553
|
+
wait_for_ready=None,
|
|
554
|
+
timeout=None,
|
|
555
|
+
metadata=None):
|
|
556
|
+
return grpc.experimental.unary_unary(
|
|
557
|
+
request,
|
|
558
|
+
target,
|
|
559
|
+
'/cloudquery.plugin.v3.Plugin/TransformSchema',
|
|
560
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Request.SerializeToString,
|
|
561
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Response.FromString,
|
|
562
|
+
options,
|
|
563
|
+
channel_credentials,
|
|
564
|
+
insecure,
|
|
565
|
+
call_credentials,
|
|
566
|
+
compression,
|
|
567
|
+
wait_for_ready,
|
|
568
|
+
timeout,
|
|
569
|
+
metadata,
|
|
570
|
+
_registered_method=True)
|
|
571
|
+
|
|
572
|
+
@staticmethod
|
|
573
|
+
def Close(request,
|
|
574
|
+
target,
|
|
575
|
+
options=(),
|
|
576
|
+
channel_credentials=None,
|
|
577
|
+
call_credentials=None,
|
|
578
|
+
insecure=False,
|
|
579
|
+
compression=None,
|
|
580
|
+
wait_for_ready=None,
|
|
581
|
+
timeout=None,
|
|
582
|
+
metadata=None):
|
|
583
|
+
return grpc.experimental.unary_unary(
|
|
584
|
+
request,
|
|
585
|
+
target,
|
|
586
|
+
'/cloudquery.plugin.v3.Plugin/Close',
|
|
587
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Close.Request.SerializeToString,
|
|
588
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Close.Response.FromString,
|
|
589
|
+
options,
|
|
590
|
+
channel_credentials,
|
|
591
|
+
insecure,
|
|
592
|
+
call_credentials,
|
|
593
|
+
compression,
|
|
594
|
+
wait_for_ready,
|
|
595
|
+
timeout,
|
|
596
|
+
metadata,
|
|
597
|
+
_registered_method=True)
|
|
598
|
+
|
|
599
|
+
@staticmethod
|
|
600
|
+
def TestConnection(request,
|
|
601
|
+
target,
|
|
602
|
+
options=(),
|
|
603
|
+
channel_credentials=None,
|
|
604
|
+
call_credentials=None,
|
|
605
|
+
insecure=False,
|
|
606
|
+
compression=None,
|
|
607
|
+
wait_for_ready=None,
|
|
608
|
+
timeout=None,
|
|
609
|
+
metadata=None):
|
|
610
|
+
return grpc.experimental.unary_unary(
|
|
611
|
+
request,
|
|
612
|
+
target,
|
|
613
|
+
'/cloudquery.plugin.v3.Plugin/TestConnection',
|
|
614
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.TestConnection.Request.SerializeToString,
|
|
615
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.TestConnection.Response.FromString,
|
|
616
|
+
options,
|
|
617
|
+
channel_credentials,
|
|
618
|
+
insecure,
|
|
619
|
+
call_credentials,
|
|
620
|
+
compression,
|
|
621
|
+
wait_for_ready,
|
|
622
|
+
timeout,
|
|
623
|
+
metadata,
|
|
624
|
+
_registered_method=True)
|
|
625
|
+
|
|
626
|
+
@staticmethod
|
|
627
|
+
def AssessTables(request,
|
|
628
|
+
target,
|
|
629
|
+
options=(),
|
|
630
|
+
channel_credentials=None,
|
|
631
|
+
call_credentials=None,
|
|
632
|
+
insecure=False,
|
|
633
|
+
compression=None,
|
|
634
|
+
wait_for_ready=None,
|
|
635
|
+
timeout=None,
|
|
636
|
+
metadata=None):
|
|
637
|
+
return grpc.experimental.unary_unary(
|
|
638
|
+
request,
|
|
639
|
+
target,
|
|
640
|
+
'/cloudquery.plugin.v3.Plugin/AssessTables',
|
|
641
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.AssessTables.Request.SerializeToString,
|
|
642
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.AssessTables.Response.FromString,
|
|
643
|
+
options,
|
|
644
|
+
channel_credentials,
|
|
645
|
+
insecure,
|
|
646
|
+
call_credentials,
|
|
647
|
+
compression,
|
|
648
|
+
wait_for_ready,
|
|
649
|
+
timeout,
|
|
650
|
+
metadata,
|
|
651
|
+
_registered_method=True)
|
|
652
|
+
|
|
653
|
+
@staticmethod
|
|
654
|
+
def WriteStream(request_iterator,
|
|
655
|
+
target,
|
|
656
|
+
options=(),
|
|
657
|
+
channel_credentials=None,
|
|
658
|
+
call_credentials=None,
|
|
659
|
+
insecure=False,
|
|
660
|
+
compression=None,
|
|
661
|
+
wait_for_ready=None,
|
|
662
|
+
timeout=None,
|
|
663
|
+
metadata=None):
|
|
664
|
+
return grpc.experimental.stream_stream(
|
|
665
|
+
request_iterator,
|
|
666
|
+
target,
|
|
667
|
+
'/cloudquery.plugin.v3.Plugin/WriteStream',
|
|
668
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Request.SerializeToString,
|
|
669
|
+
cloudquery_dot_plugin__v3_dot_plugin__pb2.Write.Response.FromString,
|
|
670
|
+
options,
|
|
671
|
+
channel_credentials,
|
|
672
|
+
insecure,
|
|
673
|
+
call_credentials,
|
|
674
|
+
compression,
|
|
675
|
+
wait_for_ready,
|
|
676
|
+
timeout,
|
|
677
|
+
metadata,
|
|
678
|
+
_registered_method=True)
|
|
File without changes
|