fivetran-connector-sdk 0.4.8.1__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.
- fivetran_connector_sdk/__init__.py +703 -0
- fivetran_connector_sdk/protos/__init__.py +1 -0
- fivetran_connector_sdk/protos/common_pb2.py +65 -0
- fivetran_connector_sdk/protos/common_pb2.pyi +218 -0
- fivetran_connector_sdk/protos/common_pb2_grpc.py +4 -0
- fivetran_connector_sdk/protos/connector_sdk_pb2.py +70 -0
- fivetran_connector_sdk/protos/connector_sdk_pb2.pyi +173 -0
- fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py +172 -0
- fivetran_connector_sdk-0.4.8.1.dist-info/LICENSE +21 -0
- fivetran_connector_sdk-0.4.8.1.dist-info/METADATA +18 -0
- fivetran_connector_sdk-0.4.8.1.dist-info/RECORD +14 -0
- fivetran_connector_sdk-0.4.8.1.dist-info/WHEEL +5 -0
- fivetran_connector_sdk-0.4.8.1.dist-info/entry_points.txt +2 -0
- fivetran_connector_sdk-0.4.8.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: common.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
8
|
+
from google.protobuf.internal import builder as _builder
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x63ommon.proto\x12\x0c\x66ivetran_sdk\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1a\n\x18\x43onfigurationFormRequest\"\xbb\x01\n\x19\x43onfigurationFormResponse\x12\"\n\x1aschema_selection_supported\x18\x01 \x01(\x08\x12!\n\x19table_selection_supported\x18\x02 \x01(\x08\x12\'\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x17.fivetran_sdk.FormField\x12.\n\x05tests\x18\x04 \x03(\x0b\x32\x1f.fivetran_sdk.ConfigurationTest\"\x85\x02\n\tFormField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08required\x18\x03 \x01(\x08\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x01\x88\x01\x01\x12-\n\ntext_field\x18\x05 \x01(\x0e\x32\x17.fivetran_sdk.TextFieldH\x00\x12\x35\n\x0e\x64ropdown_field\x18\x06 \x01(\x0b\x32\x1b.fivetran_sdk.DropdownFieldH\x00\x12\x31\n\x0ctoggle_field\x18\x07 \x01(\x0b\x32\x19.fivetran_sdk.ToggleFieldH\x00\x42\x06\n\x04typeB\x0e\n\x0c_description\"\'\n\rDropdownField\x12\x16\n\x0e\x64ropdown_field\x18\x01 \x03(\t\"\r\n\x0bToggleField\"0\n\x11\x43onfigurationTest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\"\x96\x01\n\x0bTestRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\rconfiguration\x18\x02 \x03(\x0b\x32,.fivetran_sdk.TestRequest.ConfigurationEntry\x1a\x34\n\x12\x43onfigurationEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"@\n\x0cTestResponse\x12\x11\n\x07success\x18\x01 \x01(\x08H\x00\x12\x11\n\x07\x66\x61ilure\x18\x02 \x01(\tH\x00\x42\n\n\x08response\"3\n\nSchemaList\x12%\n\x07schemas\x18\x01 \x03(\x0b\x32\x14.fivetran_sdk.Schema\"0\n\tTableList\x12#\n\x06tables\x18\x01 \x03(\x0b\x32\x13.fivetran_sdk.Table\";\n\x06Schema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12#\n\x06tables\x18\x02 \x03(\x0b\x32\x13.fivetran_sdk.Table\"1\n\rDecimalParams\x12\x11\n\tprecision\x18\x01 \x01(\r\x12\r\n\x05scale\x18\x02 \x01(\r\"\xf9\x02\n\tValueType\x12\x0e\n\x04null\x18\x01 \x01(\x08H\x00\x12\x0e\n\x04\x62ool\x18\x02 \x01(\x08H\x00\x12\x0f\n\x05short\x18\x03 \x01(\x05H\x00\x12\r\n\x03int\x18\x04 \x01(\x05H\x00\x12\x0e\n\x04long\x18\x05 \x01(\x03H\x00\x12\x0f\n\x05\x66loat\x18\x06 \x01(\x02H\x00\x12\x10\n\x06\x64ouble\x18\x07 \x01(\x01H\x00\x12\x30\n\nnaive_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x34\n\x0enaive_datetime\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x32\n\x0cutc_datetime\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x11\n\x07\x64\x65\x63imal\x18\x0b \x01(\tH\x00\x12\x10\n\x06\x62inary\x18\x0c \x01(\x0cH\x00\x12\x10\n\x06string\x18\r \x01(\tH\x00\x12\x0e\n\x04json\x18\x0e \x01(\tH\x00\x12\r\n\x03xml\x18\x0f \x01(\tH\x00\x42\x07\n\x05inner\"<\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x14.fivetran_sdk.Column\"\x90\x01\n\x06\x43olumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x04type\x18\x02 \x01(\x0e\x32\x16.fivetran_sdk.DataType\x12\x13\n\x0bprimary_key\x18\x03 \x01(\x08\x12\x31\n\x07\x64\x65\x63imal\x18\x04 \x01(\x0b\x32\x1b.fivetran_sdk.DecimalParamsH\x00\x88\x01\x01\x42\n\n\x08_decimal*4\n\tTextField\x12\r\n\tPlainText\x10\x00\x12\x0c\n\x08Password\x10\x01\x12\n\n\x06Hidden\x10\x02*\xcb\x01\n\x08\x44\x61taType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07\x42OOLEAN\x10\x01\x12\t\n\x05SHORT\x10\x02\x12\x07\n\x03INT\x10\x03\x12\x08\n\x04LONG\x10\x04\x12\x0b\n\x07\x44\x45\x43IMAL\x10\x05\x12\t\n\x05\x46LOAT\x10\x06\x12\n\n\x06\x44OUBLE\x10\x07\x12\x0e\n\nNAIVE_DATE\x10\x08\x12\x12\n\x0eNAIVE_DATETIME\x10\t\x12\x10\n\x0cUTC_DATETIME\x10\n\x12\n\n\x06\x42INARY\x10\x0b\x12\x07\n\x03XML\x10\x0c\x12\n\n\x06STRING\x10\r\x12\x08\n\x04JSON\x10\x0e*:\n\x06OpType\x12\n\n\x06UPSERT\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08TRUNCATE\x10\x03\x42\x1fH\x01P\x01Z\x19\x66ivetran.com/fivetran_sdkb\x06proto3')
|
18
|
+
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common_pb2', _globals)
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
DESCRIPTOR._serialized_options = b'H\001P\001Z\031fivetran.com/fivetran_sdk'
|
25
|
+
_TESTREQUEST_CONFIGURATIONENTRY._options = None
|
26
|
+
_TESTREQUEST_CONFIGURATIONENTRY._serialized_options = b'8\001'
|
27
|
+
_globals['_TEXTFIELD']._serialized_start=1674
|
28
|
+
_globals['_TEXTFIELD']._serialized_end=1726
|
29
|
+
_globals['_DATATYPE']._serialized_start=1729
|
30
|
+
_globals['_DATATYPE']._serialized_end=1932
|
31
|
+
_globals['_OPTYPE']._serialized_start=1934
|
32
|
+
_globals['_OPTYPE']._serialized_end=1992
|
33
|
+
_globals['_CONFIGURATIONFORMREQUEST']._serialized_start=63
|
34
|
+
_globals['_CONFIGURATIONFORMREQUEST']._serialized_end=89
|
35
|
+
_globals['_CONFIGURATIONFORMRESPONSE']._serialized_start=92
|
36
|
+
_globals['_CONFIGURATIONFORMRESPONSE']._serialized_end=279
|
37
|
+
_globals['_FORMFIELD']._serialized_start=282
|
38
|
+
_globals['_FORMFIELD']._serialized_end=543
|
39
|
+
_globals['_DROPDOWNFIELD']._serialized_start=545
|
40
|
+
_globals['_DROPDOWNFIELD']._serialized_end=584
|
41
|
+
_globals['_TOGGLEFIELD']._serialized_start=586
|
42
|
+
_globals['_TOGGLEFIELD']._serialized_end=599
|
43
|
+
_globals['_CONFIGURATIONTEST']._serialized_start=601
|
44
|
+
_globals['_CONFIGURATIONTEST']._serialized_end=649
|
45
|
+
_globals['_TESTREQUEST']._serialized_start=652
|
46
|
+
_globals['_TESTREQUEST']._serialized_end=802
|
47
|
+
_globals['_TESTREQUEST_CONFIGURATIONENTRY']._serialized_start=750
|
48
|
+
_globals['_TESTREQUEST_CONFIGURATIONENTRY']._serialized_end=802
|
49
|
+
_globals['_TESTRESPONSE']._serialized_start=804
|
50
|
+
_globals['_TESTRESPONSE']._serialized_end=868
|
51
|
+
_globals['_SCHEMALIST']._serialized_start=870
|
52
|
+
_globals['_SCHEMALIST']._serialized_end=921
|
53
|
+
_globals['_TABLELIST']._serialized_start=923
|
54
|
+
_globals['_TABLELIST']._serialized_end=971
|
55
|
+
_globals['_SCHEMA']._serialized_start=973
|
56
|
+
_globals['_SCHEMA']._serialized_end=1032
|
57
|
+
_globals['_DECIMALPARAMS']._serialized_start=1034
|
58
|
+
_globals['_DECIMALPARAMS']._serialized_end=1083
|
59
|
+
_globals['_VALUETYPE']._serialized_start=1086
|
60
|
+
_globals['_VALUETYPE']._serialized_end=1463
|
61
|
+
_globals['_TABLE']._serialized_start=1465
|
62
|
+
_globals['_TABLE']._serialized_end=1525
|
63
|
+
_globals['_COLUMN']._serialized_start=1528
|
64
|
+
_globals['_COLUMN']._serialized_end=1672
|
65
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,218 @@
|
|
1
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
2
|
+
from google.protobuf.internal import containers as _containers
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
5
|
+
from google.protobuf import message as _message
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
7
|
+
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
9
|
+
|
10
|
+
class TextField(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
11
|
+
__slots__ = []
|
12
|
+
PlainText: _ClassVar[TextField]
|
13
|
+
Password: _ClassVar[TextField]
|
14
|
+
Hidden: _ClassVar[TextField]
|
15
|
+
|
16
|
+
class DataType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
17
|
+
__slots__ = []
|
18
|
+
UNSPECIFIED: _ClassVar[DataType]
|
19
|
+
BOOLEAN: _ClassVar[DataType]
|
20
|
+
SHORT: _ClassVar[DataType]
|
21
|
+
INT: _ClassVar[DataType]
|
22
|
+
LONG: _ClassVar[DataType]
|
23
|
+
DECIMAL: _ClassVar[DataType]
|
24
|
+
FLOAT: _ClassVar[DataType]
|
25
|
+
DOUBLE: _ClassVar[DataType]
|
26
|
+
NAIVE_DATE: _ClassVar[DataType]
|
27
|
+
NAIVE_DATETIME: _ClassVar[DataType]
|
28
|
+
UTC_DATETIME: _ClassVar[DataType]
|
29
|
+
BINARY: _ClassVar[DataType]
|
30
|
+
XML: _ClassVar[DataType]
|
31
|
+
STRING: _ClassVar[DataType]
|
32
|
+
JSON: _ClassVar[DataType]
|
33
|
+
|
34
|
+
class OpType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
35
|
+
__slots__ = []
|
36
|
+
UPSERT: _ClassVar[OpType]
|
37
|
+
UPDATE: _ClassVar[OpType]
|
38
|
+
DELETE: _ClassVar[OpType]
|
39
|
+
TRUNCATE: _ClassVar[OpType]
|
40
|
+
PlainText: TextField
|
41
|
+
Password: TextField
|
42
|
+
Hidden: TextField
|
43
|
+
UNSPECIFIED: DataType
|
44
|
+
BOOLEAN: DataType
|
45
|
+
SHORT: DataType
|
46
|
+
INT: DataType
|
47
|
+
LONG: DataType
|
48
|
+
DECIMAL: DataType
|
49
|
+
FLOAT: DataType
|
50
|
+
DOUBLE: DataType
|
51
|
+
NAIVE_DATE: DataType
|
52
|
+
NAIVE_DATETIME: DataType
|
53
|
+
UTC_DATETIME: DataType
|
54
|
+
BINARY: DataType
|
55
|
+
XML: DataType
|
56
|
+
STRING: DataType
|
57
|
+
JSON: DataType
|
58
|
+
UPSERT: OpType
|
59
|
+
UPDATE: OpType
|
60
|
+
DELETE: OpType
|
61
|
+
TRUNCATE: OpType
|
62
|
+
|
63
|
+
class ConfigurationFormRequest(_message.Message):
|
64
|
+
__slots__ = []
|
65
|
+
def __init__(self) -> None: ...
|
66
|
+
|
67
|
+
class ConfigurationFormResponse(_message.Message):
|
68
|
+
__slots__ = ["schema_selection_supported", "table_selection_supported", "fields", "tests"]
|
69
|
+
SCHEMA_SELECTION_SUPPORTED_FIELD_NUMBER: _ClassVar[int]
|
70
|
+
TABLE_SELECTION_SUPPORTED_FIELD_NUMBER: _ClassVar[int]
|
71
|
+
FIELDS_FIELD_NUMBER: _ClassVar[int]
|
72
|
+
TESTS_FIELD_NUMBER: _ClassVar[int]
|
73
|
+
schema_selection_supported: bool
|
74
|
+
table_selection_supported: bool
|
75
|
+
fields: _containers.RepeatedCompositeFieldContainer[FormField]
|
76
|
+
tests: _containers.RepeatedCompositeFieldContainer[ConfigurationTest]
|
77
|
+
def __init__(self, schema_selection_supported: bool = ..., table_selection_supported: bool = ..., fields: _Optional[_Iterable[_Union[FormField, _Mapping]]] = ..., tests: _Optional[_Iterable[_Union[ConfigurationTest, _Mapping]]] = ...) -> None: ...
|
78
|
+
|
79
|
+
class FormField(_message.Message):
|
80
|
+
__slots__ = ["name", "label", "required", "description", "text_field", "dropdown_field", "toggle_field"]
|
81
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
82
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
83
|
+
REQUIRED_FIELD_NUMBER: _ClassVar[int]
|
84
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
85
|
+
TEXT_FIELD_FIELD_NUMBER: _ClassVar[int]
|
86
|
+
DROPDOWN_FIELD_FIELD_NUMBER: _ClassVar[int]
|
87
|
+
TOGGLE_FIELD_FIELD_NUMBER: _ClassVar[int]
|
88
|
+
name: str
|
89
|
+
label: str
|
90
|
+
required: bool
|
91
|
+
description: str
|
92
|
+
text_field: TextField
|
93
|
+
dropdown_field: DropdownField
|
94
|
+
toggle_field: ToggleField
|
95
|
+
def __init__(self, name: _Optional[str] = ..., label: _Optional[str] = ..., required: bool = ..., description: _Optional[str] = ..., text_field: _Optional[_Union[TextField, str]] = ..., dropdown_field: _Optional[_Union[DropdownField, _Mapping]] = ..., toggle_field: _Optional[_Union[ToggleField, _Mapping]] = ...) -> None: ...
|
96
|
+
|
97
|
+
class DropdownField(_message.Message):
|
98
|
+
__slots__ = ["dropdown_field"]
|
99
|
+
DROPDOWN_FIELD_FIELD_NUMBER: _ClassVar[int]
|
100
|
+
dropdown_field: _containers.RepeatedScalarFieldContainer[str]
|
101
|
+
def __init__(self, dropdown_field: _Optional[_Iterable[str]] = ...) -> None: ...
|
102
|
+
|
103
|
+
class ToggleField(_message.Message):
|
104
|
+
__slots__ = []
|
105
|
+
def __init__(self) -> None: ...
|
106
|
+
|
107
|
+
class ConfigurationTest(_message.Message):
|
108
|
+
__slots__ = ["name", "label"]
|
109
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
110
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
111
|
+
name: str
|
112
|
+
label: str
|
113
|
+
def __init__(self, name: _Optional[str] = ..., label: _Optional[str] = ...) -> None: ...
|
114
|
+
|
115
|
+
class TestRequest(_message.Message):
|
116
|
+
__slots__ = ["name", "configuration"]
|
117
|
+
class ConfigurationEntry(_message.Message):
|
118
|
+
__slots__ = ["key", "value"]
|
119
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
120
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
121
|
+
key: str
|
122
|
+
value: str
|
123
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
124
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
125
|
+
CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
126
|
+
name: str
|
127
|
+
configuration: _containers.ScalarMap[str, str]
|
128
|
+
def __init__(self, name: _Optional[str] = ..., configuration: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
129
|
+
|
130
|
+
class TestResponse(_message.Message):
|
131
|
+
__slots__ = ["success", "failure"]
|
132
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
133
|
+
FAILURE_FIELD_NUMBER: _ClassVar[int]
|
134
|
+
success: bool
|
135
|
+
failure: str
|
136
|
+
def __init__(self, success: bool = ..., failure: _Optional[str] = ...) -> None: ...
|
137
|
+
|
138
|
+
class SchemaList(_message.Message):
|
139
|
+
__slots__ = ["schemas"]
|
140
|
+
SCHEMAS_FIELD_NUMBER: _ClassVar[int]
|
141
|
+
schemas: _containers.RepeatedCompositeFieldContainer[Schema]
|
142
|
+
def __init__(self, schemas: _Optional[_Iterable[_Union[Schema, _Mapping]]] = ...) -> None: ...
|
143
|
+
|
144
|
+
class TableList(_message.Message):
|
145
|
+
__slots__ = ["tables"]
|
146
|
+
TABLES_FIELD_NUMBER: _ClassVar[int]
|
147
|
+
tables: _containers.RepeatedCompositeFieldContainer[Table]
|
148
|
+
def __init__(self, tables: _Optional[_Iterable[_Union[Table, _Mapping]]] = ...) -> None: ...
|
149
|
+
|
150
|
+
class Schema(_message.Message):
|
151
|
+
__slots__ = ["name", "tables"]
|
152
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
153
|
+
TABLES_FIELD_NUMBER: _ClassVar[int]
|
154
|
+
name: str
|
155
|
+
tables: _containers.RepeatedCompositeFieldContainer[Table]
|
156
|
+
def __init__(self, name: _Optional[str] = ..., tables: _Optional[_Iterable[_Union[Table, _Mapping]]] = ...) -> None: ...
|
157
|
+
|
158
|
+
class DecimalParams(_message.Message):
|
159
|
+
__slots__ = ["precision", "scale"]
|
160
|
+
PRECISION_FIELD_NUMBER: _ClassVar[int]
|
161
|
+
SCALE_FIELD_NUMBER: _ClassVar[int]
|
162
|
+
precision: int
|
163
|
+
scale: int
|
164
|
+
def __init__(self, precision: _Optional[int] = ..., scale: _Optional[int] = ...) -> None: ...
|
165
|
+
|
166
|
+
class ValueType(_message.Message):
|
167
|
+
__slots__ = ["null", "bool", "short", "int", "long", "float", "double", "naive_date", "naive_datetime", "utc_datetime", "decimal", "binary", "string", "json", "xml"]
|
168
|
+
NULL_FIELD_NUMBER: _ClassVar[int]
|
169
|
+
BOOL_FIELD_NUMBER: _ClassVar[int]
|
170
|
+
SHORT_FIELD_NUMBER: _ClassVar[int]
|
171
|
+
INT_FIELD_NUMBER: _ClassVar[int]
|
172
|
+
LONG_FIELD_NUMBER: _ClassVar[int]
|
173
|
+
FLOAT_FIELD_NUMBER: _ClassVar[int]
|
174
|
+
DOUBLE_FIELD_NUMBER: _ClassVar[int]
|
175
|
+
NAIVE_DATE_FIELD_NUMBER: _ClassVar[int]
|
176
|
+
NAIVE_DATETIME_FIELD_NUMBER: _ClassVar[int]
|
177
|
+
UTC_DATETIME_FIELD_NUMBER: _ClassVar[int]
|
178
|
+
DECIMAL_FIELD_NUMBER: _ClassVar[int]
|
179
|
+
BINARY_FIELD_NUMBER: _ClassVar[int]
|
180
|
+
STRING_FIELD_NUMBER: _ClassVar[int]
|
181
|
+
JSON_FIELD_NUMBER: _ClassVar[int]
|
182
|
+
XML_FIELD_NUMBER: _ClassVar[int]
|
183
|
+
null: bool
|
184
|
+
bool: bool
|
185
|
+
short: int
|
186
|
+
int: int
|
187
|
+
long: int
|
188
|
+
float: float
|
189
|
+
double: float
|
190
|
+
naive_date: _timestamp_pb2.Timestamp
|
191
|
+
naive_datetime: _timestamp_pb2.Timestamp
|
192
|
+
utc_datetime: _timestamp_pb2.Timestamp
|
193
|
+
decimal: str
|
194
|
+
binary: bytes
|
195
|
+
string: str
|
196
|
+
json: str
|
197
|
+
xml: str
|
198
|
+
def __init__(self, null: bool = ..., bool: bool = ..., short: _Optional[int] = ..., int: _Optional[int] = ..., long: _Optional[int] = ..., float: _Optional[float] = ..., double: _Optional[float] = ..., naive_date: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., naive_datetime: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., utc_datetime: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., decimal: _Optional[str] = ..., binary: _Optional[bytes] = ..., string: _Optional[str] = ..., json: _Optional[str] = ..., xml: _Optional[str] = ...) -> None: ...
|
199
|
+
|
200
|
+
class Table(_message.Message):
|
201
|
+
__slots__ = ["name", "columns"]
|
202
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
203
|
+
COLUMNS_FIELD_NUMBER: _ClassVar[int]
|
204
|
+
name: str
|
205
|
+
columns: _containers.RepeatedCompositeFieldContainer[Column]
|
206
|
+
def __init__(self, name: _Optional[str] = ..., columns: _Optional[_Iterable[_Union[Column, _Mapping]]] = ...) -> None: ...
|
207
|
+
|
208
|
+
class Column(_message.Message):
|
209
|
+
__slots__ = ["name", "type", "primary_key", "decimal"]
|
210
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
211
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
212
|
+
PRIMARY_KEY_FIELD_NUMBER: _ClassVar[int]
|
213
|
+
DECIMAL_FIELD_NUMBER: _ClassVar[int]
|
214
|
+
name: str
|
215
|
+
type: DataType
|
216
|
+
primary_key: bool
|
217
|
+
decimal: DecimalParams
|
218
|
+
def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[DataType, str]] = ..., primary_key: bool = ..., decimal: _Optional[_Union[DecimalParams, _Mapping]] = ...) -> None: ...
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: connector_sdk.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
8
|
+
from google.protobuf.internal import builder as _builder
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63onnector_sdk.proto\x12\x0c\x66ivetran_sdk\x1a\x0c\x63ommon.proto\"\x8c\x01\n\rSchemaRequest\x12\x45\n\rconfiguration\x18\x01 \x03(\x0b\x32..fivetran_sdk.SchemaRequest.ConfigurationEntry\x1a\x34\n\x12\x43onfigurationEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xeb\x01\n\x0eSchemaResponse\x12\'\n\x1dschema_response_not_supported\x18\x01 \x01(\x08H\x00\x12/\n\x0bwith_schema\x18\x02 \x01(\x0b\x32\x18.fivetran_sdk.SchemaListH\x00\x12\x31\n\x0ewithout_schema\x18\x03 \x01(\x0b\x32\x17.fivetran_sdk.TableListH\x00\x12$\n\x17selection_not_supported\x18\x04 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08responseB\x1a\n\x18_selection_not_supported\"\xf3\x01\n\rUpdateRequest\x12\x45\n\rconfiguration\x18\x01 \x03(\x0b\x32..fivetran_sdk.UpdateRequest.ConfigurationEntry\x12/\n\tselection\x18\x02 \x01(\x0b\x32\x17.fivetran_sdk.SelectionH\x00\x88\x01\x01\x12\x17\n\nstate_json\x18\x03 \x01(\tH\x01\x88\x01\x01\x1a\x34\n\x12\x43onfigurationEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\n_selectionB\r\n\x0b_state_json\"\x8b\x01\n\tSelection\x12:\n\x0ewithout_schema\x18\x01 \x01(\x0b\x32 .fivetran_sdk.TablesWithNoSchemaH\x00\x12\x35\n\x0bwith_schema\x18\x02 \x01(\x0b\x32\x1e.fivetran_sdk.TablesWithSchemaH\x00\x42\x0b\n\tselection\"^\n\x12TablesWithNoSchema\x12,\n\x06tables\x18\x01 \x03(\x0b\x32\x1c.fivetran_sdk.TableSelection\x12\x1a\n\x12include_new_tables\x18\x02 \x01(\x08\"_\n\x10TablesWithSchema\x12.\n\x07schemas\x18\x01 \x03(\x0b\x32\x1d.fivetran_sdk.SchemaSelection\x12\x1b\n\x13include_new_schemas\x18\x02 \x01(\x08\"\x82\x01\n\x0fSchemaSelection\x12\x10\n\x08included\x18\x01 \x01(\x08\x12\x13\n\x0bschema_name\x18\x02 \x01(\t\x12,\n\x06tables\x18\x03 \x03(\x0b\x32\x1c.fivetran_sdk.TableSelection\x12\x1a\n\x12include_new_tables\x18\x04 \x01(\x08\"\xbf\x01\n\x0eTableSelection\x12\x10\n\x08included\x18\x01 \x01(\x08\x12\x12\n\ntable_name\x18\x02 \x01(\t\x12:\n\x07\x63olumns\x18\x03 \x03(\x0b\x32).fivetran_sdk.TableSelection.ColumnsEntry\x12\x1b\n\x13include_new_columns\x18\x04 \x01(\x08\x1a.\n\x0c\x43olumnsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x08:\x02\x38\x01\"w\n\x0eUpdateResponse\x12+\n\tlog_entry\x18\x01 \x01(\x0b\x32\x16.fivetran_sdk.LogEntryH\x00\x12,\n\toperation\x18\x02 \x01(\x0b\x32\x17.fivetran_sdk.OperationH\x00\x42\n\n\x08response\"B\n\x08LogEntry\x12%\n\x05level\x18\x01 \x01(\x0e\x32\x16.fivetran_sdk.LogLevel\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x9e\x01\n\tOperation\x12&\n\x06record\x18\x01 \x01(\x0b\x32\x14.fivetran_sdk.RecordH\x00\x12\x33\n\rschema_change\x18\x02 \x01(\x0b\x32\x1a.fivetran_sdk.SchemaChangeH\x00\x12.\n\ncheckpoint\x18\x03 \x01(\x0b\x32\x18.fivetran_sdk.CheckpointH\x00\x42\x04\n\x02op\"|\n\x0cSchemaChange\x12/\n\x0bwith_schema\x18\x01 \x01(\x0b\x32\x18.fivetran_sdk.SchemaListH\x00\x12\x31\n\x0ewithout_schema\x18\x02 \x01(\x0b\x32\x17.fivetran_sdk.TableListH\x00\x42\x08\n\x06\x63hange\"\xde\x01\n\x06Record\x12\x18\n\x0bschema_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\ntable_name\x18\x02 \x01(\t\x12\"\n\x04type\x18\x03 \x01(\x0e\x32\x14.fivetran_sdk.OpType\x12,\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1e.fivetran_sdk.Record.DataEntry\x1a\x44\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.fivetran_sdk.ValueType:\x02\x38\x01\x42\x0e\n\x0c_schema_name\" \n\nCheckpoint\x12\x12\n\nstate_json\x18\x01 \x01(\t*-\n\x08LogLevel\x12\x08\n\x04INFO\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\n\n\x06SEVERE\x10\x02\x32\xc4\x02\n\tConnector\x12\x66\n\x11\x43onfigurationForm\x12&.fivetran_sdk.ConfigurationFormRequest\x1a\'.fivetran_sdk.ConfigurationFormResponse\"\x00\x12?\n\x04Test\x12\x19.fivetran_sdk.TestRequest\x1a\x1a.fivetran_sdk.TestResponse\"\x00\x12\x45\n\x06Schema\x12\x1b.fivetran_sdk.SchemaRequest\x1a\x1c.fivetran_sdk.SchemaResponse\"\x00\x12G\n\x06Update\x12\x1b.fivetran_sdk.UpdateRequest\x1a\x1c.fivetran_sdk.UpdateResponse\"\x00\x30\x01\x42\x1fH\x01P\x01Z\x19\x66ivetran.com/fivetran_sdkb\x06proto3')
|
15
|
+
|
16
|
+
_globals = globals()
|
17
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
18
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'connector_sdk_pb2', _globals)
|
19
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
20
|
+
DESCRIPTOR._options = None
|
21
|
+
DESCRIPTOR._serialized_options = b'H\001P\001Z\031fivetran.com/fivetran_sdk'
|
22
|
+
_SCHEMAREQUEST_CONFIGURATIONENTRY._options = None
|
23
|
+
_SCHEMAREQUEST_CONFIGURATIONENTRY._serialized_options = b'8\001'
|
24
|
+
_UPDATEREQUEST_CONFIGURATIONENTRY._options = None
|
25
|
+
_UPDATEREQUEST_CONFIGURATIONENTRY._serialized_options = b'8\001'
|
26
|
+
_TABLESELECTION_COLUMNSENTRY._options = None
|
27
|
+
_TABLESELECTION_COLUMNSENTRY._serialized_options = b'8\001'
|
28
|
+
_RECORD_DATAENTRY._options = None
|
29
|
+
_RECORD_DATAENTRY._serialized_options = b'8\001'
|
30
|
+
_globals['_LOGLEVEL']._serialized_start=2075
|
31
|
+
_globals['_LOGLEVEL']._serialized_end=2120
|
32
|
+
_globals['_SCHEMAREQUEST']._serialized_start=52
|
33
|
+
_globals['_SCHEMAREQUEST']._serialized_end=192
|
34
|
+
_globals['_SCHEMAREQUEST_CONFIGURATIONENTRY']._serialized_start=140
|
35
|
+
_globals['_SCHEMAREQUEST_CONFIGURATIONENTRY']._serialized_end=192
|
36
|
+
_globals['_SCHEMARESPONSE']._serialized_start=195
|
37
|
+
_globals['_SCHEMARESPONSE']._serialized_end=430
|
38
|
+
_globals['_UPDATEREQUEST']._serialized_start=433
|
39
|
+
_globals['_UPDATEREQUEST']._serialized_end=676
|
40
|
+
_globals['_UPDATEREQUEST_CONFIGURATIONENTRY']._serialized_start=140
|
41
|
+
_globals['_UPDATEREQUEST_CONFIGURATIONENTRY']._serialized_end=192
|
42
|
+
_globals['_SELECTION']._serialized_start=679
|
43
|
+
_globals['_SELECTION']._serialized_end=818
|
44
|
+
_globals['_TABLESWITHNOSCHEMA']._serialized_start=820
|
45
|
+
_globals['_TABLESWITHNOSCHEMA']._serialized_end=914
|
46
|
+
_globals['_TABLESWITHSCHEMA']._serialized_start=916
|
47
|
+
_globals['_TABLESWITHSCHEMA']._serialized_end=1011
|
48
|
+
_globals['_SCHEMASELECTION']._serialized_start=1014
|
49
|
+
_globals['_SCHEMASELECTION']._serialized_end=1144
|
50
|
+
_globals['_TABLESELECTION']._serialized_start=1147
|
51
|
+
_globals['_TABLESELECTION']._serialized_end=1338
|
52
|
+
_globals['_TABLESELECTION_COLUMNSENTRY']._serialized_start=1292
|
53
|
+
_globals['_TABLESELECTION_COLUMNSENTRY']._serialized_end=1338
|
54
|
+
_globals['_UPDATERESPONSE']._serialized_start=1340
|
55
|
+
_globals['_UPDATERESPONSE']._serialized_end=1459
|
56
|
+
_globals['_LOGENTRY']._serialized_start=1461
|
57
|
+
_globals['_LOGENTRY']._serialized_end=1527
|
58
|
+
_globals['_OPERATION']._serialized_start=1530
|
59
|
+
_globals['_OPERATION']._serialized_end=1688
|
60
|
+
_globals['_SCHEMACHANGE']._serialized_start=1690
|
61
|
+
_globals['_SCHEMACHANGE']._serialized_end=1814
|
62
|
+
_globals['_RECORD']._serialized_start=1817
|
63
|
+
_globals['_RECORD']._serialized_end=2039
|
64
|
+
_globals['_RECORD_DATAENTRY']._serialized_start=1955
|
65
|
+
_globals['_RECORD_DATAENTRY']._serialized_end=2023
|
66
|
+
_globals['_CHECKPOINT']._serialized_start=2041
|
67
|
+
_globals['_CHECKPOINT']._serialized_end=2073
|
68
|
+
_globals['_CONNECTOR']._serialized_start=2123
|
69
|
+
_globals['_CONNECTOR']._serialized_end=2447
|
70
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,173 @@
|
|
1
|
+
import common_pb2 as _common_pb2
|
2
|
+
from google.protobuf.internal import containers as _containers
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
5
|
+
from google.protobuf import message as _message
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
7
|
+
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
9
|
+
|
10
|
+
class LogLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
11
|
+
__slots__ = []
|
12
|
+
INFO: _ClassVar[LogLevel]
|
13
|
+
WARNING: _ClassVar[LogLevel]
|
14
|
+
SEVERE: _ClassVar[LogLevel]
|
15
|
+
INFO: LogLevel
|
16
|
+
WARNING: LogLevel
|
17
|
+
SEVERE: LogLevel
|
18
|
+
|
19
|
+
class SchemaRequest(_message.Message):
|
20
|
+
__slots__ = ["configuration"]
|
21
|
+
class ConfigurationEntry(_message.Message):
|
22
|
+
__slots__ = ["key", "value"]
|
23
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
24
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
25
|
+
key: str
|
26
|
+
value: str
|
27
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
28
|
+
CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
29
|
+
configuration: _containers.ScalarMap[str, str]
|
30
|
+
def __init__(self, configuration: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
31
|
+
|
32
|
+
class SchemaResponse(_message.Message):
|
33
|
+
__slots__ = ["schema_response_not_supported", "with_schema", "without_schema", "selection_not_supported"]
|
34
|
+
SCHEMA_RESPONSE_NOT_SUPPORTED_FIELD_NUMBER: _ClassVar[int]
|
35
|
+
WITH_SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
36
|
+
WITHOUT_SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
37
|
+
SELECTION_NOT_SUPPORTED_FIELD_NUMBER: _ClassVar[int]
|
38
|
+
schema_response_not_supported: bool
|
39
|
+
with_schema: _common_pb2.SchemaList
|
40
|
+
without_schema: _common_pb2.TableList
|
41
|
+
selection_not_supported: bool
|
42
|
+
def __init__(self, schema_response_not_supported: bool = ..., with_schema: _Optional[_Union[_common_pb2.SchemaList, _Mapping]] = ..., without_schema: _Optional[_Union[_common_pb2.TableList, _Mapping]] = ..., selection_not_supported: bool = ...) -> None: ...
|
43
|
+
|
44
|
+
class UpdateRequest(_message.Message):
|
45
|
+
__slots__ = ["configuration", "selection", "state_json"]
|
46
|
+
class ConfigurationEntry(_message.Message):
|
47
|
+
__slots__ = ["key", "value"]
|
48
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
49
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
50
|
+
key: str
|
51
|
+
value: str
|
52
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
53
|
+
CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
54
|
+
SELECTION_FIELD_NUMBER: _ClassVar[int]
|
55
|
+
STATE_JSON_FIELD_NUMBER: _ClassVar[int]
|
56
|
+
configuration: _containers.ScalarMap[str, str]
|
57
|
+
selection: Selection
|
58
|
+
state_json: str
|
59
|
+
def __init__(self, configuration: _Optional[_Mapping[str, str]] = ..., selection: _Optional[_Union[Selection, _Mapping]] = ..., state_json: _Optional[str] = ...) -> None: ...
|
60
|
+
|
61
|
+
class Selection(_message.Message):
|
62
|
+
__slots__ = ["without_schema", "with_schema"]
|
63
|
+
WITHOUT_SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
64
|
+
WITH_SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
65
|
+
without_schema: TablesWithNoSchema
|
66
|
+
with_schema: TablesWithSchema
|
67
|
+
def __init__(self, without_schema: _Optional[_Union[TablesWithNoSchema, _Mapping]] = ..., with_schema: _Optional[_Union[TablesWithSchema, _Mapping]] = ...) -> None: ...
|
68
|
+
|
69
|
+
class TablesWithNoSchema(_message.Message):
|
70
|
+
__slots__ = ["tables", "include_new_tables"]
|
71
|
+
TABLES_FIELD_NUMBER: _ClassVar[int]
|
72
|
+
INCLUDE_NEW_TABLES_FIELD_NUMBER: _ClassVar[int]
|
73
|
+
tables: _containers.RepeatedCompositeFieldContainer[TableSelection]
|
74
|
+
include_new_tables: bool
|
75
|
+
def __init__(self, tables: _Optional[_Iterable[_Union[TableSelection, _Mapping]]] = ..., include_new_tables: bool = ...) -> None: ...
|
76
|
+
|
77
|
+
class TablesWithSchema(_message.Message):
|
78
|
+
__slots__ = ["schemas", "include_new_schemas"]
|
79
|
+
SCHEMAS_FIELD_NUMBER: _ClassVar[int]
|
80
|
+
INCLUDE_NEW_SCHEMAS_FIELD_NUMBER: _ClassVar[int]
|
81
|
+
schemas: _containers.RepeatedCompositeFieldContainer[SchemaSelection]
|
82
|
+
include_new_schemas: bool
|
83
|
+
def __init__(self, schemas: _Optional[_Iterable[_Union[SchemaSelection, _Mapping]]] = ..., include_new_schemas: bool = ...) -> None: ...
|
84
|
+
|
85
|
+
class SchemaSelection(_message.Message):
|
86
|
+
__slots__ = ["included", "schema_name", "tables", "include_new_tables"]
|
87
|
+
INCLUDED_FIELD_NUMBER: _ClassVar[int]
|
88
|
+
SCHEMA_NAME_FIELD_NUMBER: _ClassVar[int]
|
89
|
+
TABLES_FIELD_NUMBER: _ClassVar[int]
|
90
|
+
INCLUDE_NEW_TABLES_FIELD_NUMBER: _ClassVar[int]
|
91
|
+
included: bool
|
92
|
+
schema_name: str
|
93
|
+
tables: _containers.RepeatedCompositeFieldContainer[TableSelection]
|
94
|
+
include_new_tables: bool
|
95
|
+
def __init__(self, included: bool = ..., schema_name: _Optional[str] = ..., tables: _Optional[_Iterable[_Union[TableSelection, _Mapping]]] = ..., include_new_tables: bool = ...) -> None: ...
|
96
|
+
|
97
|
+
class TableSelection(_message.Message):
|
98
|
+
__slots__ = ["included", "table_name", "columns", "include_new_columns"]
|
99
|
+
class ColumnsEntry(_message.Message):
|
100
|
+
__slots__ = ["key", "value"]
|
101
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
102
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
103
|
+
key: str
|
104
|
+
value: bool
|
105
|
+
def __init__(self, key: _Optional[str] = ..., value: bool = ...) -> None: ...
|
106
|
+
INCLUDED_FIELD_NUMBER: _ClassVar[int]
|
107
|
+
TABLE_NAME_FIELD_NUMBER: _ClassVar[int]
|
108
|
+
COLUMNS_FIELD_NUMBER: _ClassVar[int]
|
109
|
+
INCLUDE_NEW_COLUMNS_FIELD_NUMBER: _ClassVar[int]
|
110
|
+
included: bool
|
111
|
+
table_name: str
|
112
|
+
columns: _containers.ScalarMap[str, bool]
|
113
|
+
include_new_columns: bool
|
114
|
+
def __init__(self, included: bool = ..., table_name: _Optional[str] = ..., columns: _Optional[_Mapping[str, bool]] = ..., include_new_columns: bool = ...) -> None: ...
|
115
|
+
|
116
|
+
class UpdateResponse(_message.Message):
|
117
|
+
__slots__ = ["log_entry", "operation"]
|
118
|
+
LOG_ENTRY_FIELD_NUMBER: _ClassVar[int]
|
119
|
+
OPERATION_FIELD_NUMBER: _ClassVar[int]
|
120
|
+
log_entry: LogEntry
|
121
|
+
operation: Operation
|
122
|
+
def __init__(self, log_entry: _Optional[_Union[LogEntry, _Mapping]] = ..., operation: _Optional[_Union[Operation, _Mapping]] = ...) -> None: ...
|
123
|
+
|
124
|
+
class LogEntry(_message.Message):
|
125
|
+
__slots__ = ["level", "message"]
|
126
|
+
LEVEL_FIELD_NUMBER: _ClassVar[int]
|
127
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
128
|
+
level: LogLevel
|
129
|
+
message: str
|
130
|
+
def __init__(self, level: _Optional[_Union[LogLevel, str]] = ..., message: _Optional[str] = ...) -> None: ...
|
131
|
+
|
132
|
+
class Operation(_message.Message):
|
133
|
+
__slots__ = ["record", "schema_change", "checkpoint"]
|
134
|
+
RECORD_FIELD_NUMBER: _ClassVar[int]
|
135
|
+
SCHEMA_CHANGE_FIELD_NUMBER: _ClassVar[int]
|
136
|
+
CHECKPOINT_FIELD_NUMBER: _ClassVar[int]
|
137
|
+
record: Record
|
138
|
+
schema_change: SchemaChange
|
139
|
+
checkpoint: Checkpoint
|
140
|
+
def __init__(self, record: _Optional[_Union[Record, _Mapping]] = ..., schema_change: _Optional[_Union[SchemaChange, _Mapping]] = ..., checkpoint: _Optional[_Union[Checkpoint, _Mapping]] = ...) -> None: ...
|
141
|
+
|
142
|
+
class SchemaChange(_message.Message):
|
143
|
+
__slots__ = ["with_schema", "without_schema"]
|
144
|
+
WITH_SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
145
|
+
WITHOUT_SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
146
|
+
with_schema: _common_pb2.SchemaList
|
147
|
+
without_schema: _common_pb2.TableList
|
148
|
+
def __init__(self, with_schema: _Optional[_Union[_common_pb2.SchemaList, _Mapping]] = ..., without_schema: _Optional[_Union[_common_pb2.TableList, _Mapping]] = ...) -> None: ...
|
149
|
+
|
150
|
+
class Record(_message.Message):
|
151
|
+
__slots__ = ["schema_name", "table_name", "type", "data"]
|
152
|
+
class DataEntry(_message.Message):
|
153
|
+
__slots__ = ["key", "value"]
|
154
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
155
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
156
|
+
key: str
|
157
|
+
value: _common_pb2.ValueType
|
158
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_common_pb2.ValueType, _Mapping]] = ...) -> None: ...
|
159
|
+
SCHEMA_NAME_FIELD_NUMBER: _ClassVar[int]
|
160
|
+
TABLE_NAME_FIELD_NUMBER: _ClassVar[int]
|
161
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
162
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
163
|
+
schema_name: str
|
164
|
+
table_name: str
|
165
|
+
type: _common_pb2.OpType
|
166
|
+
data: _containers.MessageMap[str, _common_pb2.ValueType]
|
167
|
+
def __init__(self, schema_name: _Optional[str] = ..., table_name: _Optional[str] = ..., type: _Optional[_Union[_common_pb2.OpType, str]] = ..., data: _Optional[_Mapping[str, _common_pb2.ValueType]] = ...) -> None: ...
|
168
|
+
|
169
|
+
class Checkpoint(_message.Message):
|
170
|
+
__slots__ = ["state_json"]
|
171
|
+
STATE_JSON_FIELD_NUMBER: _ClassVar[int]
|
172
|
+
state_json: str
|
173
|
+
def __init__(self, state_json: _Optional[str] = ...) -> None: ...
|