omnata-plugin-runtime 0.7.0a181__tar.gz → 0.7.0a182__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.
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/omnata_plugin.py +1 -1
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/plugin_entrypoints.py +5 -3
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/LICENSE +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/README.md +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.7.0-
|
3
|
+
version = "0.7.0-a182"
|
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"
|
@@ -1648,7 +1648,7 @@ class OmnataPlugin(ABC):
|
|
1648
1648
|
)
|
1649
1649
|
|
1650
1650
|
@abstractmethod
|
1651
|
-
def connection_form(self) -> List[ConnectionMethod]:
|
1651
|
+
def connection_form(self,connectivity_option:ConnectivityOption) -> List[ConnectionMethod]:
|
1652
1652
|
"""
|
1653
1653
|
Returns a form definition so that user input can be collected, in order to connect to an app
|
1654
1654
|
|
@@ -20,7 +20,8 @@ from .configuration import (
|
|
20
20
|
OutboundSyncStrategy,
|
21
21
|
StoredConfigurationValue,
|
22
22
|
StoredMappingValue,
|
23
|
-
get_secrets
|
23
|
+
get_secrets,
|
24
|
+
ConnectivityOption
|
24
25
|
)
|
25
26
|
from .forms import ConnectionMethod, FormInputField, FormOption
|
26
27
|
from .logging import OmnataPluginLogHandler
|
@@ -381,9 +382,10 @@ class PluginEntrypoint:
|
|
381
382
|
results.append(script_result.model_dump())
|
382
383
|
return results
|
383
384
|
|
384
|
-
def connection_form(self):
|
385
|
+
def connection_form(self,connectivity_option: str):
|
386
|
+
connectivity_option = TypeAdapter(ConnectivityOption).validate_python(connectivity_option)
|
385
387
|
logger.info("Entered connection_form method")
|
386
|
-
form: List[ConnectionMethod] = self._plugin_instance.connection_form()
|
388
|
+
form: List[ConnectionMethod] = self._plugin_instance.connection_form(connectivity_option=connectivity_option)
|
387
389
|
return [f.model_dump() for f in form]
|
388
390
|
|
389
391
|
def create_billing_events(self, session, event_request: Dict):
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.7.0a181 → omnata_plugin_runtime-0.7.0a182}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|