omnata-plugin-runtime 0.5.2a116__py3-none-any.whl → 0.5.2a117__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.
@@ -32,6 +32,7 @@ from .omnata_plugin import (
32
32
  OutboundSyncRequest,
33
33
  DeadlineReachedException,
34
34
  )
35
+ from pydantic import TypeAdapter
35
36
  from .rate_limiting import ApiLimits, RateLimitState
36
37
 
37
38
  # set the logger class to our custom logger so that pydantic errors are handled correctly
@@ -375,7 +376,7 @@ class PluginEntrypoint:
375
376
 
376
377
  def create_billing_events(self, session, event_request: Dict):
377
378
  logger.info("Entered create_billing_events method")
378
- request = BillingEventRequest.model_validate(event_request)
379
+ request = TypeAdapter(BillingEventRequest).validate_python(event_request)
379
380
  events: List[SnowflakeBillingEvent] = self._plugin_instance.create_billing_events(
380
381
  request
381
382
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.5.2a116
3
+ Version: 0.5.2a117
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
@@ -4,9 +4,9 @@ omnata_plugin_runtime/configuration.py,sha256=GI7RBerWjymVtXRFaAhbmgmoct-m943wta
4
4
  omnata_plugin_runtime/forms.py,sha256=hV6jVaizex20Pb9NxPx11TBPK-Yy8pREAnTtCxHo4Qo,18409
5
5
  omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
6
6
  omnata_plugin_runtime/omnata_plugin.py,sha256=zIk8dS5m4pXsVy_2im-Cd-t1uQV9hf1seosb1T2jGGs,110880
7
- omnata_plugin_runtime/plugin_entrypoints.py,sha256=TqQM7WgoKvRVAt32dvHTzVUYui2myfc7ZTsUmTFrk74,29255
7
+ omnata_plugin_runtime/plugin_entrypoints.py,sha256=JirYUbPBaN0UMh9t_uAHDdhaQZ7NUhdMJ11eHRKOoNY,29302
8
8
  omnata_plugin_runtime/rate_limiting.py,sha256=DVQ_bc-mVLBkrU1PTns1MWXhHiLpSB5HkWCcdePtJ2A,25611
9
- omnata_plugin_runtime-0.5.2a116.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.5.2a116.dist-info/METADATA,sha256=B8YJevylcrk4W-bwCb8JcbVjUDbf2lA6B5io2WoOtA4,1888
11
- omnata_plugin_runtime-0.5.2a116.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- omnata_plugin_runtime-0.5.2a116.dist-info/RECORD,,
9
+ omnata_plugin_runtime-0.5.2a117.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.5.2a117.dist-info/METADATA,sha256=5moARb8FGRx-6ulORy_zkGj7a_kc77Jd_GsDrZIu15E,1888
11
+ omnata_plugin_runtime-0.5.2a117.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ omnata_plugin_runtime-0.5.2a117.dist-info/RECORD,,