omnata-plugin-runtime 0.2.38__py3-none-any.whl → 0.2.40__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.
- omnata_plugin_runtime/omnata_plugin.py +3 -2
- {omnata_plugin_runtime-0.2.38.dist-info → omnata_plugin_runtime-0.2.40.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.2.38.dist-info → omnata_plugin_runtime-0.2.40.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.2.38.dist-info → omnata_plugin_runtime-0.2.40.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.2.38.dist-info → omnata_plugin_runtime-0.2.40.dist-info}/WHEEL +0 -0
@@ -1154,14 +1154,15 @@ class SnowflakeBillingEvent(BaseModel):
|
|
1154
1154
|
def validate_datetime_fields(cls, values):
|
1155
1155
|
# Handling timestamps, we want to be strict on supplying a timezone
|
1156
1156
|
timestamp = values.get('timestamp')
|
1157
|
-
if timestamp and isinstance(timestamp, datetime.datetime):
|
1157
|
+
if timestamp is not None and isinstance(timestamp, datetime.datetime):
|
1158
1158
|
if timestamp.tzinfo is None or timestamp.tzinfo.utcoffset(timestamp) is None:
|
1159
1159
|
raise ValueError("timestamp must be timezone aware")
|
1160
1160
|
|
1161
1161
|
start_timestamp = values.get('start_timestamp')
|
1162
|
-
if start_timestamp and isinstance(start_timestamp, datetime.datetime):
|
1162
|
+
if start_timestamp is not None and isinstance(start_timestamp, datetime.datetime):
|
1163
1163
|
if start_timestamp.tzinfo is None or start_timestamp.tzinfo.utcoffset(start_timestamp) is None:
|
1164
1164
|
raise ValueError("start_timestamp must be timezone aware")
|
1165
|
+
return values
|
1165
1166
|
|
1166
1167
|
class BillingEventRequest(BaseModel):
|
1167
1168
|
"""
|
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=vKq7goVPX5cPQ9CVN9l8RmpJDcqDwS5y9v1IWhWjBbk,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=D5y3IxGpI3a5B7cGHWRgCy-V7PD-nvnk-r3tWr8lVB8,31506
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=a76q0mZep-Q1XYw0c0uXA0_qbYLwQGAwHZMpZ8125Is,15235
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=Q6eSqrr3SzwfVAg4r4sV1dlxeNS_PzOtZfieoWUEOZQ,3232
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=YvJ40kBw5_oqkX_nrmF6MQFzdgwzhnejkhjUY58nSEk,84178
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=_mU2iDEoRtLElO7c5c6WW9qvaOg6Lu7EV-wxkLFmPZA,22798
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=QO8VB1H8al6a8-ydohUmL0c5JynXG2bulmuPRs2-2-Y,14910
|
9
|
-
omnata_plugin_runtime-0.2.
|
10
|
-
omnata_plugin_runtime-0.2.
|
11
|
-
omnata_plugin_runtime-0.2.
|
12
|
-
omnata_plugin_runtime-0.2.
|
9
|
+
omnata_plugin_runtime-0.2.40.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.2.40.dist-info/METADATA,sha256=ROScV2--uxRA0r4YacHkT1SMCku4lQ6JqpCzaT4RnCk,1086
|
11
|
+
omnata_plugin_runtime-0.2.40.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
12
|
+
omnata_plugin_runtime-0.2.40.dist-info/RECORD,,
|
File without changes
|
File without changes
|