fivetran-connector-sdk 0.7.18.1__py3-none-any.whl → 0.7.19.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.
@@ -295,8 +295,9 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
295
295
  _check_dict(configuration)
296
296
 
297
297
  secrets_list = []
298
- for k, v in configuration.items():
299
- secrets_list.append({"key": k, "value": v})
298
+ if configuration:
299
+ for k, v in configuration.items():
300
+ secrets_list.append({"key": k, "value": v})
300
301
 
301
302
  connection_config = {
302
303
  "schema": connection,
@@ -333,6 +334,9 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
333
334
 
334
335
  @staticmethod
335
336
  def __update_connection(id: str, name: str, group: str, config: dict, deploy_key: str):
337
+ if not config["secrets_list"]:
338
+ del config["secrets_list"]
339
+
336
340
  resp = rq.patch(f"https://api.fivetran.com/v1/connectors/{id}",
337
341
  headers={"Authorization": f"Basic {deploy_key}"},
338
342
  json={
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fivetran_connector_sdk
3
- Version: 0.7.18.1
3
+ Version: 0.7.19.1
4
4
  Summary: Build custom connectors on Fivetran platform
5
5
  Author-email: Fivetran <developers@fivetran.com>
6
6
  Project-URL: Homepage, https://fivetran.com/docs/connectors/connector-sdk
@@ -1,4 +1,4 @@
1
- fivetran_connector_sdk/__init__.py,sha256=IIdg6sogef87he8tij10qYJAG9n4S9EJIfJSZoBILQg,32422
1
+ fivetran_connector_sdk/__init__.py,sha256=jtWQ3rdld5NNGgg9xtAUS52NKx8IFlgNsjq9JImma1o,32535
2
2
  fivetran_connector_sdk/protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  fivetran_connector_sdk/protos/common_pb2.py,sha256=kUwVcyZHgLigNR-KnHZn7dHrlxaMnUXqzprsRx6T72M,6831
4
4
  fivetran_connector_sdk/protos/common_pb2.pyi,sha256=S0hdIzoXyyOKD5cjiGeDDLYpQ9J3LjAvu4rCj1JvJWE,9038
@@ -6,9 +6,9 @@ fivetran_connector_sdk/protos/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
6
6
  fivetran_connector_sdk/protos/connector_sdk_pb2.py,sha256=9Ke_Ti1s0vAeXapfXT-EryrT2-TSGQb8mhs4gxTpUMk,7732
7
7
  fivetran_connector_sdk/protos/connector_sdk_pb2.pyi,sha256=FWYxRgshEF3QDYAE0TM_mv4N2gGvkxCH_uPpxnMc4oA,8406
8
8
  fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py,sha256=ZfJLp4DW7uP4pFOZ74s_wQ6tD3eIPi-08UfnLwe4tzo,7163
9
- fivetran_connector_sdk-0.7.18.1.dist-info/LICENSE,sha256=Kutp3D0T7HmHuBifKmbw39OZLAL1ckaLRb8u9lyJxE8,1065
10
- fivetran_connector_sdk-0.7.18.1.dist-info/METADATA,sha256=vgrh9es8KnNBY2Z9_3PpV_XD0e3ZNj4TZyp1BBRxkiE,651
11
- fivetran_connector_sdk-0.7.18.1.dist-info/WHEEL,sha256=FZ75kcLy9M91ncbIgG8dnpCncbiKXSRGJ_PFILs6SFg,91
12
- fivetran_connector_sdk-0.7.18.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
13
- fivetran_connector_sdk-0.7.18.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
14
- fivetran_connector_sdk-0.7.18.1.dist-info/RECORD,,
9
+ fivetran_connector_sdk-0.7.19.1.dist-info/LICENSE,sha256=Kutp3D0T7HmHuBifKmbw39OZLAL1ckaLRb8u9lyJxE8,1065
10
+ fivetran_connector_sdk-0.7.19.1.dist-info/METADATA,sha256=8PeBzQREQJGiIl4mjVHkEdFx1-5KviF4-RPixfEb6mw,651
11
+ fivetran_connector_sdk-0.7.19.1.dist-info/WHEEL,sha256=-oYQCr74JF3a37z2nRlQays_SX2MqOANoqVjBBAP2yE,91
12
+ fivetran_connector_sdk-0.7.19.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
13
+ fivetran_connector_sdk-0.7.19.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
14
+ fivetran_connector_sdk-0.7.19.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.0.1)
2
+ Generator: setuptools (71.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5