nominal-api 0.558.0__py3-none-any.whl → 0.560.0__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 +154 -6
- nominal_api/scout_video_api/__init__.py +3 -0
- {nominal_api-0.558.0.dist-info → nominal_api-0.560.0.dist-info}/METADATA +1 -1
- {nominal_api-0.558.0.dist-info → nominal_api-0.560.0.dist-info}/RECORD +7 -7
- {nominal_api-0.558.0.dist-info → nominal_api-0.560.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.558.0.dist-info → nominal_api-0.560.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -37742,6 +37742,10 @@ class scout_compute_api_UnaryArithmeticOperation(ConjureEnumType):
|
|
|
37742
37742
|
'''ASIN'''
|
|
37743
37743
|
ACOS = 'ACOS'
|
|
37744
37744
|
'''ACOS'''
|
|
37745
|
+
LOG = 'LOG'
|
|
37746
|
+
'''LOG'''
|
|
37747
|
+
LN = 'LN'
|
|
37748
|
+
'''LN'''
|
|
37745
37749
|
UNKNOWN = 'UNKNOWN'
|
|
37746
37750
|
'''UNKNOWN'''
|
|
37747
37751
|
|
|
@@ -62462,13 +62466,13 @@ class scout_video_api_CreateVideoFileRequest(ConjureBeanType):
|
|
|
62462
62466
|
'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
|
|
62463
62467
|
'labels': ConjureFieldDefinition('labels', List[api_Label]),
|
|
62464
62468
|
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
62465
|
-
'origin_metadata': ConjureFieldDefinition('originMetadata',
|
|
62469
|
+
'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoFileOriginMetadata),
|
|
62466
62470
|
'video_rid': ConjureFieldDefinition('videoRid', api_rids_VideoRid)
|
|
62467
62471
|
}
|
|
62468
62472
|
|
|
62469
62473
|
__slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_origin_metadata', '_video_rid']
|
|
62470
62474
|
|
|
62471
|
-
def __init__(self, labels: List[str], origin_metadata: "
|
|
62475
|
+
def __init__(self, labels: List[str], origin_metadata: "scout_video_api_VideoFileOriginMetadata", properties: Dict[str, str], title: str, video_rid: str, description: Optional[str] = None) -> None:
|
|
62472
62476
|
self._title = title
|
|
62473
62477
|
self._description = description
|
|
62474
62478
|
self._labels = labels
|
|
@@ -62493,7 +62497,7 @@ class scout_video_api_CreateVideoFileRequest(ConjureBeanType):
|
|
|
62493
62497
|
return self._properties
|
|
62494
62498
|
|
|
62495
62499
|
@builtins.property
|
|
62496
|
-
def origin_metadata(self) -> "
|
|
62500
|
+
def origin_metadata(self) -> "scout_video_api_VideoFileOriginMetadata":
|
|
62497
62501
|
return self._origin_metadata
|
|
62498
62502
|
|
|
62499
62503
|
@builtins.property
|
|
@@ -64068,13 +64072,13 @@ class scout_video_api_VideoFile(ConjureBeanType):
|
|
|
64068
64072
|
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
64069
64073
|
'created_by': ConjureFieldDefinition('createdBy', str),
|
|
64070
64074
|
'created_at': ConjureFieldDefinition('createdAt', str),
|
|
64071
|
-
'origin_metadata': ConjureFieldDefinition('originMetadata',
|
|
64075
|
+
'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoFileOriginMetadata),
|
|
64072
64076
|
'segment_metadata': ConjureFieldDefinition('segmentMetadata', OptionalTypeWrapper[scout_video_api_VideoFileSegmentsMetadata])
|
|
64073
64077
|
}
|
|
64074
64078
|
|
|
64075
64079
|
__slots__: List[str] = ['_rid', '_video_rid', '_title', '_description', '_labels', '_properties', '_created_by', '_created_at', '_origin_metadata', '_segment_metadata']
|
|
64076
64080
|
|
|
64077
|
-
def __init__(self, created_at: str, created_by: str, labels: List[str], origin_metadata: "
|
|
64081
|
+
def __init__(self, created_at: str, created_by: str, labels: List[str], origin_metadata: "scout_video_api_VideoFileOriginMetadata", properties: Dict[str, str], rid: str, title: str, video_rid: str, description: Optional[str] = None, segment_metadata: Optional["scout_video_api_VideoFileSegmentsMetadata"] = None) -> None:
|
|
64078
64082
|
self._rid = rid
|
|
64079
64083
|
self._video_rid = video_rid
|
|
64080
64084
|
self._title = title
|
|
@@ -64119,7 +64123,7 @@ class scout_video_api_VideoFile(ConjureBeanType):
|
|
|
64119
64123
|
return self._created_at
|
|
64120
64124
|
|
|
64121
64125
|
@builtins.property
|
|
64122
|
-
def origin_metadata(self) -> "
|
|
64126
|
+
def origin_metadata(self) -> "scout_video_api_VideoFileOriginMetadata":
|
|
64123
64127
|
return self._origin_metadata
|
|
64124
64128
|
|
|
64125
64129
|
@builtins.property
|
|
@@ -64132,6 +64136,48 @@ scout_video_api_VideoFile.__qualname__ = "VideoFile"
|
|
|
64132
64136
|
scout_video_api_VideoFile.__module__ = "nominal_api.scout_video_api"
|
|
64133
64137
|
|
|
64134
64138
|
|
|
64139
|
+
class scout_video_api_VideoFileOriginMetadata(ConjureBeanType):
|
|
64140
|
+
"""
|
|
64141
|
+
Metadata about the origin of the video file. This includes the original source of the video file and
|
|
64142
|
+
additional timestamp metadata used to time-sync the video file.
|
|
64143
|
+
"""
|
|
64144
|
+
|
|
64145
|
+
@builtins.classmethod
|
|
64146
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
64147
|
+
return {
|
|
64148
|
+
'source': ConjureFieldDefinition('source', api_Handle),
|
|
64149
|
+
'source_with_original_handle': ConjureFieldDefinition('sourceWithOriginalHandle', OptionalTypeWrapper[api_Handle]),
|
|
64150
|
+
'timestamp_manifest': ConjureFieldDefinition('timestampManifest', scout_video_api_VideoFileTimestampManifest)
|
|
64151
|
+
}
|
|
64152
|
+
|
|
64153
|
+
__slots__: List[str] = ['_source', '_source_with_original_handle', '_timestamp_manifest']
|
|
64154
|
+
|
|
64155
|
+
def __init__(self, source: "api_Handle", timestamp_manifest: "scout_video_api_VideoFileTimestampManifest", source_with_original_handle: Optional["api_Handle"] = None) -> None:
|
|
64156
|
+
self._source = source
|
|
64157
|
+
self._source_with_original_handle = source_with_original_handle
|
|
64158
|
+
self._timestamp_manifest = timestamp_manifest
|
|
64159
|
+
|
|
64160
|
+
@builtins.property
|
|
64161
|
+
def source(self) -> "api_Handle":
|
|
64162
|
+
return self._source
|
|
64163
|
+
|
|
64164
|
+
@builtins.property
|
|
64165
|
+
def source_with_original_handle(self) -> Optional["api_Handle"]:
|
|
64166
|
+
"""
|
|
64167
|
+
Will be present if the handle was copied from a different bucket to the Nominal bucket.
|
|
64168
|
+
"""
|
|
64169
|
+
return self._source_with_original_handle
|
|
64170
|
+
|
|
64171
|
+
@builtins.property
|
|
64172
|
+
def timestamp_manifest(self) -> "scout_video_api_VideoFileTimestampManifest":
|
|
64173
|
+
return self._timestamp_manifest
|
|
64174
|
+
|
|
64175
|
+
|
|
64176
|
+
scout_video_api_VideoFileOriginMetadata.__name__ = "VideoFileOriginMetadata"
|
|
64177
|
+
scout_video_api_VideoFileOriginMetadata.__qualname__ = "VideoFileOriginMetadata"
|
|
64178
|
+
scout_video_api_VideoFileOriginMetadata.__module__ = "nominal_api.scout_video_api"
|
|
64179
|
+
|
|
64180
|
+
|
|
64135
64181
|
class scout_video_api_VideoFileSegmentsMetadata(ConjureBeanType):
|
|
64136
64182
|
|
|
64137
64183
|
@builtins.classmethod
|
|
@@ -64197,6 +64243,108 @@ scout_video_api_VideoFileSegmentsMetadata.__qualname__ = "VideoFileSegmentsMetad
|
|
|
64197
64243
|
scout_video_api_VideoFileSegmentsMetadata.__module__ = "nominal_api.scout_video_api"
|
|
64198
64244
|
|
|
64199
64245
|
|
|
64246
|
+
class scout_video_api_VideoFileTimestampManifest(ConjureUnionType):
|
|
64247
|
+
"""A video file’s timestamp manifest specifies how to determine absolute timestamps for each frame. In an MCAP
|
|
64248
|
+
file, this data is embedded within the source file. Alternatively, the manifest may be provided as an external
|
|
64249
|
+
sidecar file. If no manifest is available, the timestamps are calculated by applying a starting offset to the
|
|
64250
|
+
presentation timestamp of each frame."""
|
|
64251
|
+
_mcap: Optional["scout_video_api_McapTimestampManifest"] = None
|
|
64252
|
+
_s3path: Optional[str] = None
|
|
64253
|
+
_no_manifest: Optional["scout_video_api_NoTimestampManifest"] = None
|
|
64254
|
+
|
|
64255
|
+
@builtins.classmethod
|
|
64256
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
64257
|
+
return {
|
|
64258
|
+
'mcap': ConjureFieldDefinition('mcap', scout_video_api_McapTimestampManifest),
|
|
64259
|
+
's3path': ConjureFieldDefinition('s3path', api_S3Path),
|
|
64260
|
+
'no_manifest': ConjureFieldDefinition('noManifest', scout_video_api_NoTimestampManifest)
|
|
64261
|
+
}
|
|
64262
|
+
|
|
64263
|
+
def __init__(
|
|
64264
|
+
self,
|
|
64265
|
+
mcap: Optional["scout_video_api_McapTimestampManifest"] = None,
|
|
64266
|
+
s3path: Optional[str] = None,
|
|
64267
|
+
no_manifest: Optional["scout_video_api_NoTimestampManifest"] = None,
|
|
64268
|
+
type_of_union: Optional[str] = None
|
|
64269
|
+
) -> None:
|
|
64270
|
+
if type_of_union is None:
|
|
64271
|
+
if (mcap is not None) + (s3path is not None) + (no_manifest is not None) != 1:
|
|
64272
|
+
raise ValueError('a union must contain a single member')
|
|
64273
|
+
|
|
64274
|
+
if mcap is not None:
|
|
64275
|
+
self._mcap = mcap
|
|
64276
|
+
self._type = 'mcap'
|
|
64277
|
+
if s3path is not None:
|
|
64278
|
+
self._s3path = s3path
|
|
64279
|
+
self._type = 's3path'
|
|
64280
|
+
if no_manifest is not None:
|
|
64281
|
+
self._no_manifest = no_manifest
|
|
64282
|
+
self._type = 'noManifest'
|
|
64283
|
+
|
|
64284
|
+
elif type_of_union == 'mcap':
|
|
64285
|
+
if mcap is None:
|
|
64286
|
+
raise ValueError('a union value must not be None')
|
|
64287
|
+
self._mcap = mcap
|
|
64288
|
+
self._type = 'mcap'
|
|
64289
|
+
elif type_of_union == 's3path':
|
|
64290
|
+
if s3path is None:
|
|
64291
|
+
raise ValueError('a union value must not be None')
|
|
64292
|
+
self._s3path = s3path
|
|
64293
|
+
self._type = 's3path'
|
|
64294
|
+
elif type_of_union == 'noManifest':
|
|
64295
|
+
if no_manifest is None:
|
|
64296
|
+
raise ValueError('a union value must not be None')
|
|
64297
|
+
self._no_manifest = no_manifest
|
|
64298
|
+
self._type = 'noManifest'
|
|
64299
|
+
|
|
64300
|
+
@builtins.property
|
|
64301
|
+
def mcap(self) -> Optional["scout_video_api_McapTimestampManifest"]:
|
|
64302
|
+
return self._mcap
|
|
64303
|
+
|
|
64304
|
+
@builtins.property
|
|
64305
|
+
def s3path(self) -> Optional[str]:
|
|
64306
|
+
return self._s3path
|
|
64307
|
+
|
|
64308
|
+
@builtins.property
|
|
64309
|
+
def no_manifest(self) -> Optional["scout_video_api_NoTimestampManifest"]:
|
|
64310
|
+
return self._no_manifest
|
|
64311
|
+
|
|
64312
|
+
def accept(self, visitor) -> Any:
|
|
64313
|
+
if not isinstance(visitor, scout_video_api_VideoFileTimestampManifestVisitor):
|
|
64314
|
+
raise ValueError('{} is not an instance of scout_video_api_VideoFileTimestampManifestVisitor'.format(visitor.__class__.__name__))
|
|
64315
|
+
if self._type == 'mcap' and self.mcap is not None:
|
|
64316
|
+
return visitor._mcap(self.mcap)
|
|
64317
|
+
if self._type == 's3path' and self.s3path is not None:
|
|
64318
|
+
return visitor._s3path(self.s3path)
|
|
64319
|
+
if self._type == 'noManifest' and self.no_manifest is not None:
|
|
64320
|
+
return visitor._no_manifest(self.no_manifest)
|
|
64321
|
+
|
|
64322
|
+
|
|
64323
|
+
scout_video_api_VideoFileTimestampManifest.__name__ = "VideoFileTimestampManifest"
|
|
64324
|
+
scout_video_api_VideoFileTimestampManifest.__qualname__ = "VideoFileTimestampManifest"
|
|
64325
|
+
scout_video_api_VideoFileTimestampManifest.__module__ = "nominal_api.scout_video_api"
|
|
64326
|
+
|
|
64327
|
+
|
|
64328
|
+
class scout_video_api_VideoFileTimestampManifestVisitor:
|
|
64329
|
+
|
|
64330
|
+
@abstractmethod
|
|
64331
|
+
def _mcap(self, mcap: "scout_video_api_McapTimestampManifest") -> Any:
|
|
64332
|
+
pass
|
|
64333
|
+
|
|
64334
|
+
@abstractmethod
|
|
64335
|
+
def _s3path(self, s3path: str) -> Any:
|
|
64336
|
+
pass
|
|
64337
|
+
|
|
64338
|
+
@abstractmethod
|
|
64339
|
+
def _no_manifest(self, no_manifest: "scout_video_api_NoTimestampManifest") -> Any:
|
|
64340
|
+
pass
|
|
64341
|
+
|
|
64342
|
+
|
|
64343
|
+
scout_video_api_VideoFileTimestampManifestVisitor.__name__ = "VideoFileTimestampManifestVisitor"
|
|
64344
|
+
scout_video_api_VideoFileTimestampManifestVisitor.__qualname__ = "VideoFileTimestampManifestVisitor"
|
|
64345
|
+
scout_video_api_VideoFileTimestampManifestVisitor.__module__ = "nominal_api.scout_video_api"
|
|
64346
|
+
|
|
64347
|
+
|
|
64200
64348
|
class scout_video_api_VideoOriginMetadata(ConjureBeanType):
|
|
64201
64349
|
|
|
64202
64350
|
@builtins.classmethod
|
|
@@ -44,7 +44,10 @@ from .._impl import (
|
|
|
44
44
|
scout_video_api_Video as Video,
|
|
45
45
|
scout_video_api_VideoAllSegmentsMetadata as VideoAllSegmentsMetadata,
|
|
46
46
|
scout_video_api_VideoFile as VideoFile,
|
|
47
|
+
scout_video_api_VideoFileOriginMetadata as VideoFileOriginMetadata,
|
|
47
48
|
scout_video_api_VideoFileSegmentsMetadata as VideoFileSegmentsMetadata,
|
|
49
|
+
scout_video_api_VideoFileTimestampManifest as VideoFileTimestampManifest,
|
|
50
|
+
scout_video_api_VideoFileTimestampManifestVisitor as VideoFileTimestampManifestVisitor,
|
|
48
51
|
scout_video_api_VideoOriginMetadata as VideoOriginMetadata,
|
|
49
52
|
scout_video_api_VideoTimestampManifest as VideoTimestampManifest,
|
|
50
53
|
scout_video_api_VideoTimestampManifestVisitor as VideoTimestampManifestVisitor,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=pav1HY4hXY5cy_NAOrbdFiBtZA2wbt4fl0GdFqHg3SQ,1791
|
|
2
|
+
nominal_api/_impl.py,sha256=QI-fkoSmKNOZd1_tCnnbk9jirTONC6EihQQmnmbVEdI,2750650
|
|
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
|
|
@@ -52,7 +52,7 @@ nominal_api/scout_template_api/__init__.py,sha256=bsu8qPiZ4gf67G5iFvwsfkqEKJRZ7L
|
|
|
52
52
|
nominal_api/scout_units_api/__init__.py,sha256=KxRDScfumX__0ncWJftGvgApn_LBTfnIBAvnaBrcA5A,368
|
|
53
53
|
nominal_api/scout_versioning_api/__init__.py,sha256=Sf4T4t0rZXNRIZgkqLBN3yh0sAnrxiuzaTfDQVVkyO4,1323
|
|
54
54
|
nominal_api/scout_video/__init__.py,sha256=zB7mM23yGAgC529rF4gjDmqcLRbsp0kJA3xef8meZko,200
|
|
55
|
-
nominal_api/scout_video_api/__init__.py,sha256=
|
|
55
|
+
nominal_api/scout_video_api/__init__.py,sha256=u8QBMJLP13HeCieE716zPq_2Yia3b0Uf80teGjEZ7nE,3402
|
|
56
56
|
nominal_api/scout_workbookcommon_api/__init__.py,sha256=6Ai0cYNOOw2A6JOlKzraTbpZwolspM-WTqVGLMN2HdI,413
|
|
57
57
|
nominal_api/secrets_api/__init__.py,sha256=V5BpnbNzjdMP8kgvR2N6SEVcVyXi6Vyl_lh_5fKjJzw,736
|
|
58
58
|
nominal_api/storage_datasource_api/__init__.py,sha256=jh_OZE_b4nBNAvnyenBjw8aGZOnvIXR6qvUKd31fXOk,445
|
|
@@ -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.
|
|
70
|
-
nominal_api-0.
|
|
71
|
-
nominal_api-0.
|
|
72
|
-
nominal_api-0.
|
|
69
|
+
nominal_api-0.560.0.dist-info/METADATA,sha256=whKMqigmtKR4zbvKO7FU7gxgtd3N3BbrbIWV1YnaBeg,199
|
|
70
|
+
nominal_api-0.560.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
71
|
+
nominal_api-0.560.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
72
|
+
nominal_api-0.560.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|