cloudquery-plugin-pb 0.0.22__tar.gz → 0.0.24__tar.gz

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 (24) hide show
  1. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/PKG-INFO +1 -1
  2. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/discovery_v1/discovery_pb2.py +1 -1
  3. cloudquery-plugin-pb-0.0.24/cloudquery/plugin_v3/plugin_pb2.py +110 -0
  4. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/plugin_v3/plugin_pb2.pyi +12 -0
  5. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/plugin_v3/plugin_pb2_grpc.py +36 -0
  6. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/PKG-INFO +1 -1
  7. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/setup.py +1 -1
  8. cloudquery-plugin-pb-0.0.22/cloudquery/plugin_v3/plugin_pb2.py +0 -104
  9. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/LICENSE +0 -0
  10. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/README.md +0 -0
  11. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/discovery_v1/__init__.py +0 -0
  12. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/discovery_v1/discovery_pb2.pyi +0 -0
  13. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/discovery_v1/discovery_pb2_grpc.py +0 -0
  14. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/discovery_v1/py.typed +0 -0
  15. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/plugin_v3/__init__.py +0 -0
  16. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/plugin_v3/arrow.py +0 -0
  17. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery/plugin_v3/py.typed +0 -0
  18. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/SOURCES.txt +0 -0
  19. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/dependency_links.txt +0 -0
  20. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/namespace_packages.txt +0 -0
  21. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/not-zip-safe +0 -0
  22. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/requires.txt +0 -0
  23. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/cloudquery_plugin_pb.egg-info/top_level.txt +0 -0
  24. {cloudquery-plugin-pb-0.0.22 → cloudquery-plugin-pb-0.0.24}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudquery-plugin-pb
3
- Version: 0.0.22
3
+ Version: 0.0.24
4
4
  Summary: CloudQuery Plugin client and server library
5
5
  Home-page: https://github.com/cloudquery/plugin-pb-python
6
6
  Author: CloudQuery LTD
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: cloudquery/discovery_v1/discovery.proto
4
- # Protobuf Python Version: 4.25.0
4
+ # Protobuf Python Version: 4.25.1
5
5
  """Generated protocol buffer code."""
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -0,0 +1,110 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: cloudquery/plugin_v3/plugin.proto
4
+ # Protobuf Python Version: 4.25.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cloudquery/plugin_v3/plugin.proto\x12\x14\x63loudquery.plugin.v3\x1a\x1fgoogle/protobuf/timestamp.proto\".\n\x07GetName\x1a\t\n\x07Request\x1a\x18\n\x08Response\x12\x0c\n\x04name\x18\x01 \x01(\t\"4\n\nGetVersion\x1a\t\n\x07Request\x1a\x1b\n\x08Response\x12\x0f\n\x07version\x18\x01 \x01(\t\"P\n\rGetSpecSchema\x1a\t\n\x07Request\x1a\x34\n\x08Response\x12\x18\n\x0bjson_schema\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_json_schema\"B\n\x04Init\x1a.\n\x07Request\x12\x0c\n\x04spec\x18\x01 \x01(\x0c\x12\x15\n\rno_connection\x18\x02 \x01(\x08\x1a\n\n\x08Response\"v\n\tGetTables\x1aM\n\x07Request\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x13\n\x0bskip_tables\x18\x02 \x03(\t\x12\x1d\n\x15skip_dependent_tables\x18\x03 \x01(\x08\x1a\x1a\n\x08Response\x12\x0e\n\x06tables\x18\x01 \x03(\x0c\"\xbd\x05\n\x04Sync\x1a\x1f\n\rMessageInsert\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a$\n\x13MessageMigrateTable\x12\r\n\x05table\x18\x01 \x01(\x0c\x1a\xa4\x01\n\x13MessageDeleteRecord\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12;\n\x0cwhere_clause\x18\x02 \x03(\x0b\x32%.cloudquery.plugin.v3.PredicatesGroup\x12<\n\x0ftable_relations\x18\x03 \x03(\x0b\x32#.cloudquery.plugin.v3.TableRelation\x1a\x38\n\x0e\x42\x61\x63kendOptions\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x12\n\nconnection\x18\x02 \x01(\t\x1a\xa6\x01\n\x07Request\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x13\n\x0bskip_tables\x18\x02 \x03(\t\x12\x1d\n\x15skip_dependent_tables\x18\x03 \x01(\x08\x12\x1b\n\x13\x64\x65terministic_cq_id\x18\x04 \x01(\x08\x12:\n\x07\x62\x61\x63kend\x18\x05 \x01(\x0b\x32).cloudquery.plugin.v3.Sync.BackendOptions\x1a\xe3\x01\n\x08Response\x12G\n\rmigrate_table\x18\x01 \x01(\x0b\x32..cloudquery.plugin.v3.Sync.MessageMigrateTableH\x00\x12:\n\x06insert\x18\x02 \x01(\x0b\x32(.cloudquery.plugin.v3.Sync.MessageInsertH\x00\x12G\n\rdelete_record\x18\x03 \x01(\x0b\x32..cloudquery.plugin.v3.Sync.MessageDeleteRecordH\x00\x42\t\n\x07message\"<\n\x04Read\x1a\x18\n\x07Request\x12\r\n\x05table\x18\x01 \x01(\x0c\x1a\x1a\n\x08Response\x12\x0e\n\x06record\x18\x01 \x01(\x0c\"9\n\rTableRelation\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x14\n\x0cparent_table\x18\x02 \x01(\t\"{\n\tPredicate\x12:\n\x08operator\x18\x01 \x01(\x0e\x32(.cloudquery.plugin.v3.Predicate.Operator\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\t\x12\x0e\n\x06record\x18\x03 \x01(\x0c\"\x12\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\"\xb2\x01\n\x0fPredicatesGroup\x12I\n\rgrouping_type\x18\x01 \x01(\x0e\x32\x32.cloudquery.plugin.v3.PredicatesGroup.GroupingType\x12\x33\n\npredicates\x18\x02 \x03(\x0b\x32\x1f.cloudquery.plugin.v3.Predicate\"\x1f\n\x0cGroupingType\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\"\xc3\x05\n\x05Write\x1a;\n\x13MessageMigrateTable\x12\r\n\x05table\x18\x01 \x01(\x0c\x12\x15\n\rmigrate_force\x18\x02 \x01(\x08\x1a\x1f\n\rMessageInsert\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a\x7f\n\x12MessageDeleteStale\x12\x11\n\x05table\x18\x01 \x01(\x0c\x42\x02\x18\x01\x12\x13\n\x0bsource_name\x18\x02 \x01(\t\x12-\n\tsync_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ntable_name\x18\x04 \x01(\t\x1a\xa4\x01\n\x13MessageDeleteRecord\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12;\n\x0cwhere_clause\x18\x02 \x03(\x0b\x32%.cloudquery.plugin.v3.PredicatesGroup\x12<\n\x0ftable_relations\x18\x03 \x03(\x0b\x32#.cloudquery.plugin.v3.TableRelation\x1a\xa7\x02\n\x07Request\x12H\n\rmigrate_table\x18\x01 \x01(\x0b\x32/.cloudquery.plugin.v3.Write.MessageMigrateTableH\x00\x12;\n\x06insert\x18\x02 \x01(\x0b\x32).cloudquery.plugin.v3.Write.MessageInsertH\x00\x12@\n\x06\x64\x65lete\x18\x03 \x01(\x0b\x32..cloudquery.plugin.v3.Write.MessageDeleteStaleH\x00\x12H\n\rdelete_record\x18\x04 \x01(\x0b\x32/.cloudquery.plugin.v3.Write.MessageDeleteRecordH\x00\x42\t\n\x07message\x1a\n\n\x08Response\"\x1e\n\x05\x43lose\x1a\t\n\x07Request\x1a\n\n\x08Response2\xb2\x06\n\x06Plugin\x12X\n\x07GetName\x12%.cloudquery.plugin.v3.GetName.Request\x1a&.cloudquery.plugin.v3.GetName.Response\x12\x61\n\nGetVersion\x12(.cloudquery.plugin.v3.GetVersion.Request\x1a).cloudquery.plugin.v3.GetVersion.Response\x12j\n\rGetSpecSchema\x12+.cloudquery.plugin.v3.GetSpecSchema.Request\x1a,.cloudquery.plugin.v3.GetSpecSchema.Response\x12O\n\x04Init\x12\".cloudquery.plugin.v3.Init.Request\x1a#.cloudquery.plugin.v3.Init.Response\x12^\n\tGetTables\x12\'.cloudquery.plugin.v3.GetTables.Request\x1a(.cloudquery.plugin.v3.GetTables.Response\x12Q\n\x04Sync\x12\".cloudquery.plugin.v3.Sync.Request\x1a#.cloudquery.plugin.v3.Sync.Response0\x01\x12Q\n\x04Read\x12\".cloudquery.plugin.v3.Read.Request\x1a#.cloudquery.plugin.v3.Read.Response0\x01\x12T\n\x05Write\x12#.cloudquery.plugin.v3.Write.Request\x1a$.cloudquery.plugin.v3.Write.Response(\x01\x12R\n\x05\x43lose\x12#.cloudquery.plugin.v3.Close.Request\x1a$.cloudquery.plugin.v3.Close.ResponseBS\n\x17io.cloudquery.plugin.v3P\x01Z6github.com/cloudquery/plugin-pb-go/pb/plugin/v3;pluginb\x06proto3')
19
+
20
+ _globals = globals()
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloudquery.plugin_v3.plugin_pb2', _globals)
23
+ if _descriptor._USE_C_DESCRIPTORS == False:
24
+ _globals['DESCRIPTOR']._options = None
25
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027io.cloudquery.plugin.v3P\001Z6github.com/cloudquery/plugin-pb-go/pb/plugin/v3;plugin'
26
+ _globals['_WRITE_MESSAGEDELETESTALE'].fields_by_name['table']._options = None
27
+ _globals['_WRITE_MESSAGEDELETESTALE'].fields_by_name['table']._serialized_options = b'\030\001'
28
+ _globals['_GETNAME']._serialized_start=92
29
+ _globals['_GETNAME']._serialized_end=138
30
+ _globals['_GETNAME_REQUEST']._serialized_start=103
31
+ _globals['_GETNAME_REQUEST']._serialized_end=112
32
+ _globals['_GETNAME_RESPONSE']._serialized_start=114
33
+ _globals['_GETNAME_RESPONSE']._serialized_end=138
34
+ _globals['_GETVERSION']._serialized_start=140
35
+ _globals['_GETVERSION']._serialized_end=192
36
+ _globals['_GETVERSION_REQUEST']._serialized_start=103
37
+ _globals['_GETVERSION_REQUEST']._serialized_end=112
38
+ _globals['_GETVERSION_RESPONSE']._serialized_start=165
39
+ _globals['_GETVERSION_RESPONSE']._serialized_end=192
40
+ _globals['_GETSPECSCHEMA']._serialized_start=194
41
+ _globals['_GETSPECSCHEMA']._serialized_end=274
42
+ _globals['_GETSPECSCHEMA_REQUEST']._serialized_start=103
43
+ _globals['_GETSPECSCHEMA_REQUEST']._serialized_end=112
44
+ _globals['_GETSPECSCHEMA_RESPONSE']._serialized_start=222
45
+ _globals['_GETSPECSCHEMA_RESPONSE']._serialized_end=274
46
+ _globals['_INIT']._serialized_start=276
47
+ _globals['_INIT']._serialized_end=342
48
+ _globals['_INIT_REQUEST']._serialized_start=284
49
+ _globals['_INIT_REQUEST']._serialized_end=330
50
+ _globals['_INIT_RESPONSE']._serialized_start=114
51
+ _globals['_INIT_RESPONSE']._serialized_end=124
52
+ _globals['_GETTABLES']._serialized_start=344
53
+ _globals['_GETTABLES']._serialized_end=462
54
+ _globals['_GETTABLES_REQUEST']._serialized_start=357
55
+ _globals['_GETTABLES_REQUEST']._serialized_end=434
56
+ _globals['_GETTABLES_RESPONSE']._serialized_start=436
57
+ _globals['_GETTABLES_RESPONSE']._serialized_end=462
58
+ _globals['_SYNC']._serialized_start=465
59
+ _globals['_SYNC']._serialized_end=1166
60
+ _globals['_SYNC_MESSAGEINSERT']._serialized_start=473
61
+ _globals['_SYNC_MESSAGEINSERT']._serialized_end=504
62
+ _globals['_SYNC_MESSAGEMIGRATETABLE']._serialized_start=506
63
+ _globals['_SYNC_MESSAGEMIGRATETABLE']._serialized_end=542
64
+ _globals['_SYNC_MESSAGEDELETERECORD']._serialized_start=545
65
+ _globals['_SYNC_MESSAGEDELETERECORD']._serialized_end=709
66
+ _globals['_SYNC_BACKENDOPTIONS']._serialized_start=711
67
+ _globals['_SYNC_BACKENDOPTIONS']._serialized_end=767
68
+ _globals['_SYNC_REQUEST']._serialized_start=770
69
+ _globals['_SYNC_REQUEST']._serialized_end=936
70
+ _globals['_SYNC_RESPONSE']._serialized_start=939
71
+ _globals['_SYNC_RESPONSE']._serialized_end=1166
72
+ _globals['_READ']._serialized_start=1168
73
+ _globals['_READ']._serialized_end=1228
74
+ _globals['_READ_REQUEST']._serialized_start=1176
75
+ _globals['_READ_REQUEST']._serialized_end=1200
76
+ _globals['_READ_RESPONSE']._serialized_start=1202
77
+ _globals['_READ_RESPONSE']._serialized_end=1228
78
+ _globals['_TABLERELATION']._serialized_start=1230
79
+ _globals['_TABLERELATION']._serialized_end=1287
80
+ _globals['_PREDICATE']._serialized_start=1289
81
+ _globals['_PREDICATE']._serialized_end=1412
82
+ _globals['_PREDICATE_OPERATOR']._serialized_start=1394
83
+ _globals['_PREDICATE_OPERATOR']._serialized_end=1412
84
+ _globals['_PREDICATESGROUP']._serialized_start=1415
85
+ _globals['_PREDICATESGROUP']._serialized_end=1593
86
+ _globals['_PREDICATESGROUP_GROUPINGTYPE']._serialized_start=1562
87
+ _globals['_PREDICATESGROUP_GROUPINGTYPE']._serialized_end=1593
88
+ _globals['_WRITE']._serialized_start=1596
89
+ _globals['_WRITE']._serialized_end=2303
90
+ _globals['_WRITE_MESSAGEMIGRATETABLE']._serialized_start=1605
91
+ _globals['_WRITE_MESSAGEMIGRATETABLE']._serialized_end=1664
92
+ _globals['_WRITE_MESSAGEINSERT']._serialized_start=473
93
+ _globals['_WRITE_MESSAGEINSERT']._serialized_end=504
94
+ _globals['_WRITE_MESSAGEDELETESTALE']._serialized_start=1699
95
+ _globals['_WRITE_MESSAGEDELETESTALE']._serialized_end=1826
96
+ _globals['_WRITE_MESSAGEDELETERECORD']._serialized_start=545
97
+ _globals['_WRITE_MESSAGEDELETERECORD']._serialized_end=709
98
+ _globals['_WRITE_REQUEST']._serialized_start=1996
99
+ _globals['_WRITE_REQUEST']._serialized_end=2291
100
+ _globals['_WRITE_RESPONSE']._serialized_start=114
101
+ _globals['_WRITE_RESPONSE']._serialized_end=124
102
+ _globals['_CLOSE']._serialized_start=2305
103
+ _globals['_CLOSE']._serialized_end=2335
104
+ _globals['_CLOSE_REQUEST']._serialized_start=103
105
+ _globals['_CLOSE_REQUEST']._serialized_end=112
106
+ _globals['_CLOSE_RESPONSE']._serialized_start=114
107
+ _globals['_CLOSE_RESPONSE']._serialized_end=124
108
+ _globals['_PLUGIN']._serialized_start=2338
109
+ _globals['_PLUGIN']._serialized_end=3156
110
+ # @@protoc_insertion_point(module_scope)
@@ -31,6 +31,18 @@ class GetVersion(_message.Message):
31
31
  def __init__(self, version: _Optional[str] = ...) -> None: ...
32
32
  def __init__(self) -> None: ...
33
33
 
34
+ class GetSpecSchema(_message.Message):
35
+ __slots__ = ()
36
+ class Request(_message.Message):
37
+ __slots__ = ()
38
+ def __init__(self) -> None: ...
39
+ class Response(_message.Message):
40
+ __slots__ = ("json_schema",)
41
+ JSON_SCHEMA_FIELD_NUMBER: _ClassVar[int]
42
+ json_schema: str
43
+ def __init__(self, json_schema: _Optional[str] = ...) -> None: ...
44
+ def __init__(self) -> None: ...
45
+
34
46
  class Init(_message.Message):
35
47
  __slots__ = ()
36
48
  class Request(_message.Message):
@@ -24,6 +24,11 @@ class PluginStub(object):
24
24
  request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Request.SerializeToString,
25
25
  response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Response.FromString,
26
26
  )
27
+ self.GetSpecSchema = channel.unary_unary(
28
+ '/cloudquery.plugin.v3.Plugin/GetSpecSchema',
29
+ request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Request.SerializeToString,
30
+ response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Response.FromString,
31
+ )
27
32
  self.Init = channel.unary_unary(
28
33
  '/cloudquery.plugin.v3.Plugin/Init',
29
34
  request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Request.SerializeToString,
@@ -73,6 +78,15 @@ class PluginServicer(object):
73
78
  context.set_details('Method not implemented!')
74
79
  raise NotImplementedError('Method not implemented!')
75
80
 
81
+ def GetSpecSchema(self, request, context):
82
+ """Get plugin spec schema.
83
+ This will allow validating the input even before calling Init.
84
+ Should be called before Init.
85
+ """
86
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
87
+ context.set_details('Method not implemented!')
88
+ raise NotImplementedError('Method not implemented!')
89
+
76
90
  def Init(self, request, context):
77
91
  """Configure the plugin with the given credentials and mode
78
92
  """
@@ -129,6 +143,11 @@ def add_PluginServicer_to_server(servicer, server):
129
143
  request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Request.FromString,
130
144
  response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetVersion.Response.SerializeToString,
131
145
  ),
146
+ 'GetSpecSchema': grpc.unary_unary_rpc_method_handler(
147
+ servicer.GetSpecSchema,
148
+ request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Request.FromString,
149
+ response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Response.SerializeToString,
150
+ ),
132
151
  'Init': grpc.unary_unary_rpc_method_handler(
133
152
  servicer.Init,
134
153
  request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Init.Request.FromString,
@@ -203,6 +222,23 @@ class Plugin(object):
203
222
  options, channel_credentials,
204
223
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
205
224
 
225
+ @staticmethod
226
+ def GetSpecSchema(request,
227
+ target,
228
+ options=(),
229
+ channel_credentials=None,
230
+ call_credentials=None,
231
+ insecure=False,
232
+ compression=None,
233
+ wait_for_ready=None,
234
+ timeout=None,
235
+ metadata=None):
236
+ return grpc.experimental.unary_unary(request, target, '/cloudquery.plugin.v3.Plugin/GetSpecSchema',
237
+ cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Request.SerializeToString,
238
+ cloudquery_dot_plugin__v3_dot_plugin__pb2.GetSpecSchema.Response.FromString,
239
+ options, channel_credentials,
240
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
241
+
206
242
  @staticmethod
207
243
  def Init(request,
208
244
  target,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudquery-plugin-pb
3
- Version: 0.0.22
3
+ Version: 0.0.24
4
4
  Summary: CloudQuery Plugin client and server library
5
5
  Home-page: https://github.com/cloudquery/plugin-pb-python
6
6
  Author: CloudQuery LTD
@@ -37,7 +37,7 @@ packages = [
37
37
  ]
38
38
  setuptools.setup(
39
39
  name=name,
40
- version="0.0.22",
40
+ version="0.0.24",
41
41
  description=description,
42
42
  long_description=long_description,
43
43
  author="CloudQuery LTD",
@@ -1,104 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: cloudquery/plugin_v3/plugin.proto
4
- # Protobuf Python Version: 4.25.0
5
- """Generated protocol buffer code."""
6
- from google.protobuf import descriptor as _descriptor
7
- from google.protobuf import descriptor_pool as _descriptor_pool
8
- from google.protobuf import symbol_database as _symbol_database
9
- from google.protobuf.internal import builder as _builder
10
- # @@protoc_insertion_point(imports)
11
-
12
- _sym_db = _symbol_database.Default()
13
-
14
-
15
- from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
-
17
-
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cloudquery/plugin_v3/plugin.proto\x12\x14\x63loudquery.plugin.v3\x1a\x1fgoogle/protobuf/timestamp.proto\".\n\x07GetName\x1a\t\n\x07Request\x1a\x18\n\x08Response\x12\x0c\n\x04name\x18\x01 \x01(\t\"4\n\nGetVersion\x1a\t\n\x07Request\x1a\x1b\n\x08Response\x12\x0f\n\x07version\x18\x01 \x01(\t\"B\n\x04Init\x1a.\n\x07Request\x12\x0c\n\x04spec\x18\x01 \x01(\x0c\x12\x15\n\rno_connection\x18\x02 \x01(\x08\x1a\n\n\x08Response\"v\n\tGetTables\x1aM\n\x07Request\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x13\n\x0bskip_tables\x18\x02 \x03(\t\x12\x1d\n\x15skip_dependent_tables\x18\x03 \x01(\x08\x1a\x1a\n\x08Response\x12\x0e\n\x06tables\x18\x01 \x03(\x0c\"\xbd\x05\n\x04Sync\x1a\x1f\n\rMessageInsert\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a$\n\x13MessageMigrateTable\x12\r\n\x05table\x18\x01 \x01(\x0c\x1a\xa4\x01\n\x13MessageDeleteRecord\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12;\n\x0cwhere_clause\x18\x02 \x03(\x0b\x32%.cloudquery.plugin.v3.PredicatesGroup\x12<\n\x0ftable_relations\x18\x03 \x03(\x0b\x32#.cloudquery.plugin.v3.TableRelation\x1a\x38\n\x0e\x42\x61\x63kendOptions\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x12\n\nconnection\x18\x02 \x01(\t\x1a\xa6\x01\n\x07Request\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x13\n\x0bskip_tables\x18\x02 \x03(\t\x12\x1d\n\x15skip_dependent_tables\x18\x03 \x01(\x08\x12\x1b\n\x13\x64\x65terministic_cq_id\x18\x04 \x01(\x08\x12:\n\x07\x62\x61\x63kend\x18\x05 \x01(\x0b\x32).cloudquery.plugin.v3.Sync.BackendOptions\x1a\xe3\x01\n\x08Response\x12G\n\rmigrate_table\x18\x01 \x01(\x0b\x32..cloudquery.plugin.v3.Sync.MessageMigrateTableH\x00\x12:\n\x06insert\x18\x02 \x01(\x0b\x32(.cloudquery.plugin.v3.Sync.MessageInsertH\x00\x12G\n\rdelete_record\x18\x03 \x01(\x0b\x32..cloudquery.plugin.v3.Sync.MessageDeleteRecordH\x00\x42\t\n\x07message\"<\n\x04Read\x1a\x18\n\x07Request\x12\r\n\x05table\x18\x01 \x01(\x0c\x1a\x1a\n\x08Response\x12\x0e\n\x06record\x18\x01 \x01(\x0c\"9\n\rTableRelation\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x14\n\x0cparent_table\x18\x02 \x01(\t\"{\n\tPredicate\x12:\n\x08operator\x18\x01 \x01(\x0e\x32(.cloudquery.plugin.v3.Predicate.Operator\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\t\x12\x0e\n\x06record\x18\x03 \x01(\x0c\"\x12\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\"\xb2\x01\n\x0fPredicatesGroup\x12I\n\rgrouping_type\x18\x01 \x01(\x0e\x32\x32.cloudquery.plugin.v3.PredicatesGroup.GroupingType\x12\x33\n\npredicates\x18\x02 \x03(\x0b\x32\x1f.cloudquery.plugin.v3.Predicate\"\x1f\n\x0cGroupingType\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\"\xc3\x05\n\x05Write\x1a;\n\x13MessageMigrateTable\x12\r\n\x05table\x18\x01 \x01(\x0c\x12\x15\n\rmigrate_force\x18\x02 \x01(\x08\x1a\x1f\n\rMessageInsert\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a\x7f\n\x12MessageDeleteStale\x12\x11\n\x05table\x18\x01 \x01(\x0c\x42\x02\x18\x01\x12\x13\n\x0bsource_name\x18\x02 \x01(\t\x12-\n\tsync_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ntable_name\x18\x04 \x01(\t\x1a\xa4\x01\n\x13MessageDeleteRecord\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12;\n\x0cwhere_clause\x18\x02 \x03(\x0b\x32%.cloudquery.plugin.v3.PredicatesGroup\x12<\n\x0ftable_relations\x18\x03 \x03(\x0b\x32#.cloudquery.plugin.v3.TableRelation\x1a\xa7\x02\n\x07Request\x12H\n\rmigrate_table\x18\x01 \x01(\x0b\x32/.cloudquery.plugin.v3.Write.MessageMigrateTableH\x00\x12;\n\x06insert\x18\x02 \x01(\x0b\x32).cloudquery.plugin.v3.Write.MessageInsertH\x00\x12@\n\x06\x64\x65lete\x18\x03 \x01(\x0b\x32..cloudquery.plugin.v3.Write.MessageDeleteStaleH\x00\x12H\n\rdelete_record\x18\x04 \x01(\x0b\x32/.cloudquery.plugin.v3.Write.MessageDeleteRecordH\x00\x42\t\n\x07message\x1a\n\n\x08Response\"\x1e\n\x05\x43lose\x1a\t\n\x07Request\x1a\n\n\x08Response2\xc6\x05\n\x06Plugin\x12X\n\x07GetName\x12%.cloudquery.plugin.v3.GetName.Request\x1a&.cloudquery.plugin.v3.GetName.Response\x12\x61\n\nGetVersion\x12(.cloudquery.plugin.v3.GetVersion.Request\x1a).cloudquery.plugin.v3.GetVersion.Response\x12O\n\x04Init\x12\".cloudquery.plugin.v3.Init.Request\x1a#.cloudquery.plugin.v3.Init.Response\x12^\n\tGetTables\x12\'.cloudquery.plugin.v3.GetTables.Request\x1a(.cloudquery.plugin.v3.GetTables.Response\x12Q\n\x04Sync\x12\".cloudquery.plugin.v3.Sync.Request\x1a#.cloudquery.plugin.v3.Sync.Response0\x01\x12Q\n\x04Read\x12\".cloudquery.plugin.v3.Read.Request\x1a#.cloudquery.plugin.v3.Read.Response0\x01\x12T\n\x05Write\x12#.cloudquery.plugin.v3.Write.Request\x1a$.cloudquery.plugin.v3.Write.Response(\x01\x12R\n\x05\x43lose\x12#.cloudquery.plugin.v3.Close.Request\x1a$.cloudquery.plugin.v3.Close.ResponseBS\n\x17io.cloudquery.plugin.v3P\x01Z6github.com/cloudquery/plugin-pb-go/pb/plugin/v3;pluginb\x06proto3')
19
-
20
- _globals = globals()
21
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloudquery.plugin_v3.plugin_pb2', _globals)
23
- if _descriptor._USE_C_DESCRIPTORS == False:
24
- _globals['DESCRIPTOR']._options = None
25
- _globals['DESCRIPTOR']._serialized_options = b'\n\027io.cloudquery.plugin.v3P\001Z6github.com/cloudquery/plugin-pb-go/pb/plugin/v3;plugin'
26
- _globals['_WRITE_MESSAGEDELETESTALE'].fields_by_name['table']._options = None
27
- _globals['_WRITE_MESSAGEDELETESTALE'].fields_by_name['table']._serialized_options = b'\030\001'
28
- _globals['_GETNAME']._serialized_start=92
29
- _globals['_GETNAME']._serialized_end=138
30
- _globals['_GETNAME_REQUEST']._serialized_start=103
31
- _globals['_GETNAME_REQUEST']._serialized_end=112
32
- _globals['_GETNAME_RESPONSE']._serialized_start=114
33
- _globals['_GETNAME_RESPONSE']._serialized_end=138
34
- _globals['_GETVERSION']._serialized_start=140
35
- _globals['_GETVERSION']._serialized_end=192
36
- _globals['_GETVERSION_REQUEST']._serialized_start=103
37
- _globals['_GETVERSION_REQUEST']._serialized_end=112
38
- _globals['_GETVERSION_RESPONSE']._serialized_start=165
39
- _globals['_GETVERSION_RESPONSE']._serialized_end=192
40
- _globals['_INIT']._serialized_start=194
41
- _globals['_INIT']._serialized_end=260
42
- _globals['_INIT_REQUEST']._serialized_start=202
43
- _globals['_INIT_REQUEST']._serialized_end=248
44
- _globals['_INIT_RESPONSE']._serialized_start=114
45
- _globals['_INIT_RESPONSE']._serialized_end=124
46
- _globals['_GETTABLES']._serialized_start=262
47
- _globals['_GETTABLES']._serialized_end=380
48
- _globals['_GETTABLES_REQUEST']._serialized_start=275
49
- _globals['_GETTABLES_REQUEST']._serialized_end=352
50
- _globals['_GETTABLES_RESPONSE']._serialized_start=354
51
- _globals['_GETTABLES_RESPONSE']._serialized_end=380
52
- _globals['_SYNC']._serialized_start=383
53
- _globals['_SYNC']._serialized_end=1084
54
- _globals['_SYNC_MESSAGEINSERT']._serialized_start=391
55
- _globals['_SYNC_MESSAGEINSERT']._serialized_end=422
56
- _globals['_SYNC_MESSAGEMIGRATETABLE']._serialized_start=424
57
- _globals['_SYNC_MESSAGEMIGRATETABLE']._serialized_end=460
58
- _globals['_SYNC_MESSAGEDELETERECORD']._serialized_start=463
59
- _globals['_SYNC_MESSAGEDELETERECORD']._serialized_end=627
60
- _globals['_SYNC_BACKENDOPTIONS']._serialized_start=629
61
- _globals['_SYNC_BACKENDOPTIONS']._serialized_end=685
62
- _globals['_SYNC_REQUEST']._serialized_start=688
63
- _globals['_SYNC_REQUEST']._serialized_end=854
64
- _globals['_SYNC_RESPONSE']._serialized_start=857
65
- _globals['_SYNC_RESPONSE']._serialized_end=1084
66
- _globals['_READ']._serialized_start=1086
67
- _globals['_READ']._serialized_end=1146
68
- _globals['_READ_REQUEST']._serialized_start=1094
69
- _globals['_READ_REQUEST']._serialized_end=1118
70
- _globals['_READ_RESPONSE']._serialized_start=1120
71
- _globals['_READ_RESPONSE']._serialized_end=1146
72
- _globals['_TABLERELATION']._serialized_start=1148
73
- _globals['_TABLERELATION']._serialized_end=1205
74
- _globals['_PREDICATE']._serialized_start=1207
75
- _globals['_PREDICATE']._serialized_end=1330
76
- _globals['_PREDICATE_OPERATOR']._serialized_start=1312
77
- _globals['_PREDICATE_OPERATOR']._serialized_end=1330
78
- _globals['_PREDICATESGROUP']._serialized_start=1333
79
- _globals['_PREDICATESGROUP']._serialized_end=1511
80
- _globals['_PREDICATESGROUP_GROUPINGTYPE']._serialized_start=1480
81
- _globals['_PREDICATESGROUP_GROUPINGTYPE']._serialized_end=1511
82
- _globals['_WRITE']._serialized_start=1514
83
- _globals['_WRITE']._serialized_end=2221
84
- _globals['_WRITE_MESSAGEMIGRATETABLE']._serialized_start=1523
85
- _globals['_WRITE_MESSAGEMIGRATETABLE']._serialized_end=1582
86
- _globals['_WRITE_MESSAGEINSERT']._serialized_start=391
87
- _globals['_WRITE_MESSAGEINSERT']._serialized_end=422
88
- _globals['_WRITE_MESSAGEDELETESTALE']._serialized_start=1617
89
- _globals['_WRITE_MESSAGEDELETESTALE']._serialized_end=1744
90
- _globals['_WRITE_MESSAGEDELETERECORD']._serialized_start=463
91
- _globals['_WRITE_MESSAGEDELETERECORD']._serialized_end=627
92
- _globals['_WRITE_REQUEST']._serialized_start=1914
93
- _globals['_WRITE_REQUEST']._serialized_end=2209
94
- _globals['_WRITE_RESPONSE']._serialized_start=114
95
- _globals['_WRITE_RESPONSE']._serialized_end=124
96
- _globals['_CLOSE']._serialized_start=2223
97
- _globals['_CLOSE']._serialized_end=2253
98
- _globals['_CLOSE_REQUEST']._serialized_start=103
99
- _globals['_CLOSE_REQUEST']._serialized_end=112
100
- _globals['_CLOSE_RESPONSE']._serialized_start=114
101
- _globals['_CLOSE_RESPONSE']._serialized_end=124
102
- _globals['_PLUGIN']._serialized_start=2256
103
- _globals['_PLUGIN']._serialized_end=2966
104
- # @@protoc_insertion_point(module_scope)