nominal-api 0.564.0__py3-none-any.whl → 0.564.2__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.
Potentially problematic release.
This version of nominal-api might be problematic. Click here for more details.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +22 -1
- {nominal_api-0.564.0.dist-info → nominal_api-0.564.2.dist-info}/METADATA +1 -1
- {nominal_api-0.564.0.dist-info → nominal_api-0.564.2.dist-info}/RECORD +6 -6
- {nominal_api-0.564.0.dist-info → nominal_api-0.564.2.dist-info}/WHEEL +0 -0
- {nominal_api-0.564.0.dist-info → nominal_api-0.564.2.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -63361,33 +63361,48 @@ class scout_video_api_SegmentTimestamps(ConjureUnionType):
|
|
|
63361
63361
|
be frame-mapped. Without a frame-timestamp mapping manifest file, a list of absolute timestamps will be
|
|
63362
63362
|
automatically assigned to each segment based on media timestamps.. Otherwise, media timestamps will be
|
|
63363
63363
|
extracted and mapped to those in the provided manifest."""
|
|
63364
|
+
_timestamps: Optional[List["api_Timestamp"]] = None
|
|
63364
63365
|
_timestamp_mappings: Optional["scout_video_api_TimestampMappings"] = None
|
|
63365
63366
|
|
|
63366
63367
|
@builtins.classmethod
|
|
63367
63368
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
63368
63369
|
return {
|
|
63370
|
+
'timestamps': ConjureFieldDefinition('timestamps', List[api_Timestamp]),
|
|
63369
63371
|
'timestamp_mappings': ConjureFieldDefinition('timestampMappings', scout_video_api_TimestampMappings)
|
|
63370
63372
|
}
|
|
63371
63373
|
|
|
63372
63374
|
def __init__(
|
|
63373
63375
|
self,
|
|
63376
|
+
timestamps: Optional[List["api_Timestamp"]] = None,
|
|
63374
63377
|
timestamp_mappings: Optional["scout_video_api_TimestampMappings"] = None,
|
|
63375
63378
|
type_of_union: Optional[str] = None
|
|
63376
63379
|
) -> None:
|
|
63377
63380
|
if type_of_union is None:
|
|
63378
|
-
if (timestamp_mappings is not None) != 1:
|
|
63381
|
+
if (timestamps is not None) + (timestamp_mappings is not None) != 1:
|
|
63379
63382
|
raise ValueError('a union must contain a single member')
|
|
63380
63383
|
|
|
63384
|
+
if timestamps is not None:
|
|
63385
|
+
self._timestamps = timestamps
|
|
63386
|
+
self._type = 'timestamps'
|
|
63381
63387
|
if timestamp_mappings is not None:
|
|
63382
63388
|
self._timestamp_mappings = timestamp_mappings
|
|
63383
63389
|
self._type = 'timestampMappings'
|
|
63384
63390
|
|
|
63391
|
+
elif type_of_union == 'timestamps':
|
|
63392
|
+
if timestamps is None:
|
|
63393
|
+
raise ValueError('a union value must not be None')
|
|
63394
|
+
self._timestamps = timestamps
|
|
63395
|
+
self._type = 'timestamps'
|
|
63385
63396
|
elif type_of_union == 'timestampMappings':
|
|
63386
63397
|
if timestamp_mappings is None:
|
|
63387
63398
|
raise ValueError('a union value must not be None')
|
|
63388
63399
|
self._timestamp_mappings = timestamp_mappings
|
|
63389
63400
|
self._type = 'timestampMappings'
|
|
63390
63401
|
|
|
63402
|
+
@builtins.property
|
|
63403
|
+
def timestamps(self) -> Optional[List["api_Timestamp"]]:
|
|
63404
|
+
return self._timestamps
|
|
63405
|
+
|
|
63391
63406
|
@builtins.property
|
|
63392
63407
|
def timestamp_mappings(self) -> Optional["scout_video_api_TimestampMappings"]:
|
|
63393
63408
|
return self._timestamp_mappings
|
|
@@ -63395,6 +63410,8 @@ extracted and mapped to those in the provided manifest."""
|
|
|
63395
63410
|
def accept(self, visitor) -> Any:
|
|
63396
63411
|
if not isinstance(visitor, scout_video_api_SegmentTimestampsVisitor):
|
|
63397
63412
|
raise ValueError('{} is not an instance of scout_video_api_SegmentTimestampsVisitor'.format(visitor.__class__.__name__))
|
|
63413
|
+
if self._type == 'timestamps' and self.timestamps is not None:
|
|
63414
|
+
return visitor._timestamps(self.timestamps)
|
|
63398
63415
|
if self._type == 'timestampMappings' and self.timestamp_mappings is not None:
|
|
63399
63416
|
return visitor._timestamp_mappings(self.timestamp_mappings)
|
|
63400
63417
|
|
|
@@ -63406,6 +63423,10 @@ scout_video_api_SegmentTimestamps.__module__ = "nominal_api.scout_video_api"
|
|
|
63406
63423
|
|
|
63407
63424
|
class scout_video_api_SegmentTimestampsVisitor:
|
|
63408
63425
|
|
|
63426
|
+
@abstractmethod
|
|
63427
|
+
def _timestamps(self, timestamps: List["api_Timestamp"]) -> Any:
|
|
63428
|
+
pass
|
|
63429
|
+
|
|
63409
63430
|
@abstractmethod
|
|
63410
63431
|
def _timestamp_mappings(self, timestamp_mappings: "scout_video_api_TimestampMappings") -> Any:
|
|
63411
63432
|
pass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=kRISNYtkhfT6j1dptc7PZX-tQJUke66URSlJ2EvGhQs,1791
|
|
2
|
+
nominal_api/_impl.py,sha256=NiLnyHWjOcsSZQwyQIi3vHE2eU7iriQ6V_0N2GQwuPw,2749290
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=kJBEE_HLVpKYdLH12KyO-cSAVzwxYpBwaaDutCtT-LM,1236
|
|
5
5
|
nominal_api/api_rids/__init__.py,sha256=MwCU7tf4EQBdNPY12rgPdr4y11iowEXxYqtNCvw7sdo,380
|
|
@@ -66,7 +66,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=KuHLafDLeHzOTl0B6j7T
|
|
|
66
66
|
nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
|
|
67
67
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
|
|
68
68
|
nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
|
|
69
|
-
nominal_api-0.564.
|
|
70
|
-
nominal_api-0.564.
|
|
71
|
-
nominal_api-0.564.
|
|
72
|
-
nominal_api-0.564.
|
|
69
|
+
nominal_api-0.564.2.dist-info/METADATA,sha256=qaek7sKGn1VFoVEi0O8e9_OTOD2cK6w5lblT9iYFits,199
|
|
70
|
+
nominal_api-0.564.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
71
|
+
nominal_api-0.564.2.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
72
|
+
nominal_api-0.564.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|