omnata-plugin-runtime 0.8.0a198__tar.gz → 0.8.1a200__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.8.0a198
3
+ Version: 0.8.1a200
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.8.0-a198"
3
+ version = "0.8.1-a200"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -103,6 +103,8 @@ class PluginManifest(SubscriptableBaseModel):
103
103
  :param bool supports_inbound: A flag to indicate whether or not the plugin supports inbound sync. Support for inbound sync behaviours (full/incremental) is defined per inbound stream.
104
104
  :param List[OutboundSyncStrategy] supported_outbound_strategies: A list of sync strategies that the plugin can support, e.g. create,upsert.
105
105
  :param List[ConnectivityOption] supported_connectivity_options: A list of connectivity options that the plugin can support, e.g. direct,ngrok,privatelink
106
+ :param bool inbound_results_uses_json: A flag to indicate whether or not the plugin returns inbound sync results in JSON format (RECORD_DATA column) or straight into OBJECT columns (RECORD_OBJECT column).
107
+ :param bool outbound_results_uses_json: A flag to indicate whether or not the plugin returns outbound sync results in JSON format (RESULT column) or straight into OBJECT columns (RESULT_OBJECT column).
106
108
  """
107
109
 
108
110
  plugin_id: str
@@ -115,6 +117,8 @@ class PluginManifest(SubscriptableBaseModel):
115
117
  supported_connectivity_options: List[ConnectivityOption] = Field(
116
118
  default_factory=lambda: [ConnectivityOption.DIRECT]
117
119
  )
120
+ inbound_results_uses_json: bool = True
121
+ outbound_results_uses_json: bool = True
118
122
 
119
123
 
120
124
  class SnowflakeFunctionParameter(BaseModel):
@@ -88,7 +88,7 @@ class PluginEntrypoint:
88
88
  logger.add_extra('omnata.sync.id', request.sync_id)
89
89
  logger.add_extra('omnata.sync.direction', request.sync_direction)
90
90
  logger.add_extra('omnata.connection.id', request.connection_id)
91
- logger.add_extra('omnata.sync.run_id', request.run_id)
91
+ logger.add_extra('omnata.sync_run.id', request.run_id)
92
92
  logger.add_extra('omnata.sync_branch.id', request.sync_branch_id)
93
93
  logger.add_extra('omnata.sync_branch.name', request.sync_branch_name)
94
94
  logger.info("Entered sync method")