nominal-api 0.562.0__py3-none-any.whl → 0.564.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 CHANGED
@@ -69,5 +69,5 @@ __all__ = [
69
69
 
70
70
  __conjure_generator_version__ = "4.9.0"
71
71
 
72
- __version__ = "0.562.0"
72
+ __version__ = "0.564.0"
73
73
 
nominal_api/_impl.py CHANGED
@@ -7356,31 +7356,24 @@ ingest_api_IngestMcapRequest.__module__ = "nominal_api.ingest_api"
7356
7356
 
7357
7357
  class ingest_api_IngestMcapResponse(ConjureBeanType):
7358
7358
  """
7359
- Returns references to the data ingested from an MCAP file, along with a rid to monitor the progress of the
7360
- ingestion.
7359
+ Returns references to the data ingested from an MCAP file.
7361
7360
  """
7362
7361
 
7363
7362
  @builtins.classmethod
7364
7363
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
7365
7364
  return {
7366
- 'outputs': ConjureFieldDefinition('outputs', List[ingest_api_McapIngestionOutput]),
7367
- 'async_handle': ConjureFieldDefinition('asyncHandle', ingest_api_AsyncHandle)
7365
+ 'outputs': ConjureFieldDefinition('outputs', List[ingest_api_McapIngestionOutput])
7368
7366
  }
7369
7367
 
7370
- __slots__: List[str] = ['_outputs', '_async_handle']
7368
+ __slots__: List[str] = ['_outputs']
7371
7369
 
7372
- def __init__(self, async_handle: "ingest_api_AsyncHandle", outputs: List["ingest_api_McapIngestionOutput"]) -> None:
7370
+ def __init__(self, outputs: List["ingest_api_McapIngestionOutput"]) -> None:
7373
7371
  self._outputs = outputs
7374
- self._async_handle = async_handle
7375
7372
 
7376
7373
  @builtins.property
7377
7374
  def outputs(self) -> List["ingest_api_McapIngestionOutput"]:
7378
7375
  return self._outputs
7379
7376
 
7380
- @builtins.property
7381
- def async_handle(self) -> "ingest_api_AsyncHandle":
7382
- return self._async_handle
7383
-
7384
7377
 
7385
7378
  ingest_api_IngestMcapResponse.__name__ = "IngestMcapResponse"
7386
7379
  ingest_api_IngestMcapResponse.__qualname__ = "IngestMcapResponse"
@@ -8205,24 +8198,18 @@ class ingest_api_IngestVideoResponse(ConjureBeanType):
8205
8198
  @builtins.classmethod
8206
8199
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
8207
8200
  return {
8208
- 'video_rid': ConjureFieldDefinition('videoRid', api_rids_VideoRid),
8209
- 'async_handle': ConjureFieldDefinition('asyncHandle', ingest_api_AsyncHandle)
8201
+ 'video_rid': ConjureFieldDefinition('videoRid', api_rids_VideoRid)
8210
8202
  }
8211
8203
 
8212
- __slots__: List[str] = ['_video_rid', '_async_handle']
8204
+ __slots__: List[str] = ['_video_rid']
8213
8205
 
8214
- def __init__(self, async_handle: "ingest_api_AsyncHandle", video_rid: str) -> None:
8206
+ def __init__(self, video_rid: str) -> None:
8215
8207
  self._video_rid = video_rid
8216
- self._async_handle = async_handle
8217
8208
 
8218
8209
  @builtins.property
8219
8210
  def video_rid(self) -> str:
8220
8211
  return self._video_rid
8221
8212
 
8222
- @builtins.property
8223
- def async_handle(self) -> "ingest_api_AsyncHandle":
8224
- return self._async_handle
8225
-
8226
8213
 
8227
8214
  ingest_api_IngestVideoResponse.__name__ = "IngestVideoResponse"
8228
8215
  ingest_api_IngestVideoResponse.__qualname__ = "IngestVideoResponse"
@@ -42822,22 +42809,20 @@ scout_compute_resolved_api_LatLongGeoNode.__qualname__ = "LatLongGeoNode"
42822
42809
  scout_compute_resolved_api_LatLongGeoNode.__module__ = "nominal_api.scout_compute_resolved_api"
42823
42810
 
42824
42811
 
42825
- class scout_compute_resolved_api_LogFilterRangesNode(ConjureBeanType):
42812
+ class scout_compute_resolved_api_LogFilterSeriesNode(ConjureBeanType):
42826
42813
 
42827
42814
  @builtins.classmethod
42828
42815
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
42829
42816
  return {
42830
42817
  'input': ConjureFieldDefinition('input', scout_compute_resolved_api_LogSeriesNode),
42831
- 'operator': ConjureFieldDefinition('operator', scout_compute_api_LogFilterOperator),
42832
- 'persistence_window_configuration': ConjureFieldDefinition('persistenceWindowConfiguration', OptionalTypeWrapper[scout_compute_resolved_api_PersistenceWindowConfiguration])
42818
+ 'operator': ConjureFieldDefinition('operator', scout_compute_api_LogFilterOperator)
42833
42819
  }
42834
42820
 
42835
- __slots__: List[str] = ['_input', '_operator', '_persistence_window_configuration']
42821
+ __slots__: List[str] = ['_input', '_operator']
42836
42822
 
42837
- def __init__(self, input: "scout_compute_resolved_api_LogSeriesNode", operator: "scout_compute_api_LogFilterOperator", persistence_window_configuration: Optional["scout_compute_resolved_api_PersistenceWindowConfiguration"] = None) -> None:
42823
+ def __init__(self, input: "scout_compute_resolved_api_LogSeriesNode", operator: "scout_compute_api_LogFilterOperator") -> None:
42838
42824
  self._input = input
42839
42825
  self._operator = operator
42840
- self._persistence_window_configuration = persistence_window_configuration
42841
42826
 
42842
42827
  @builtins.property
42843
42828
  def input(self) -> "scout_compute_resolved_api_LogSeriesNode":
@@ -42847,52 +42832,16 @@ class scout_compute_resolved_api_LogFilterRangesNode(ConjureBeanType):
42847
42832
  def operator(self) -> "scout_compute_api_LogFilterOperator":
42848
42833
  return self._operator
42849
42834
 
42850
- @builtins.property
42851
- def persistence_window_configuration(self) -> Optional["scout_compute_resolved_api_PersistenceWindowConfiguration"]:
42852
- return self._persistence_window_configuration
42853
-
42854
-
42855
- scout_compute_resolved_api_LogFilterRangesNode.__name__ = "LogFilterRangesNode"
42856
- scout_compute_resolved_api_LogFilterRangesNode.__qualname__ = "LogFilterRangesNode"
42857
- scout_compute_resolved_api_LogFilterRangesNode.__module__ = "nominal_api.scout_compute_resolved_api"
42858
-
42859
-
42860
- class scout_compute_resolved_api_LogFilterTransformationSeriesNode(ConjureBeanType):
42861
- """
42862
- Outputs the values of the log plot value within the ranges specified by a ranges node
42863
- """
42864
-
42865
- @builtins.classmethod
42866
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
42867
- return {
42868
- 'input': ConjureFieldDefinition('input', scout_compute_resolved_api_LogSeriesNode),
42869
- 'filter': ConjureFieldDefinition('filter', scout_compute_resolved_api_RangesNode)
42870
- }
42871
-
42872
- __slots__: List[str] = ['_input', '_filter']
42873
-
42874
- def __init__(self, filter: "scout_compute_resolved_api_RangesNode", input: "scout_compute_resolved_api_LogSeriesNode") -> None:
42875
- self._input = input
42876
- self._filter = filter
42877
-
42878
- @builtins.property
42879
- def input(self) -> "scout_compute_resolved_api_LogSeriesNode":
42880
- return self._input
42881
-
42882
- @builtins.property
42883
- def filter(self) -> "scout_compute_resolved_api_RangesNode":
42884
- return self._filter
42885
42835
 
42886
-
42887
- scout_compute_resolved_api_LogFilterTransformationSeriesNode.__name__ = "LogFilterTransformationSeriesNode"
42888
- scout_compute_resolved_api_LogFilterTransformationSeriesNode.__qualname__ = "LogFilterTransformationSeriesNode"
42889
- scout_compute_resolved_api_LogFilterTransformationSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
42836
+ scout_compute_resolved_api_LogFilterSeriesNode.__name__ = "LogFilterSeriesNode"
42837
+ scout_compute_resolved_api_LogFilterSeriesNode.__qualname__ = "LogFilterSeriesNode"
42838
+ scout_compute_resolved_api_LogFilterSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
42890
42839
 
42891
42840
 
42892
42841
  class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42893
42842
  _raw: Optional["scout_compute_resolved_api_RawLogSeriesNode"] = None
42894
42843
  _union: Optional["scout_compute_resolved_api_LogUnionSeriesNode"] = None
42895
- _filter_transformation: Optional["scout_compute_resolved_api_LogFilterTransformationSeriesNode"] = None
42844
+ _filter: Optional["scout_compute_resolved_api_LogFilterSeriesNode"] = None
42896
42845
  _time_shift: Optional["scout_compute_resolved_api_LogTimeShiftSeriesNode"] = None
42897
42846
 
42898
42847
  @builtins.classmethod
@@ -42900,7 +42849,7 @@ class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42900
42849
  return {
42901
42850
  'raw': ConjureFieldDefinition('raw', scout_compute_resolved_api_RawLogSeriesNode),
42902
42851
  'union': ConjureFieldDefinition('union', scout_compute_resolved_api_LogUnionSeriesNode),
42903
- 'filter_transformation': ConjureFieldDefinition('filterTransformation', scout_compute_resolved_api_LogFilterTransformationSeriesNode),
42852
+ 'filter': ConjureFieldDefinition('filter', scout_compute_resolved_api_LogFilterSeriesNode),
42904
42853
  'time_shift': ConjureFieldDefinition('timeShift', scout_compute_resolved_api_LogTimeShiftSeriesNode)
42905
42854
  }
42906
42855
 
@@ -42908,12 +42857,12 @@ class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42908
42857
  self,
42909
42858
  raw: Optional["scout_compute_resolved_api_RawLogSeriesNode"] = None,
42910
42859
  union: Optional["scout_compute_resolved_api_LogUnionSeriesNode"] = None,
42911
- filter_transformation: Optional["scout_compute_resolved_api_LogFilterTransformationSeriesNode"] = None,
42860
+ filter: Optional["scout_compute_resolved_api_LogFilterSeriesNode"] = None,
42912
42861
  time_shift: Optional["scout_compute_resolved_api_LogTimeShiftSeriesNode"] = None,
42913
42862
  type_of_union: Optional[str] = None
42914
42863
  ) -> None:
42915
42864
  if type_of_union is None:
42916
- if (raw is not None) + (union is not None) + (filter_transformation is not None) + (time_shift is not None) != 1:
42865
+ if (raw is not None) + (union is not None) + (filter is not None) + (time_shift is not None) != 1:
42917
42866
  raise ValueError('a union must contain a single member')
42918
42867
 
42919
42868
  if raw is not None:
@@ -42922,9 +42871,9 @@ class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42922
42871
  if union is not None:
42923
42872
  self._union = union
42924
42873
  self._type = 'union'
42925
- if filter_transformation is not None:
42926
- self._filter_transformation = filter_transformation
42927
- self._type = 'filterTransformation'
42874
+ if filter is not None:
42875
+ self._filter = filter
42876
+ self._type = 'filter'
42928
42877
  if time_shift is not None:
42929
42878
  self._time_shift = time_shift
42930
42879
  self._type = 'timeShift'
@@ -42939,11 +42888,11 @@ class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42939
42888
  raise ValueError('a union value must not be None')
42940
42889
  self._union = union
42941
42890
  self._type = 'union'
42942
- elif type_of_union == 'filterTransformation':
42943
- if filter_transformation is None:
42891
+ elif type_of_union == 'filter':
42892
+ if filter is None:
42944
42893
  raise ValueError('a union value must not be None')
42945
- self._filter_transformation = filter_transformation
42946
- self._type = 'filterTransformation'
42894
+ self._filter = filter
42895
+ self._type = 'filter'
42947
42896
  elif type_of_union == 'timeShift':
42948
42897
  if time_shift is None:
42949
42898
  raise ValueError('a union value must not be None')
@@ -42959,8 +42908,8 @@ class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42959
42908
  return self._union
42960
42909
 
42961
42910
  @builtins.property
42962
- def filter_transformation(self) -> Optional["scout_compute_resolved_api_LogFilterTransformationSeriesNode"]:
42963
- return self._filter_transformation
42911
+ def filter(self) -> Optional["scout_compute_resolved_api_LogFilterSeriesNode"]:
42912
+ return self._filter
42964
42913
 
42965
42914
  @builtins.property
42966
42915
  def time_shift(self) -> Optional["scout_compute_resolved_api_LogTimeShiftSeriesNode"]:
@@ -42973,8 +42922,8 @@ class scout_compute_resolved_api_LogSeriesNode(ConjureUnionType):
42973
42922
  return visitor._raw(self.raw)
42974
42923
  if self._type == 'union' and self.union is not None:
42975
42924
  return visitor._union(self.union)
42976
- if self._type == 'filterTransformation' and self.filter_transformation is not None:
42977
- return visitor._filter_transformation(self.filter_transformation)
42925
+ if self._type == 'filter' and self.filter is not None:
42926
+ return visitor._filter(self.filter)
42978
42927
  if self._type == 'timeShift' and self.time_shift is not None:
42979
42928
  return visitor._time_shift(self.time_shift)
42980
42929
 
@@ -42995,7 +42944,7 @@ class scout_compute_resolved_api_LogSeriesNodeVisitor:
42995
42944
  pass
42996
42945
 
42997
42946
  @abstractmethod
42998
- def _filter_transformation(self, filter_transformation: "scout_compute_resolved_api_LogFilterTransformationSeriesNode") -> Any:
42947
+ def _filter(self, filter: "scout_compute_resolved_api_LogFilterSeriesNode") -> Any:
42999
42948
  pass
43000
42949
 
43001
42950
  @abstractmethod
@@ -44281,7 +44230,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44281
44230
  _enum_filter: Optional["scout_compute_resolved_api_EnumFilterRangesNode"] = None
44282
44231
  _extrema: Optional["scout_compute_resolved_api_ExtremaRangesNode"] = None
44283
44232
  _intersect_range: Optional["scout_compute_resolved_api_IntersectRangesNode"] = None
44284
- _log_filter: Optional["scout_compute_resolved_api_LogFilterRangesNode"] = None
44285
44233
  _min_max_threshold: Optional["scout_compute_resolved_api_MinMaxThresholdRangesNode"] = None
44286
44234
  _not_: Optional["scout_compute_resolved_api_NotRangesNode"] = None
44287
44235
  _on_change: Optional["scout_compute_resolved_api_OnChangeRangesNode"] = None
@@ -44299,7 +44247,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44299
44247
  'enum_filter': ConjureFieldDefinition('enumFilter', scout_compute_resolved_api_EnumFilterRangesNode),
44300
44248
  'extrema': ConjureFieldDefinition('extrema', scout_compute_resolved_api_ExtremaRangesNode),
44301
44249
  'intersect_range': ConjureFieldDefinition('intersectRange', scout_compute_resolved_api_IntersectRangesNode),
44302
- 'log_filter': ConjureFieldDefinition('logFilter', scout_compute_resolved_api_LogFilterRangesNode),
44303
44250
  'min_max_threshold': ConjureFieldDefinition('minMaxThreshold', scout_compute_resolved_api_MinMaxThresholdRangesNode),
44304
44251
  'not_': ConjureFieldDefinition('not', scout_compute_resolved_api_NotRangesNode),
44305
44252
  'on_change': ConjureFieldDefinition('onChange', scout_compute_resolved_api_OnChangeRangesNode),
@@ -44317,7 +44264,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44317
44264
  enum_filter: Optional["scout_compute_resolved_api_EnumFilterRangesNode"] = None,
44318
44265
  extrema: Optional["scout_compute_resolved_api_ExtremaRangesNode"] = None,
44319
44266
  intersect_range: Optional["scout_compute_resolved_api_IntersectRangesNode"] = None,
44320
- log_filter: Optional["scout_compute_resolved_api_LogFilterRangesNode"] = None,
44321
44267
  min_max_threshold: Optional["scout_compute_resolved_api_MinMaxThresholdRangesNode"] = None,
44322
44268
  not_: Optional["scout_compute_resolved_api_NotRangesNode"] = None,
44323
44269
  on_change: Optional["scout_compute_resolved_api_OnChangeRangesNode"] = None,
@@ -44330,7 +44276,7 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44330
44276
  type_of_union: Optional[str] = None
44331
44277
  ) -> None:
44332
44278
  if type_of_union is None:
44333
- if (enum_equality is not None) + (enum_filter is not None) + (extrema is not None) + (intersect_range is not None) + (log_filter is not None) + (min_max_threshold is not None) + (not_ is not None) + (on_change is not None) + (range_numeric_aggregation is not None) + (series_crossover_ranges_node is not None) + (stale_range is not None) + (stability_detection is not None) + (threshold is not None) + (union_range is not None) != 1:
44279
+ if (enum_equality is not None) + (enum_filter is not None) + (extrema is not None) + (intersect_range is not None) + (min_max_threshold is not None) + (not_ is not None) + (on_change is not None) + (range_numeric_aggregation is not None) + (series_crossover_ranges_node is not None) + (stale_range is not None) + (stability_detection is not None) + (threshold is not None) + (union_range is not None) != 1:
44334
44280
  raise ValueError('a union must contain a single member')
44335
44281
 
44336
44282
  if enum_equality is not None:
@@ -44345,9 +44291,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44345
44291
  if intersect_range is not None:
44346
44292
  self._intersect_range = intersect_range
44347
44293
  self._type = 'intersectRange'
44348
- if log_filter is not None:
44349
- self._log_filter = log_filter
44350
- self._type = 'logFilter'
44351
44294
  if min_max_threshold is not None:
44352
44295
  self._min_max_threshold = min_max_threshold
44353
44296
  self._type = 'minMaxThreshold'
@@ -44396,11 +44339,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44396
44339
  raise ValueError('a union value must not be None')
44397
44340
  self._intersect_range = intersect_range
44398
44341
  self._type = 'intersectRange'
44399
- elif type_of_union == 'logFilter':
44400
- if log_filter is None:
44401
- raise ValueError('a union value must not be None')
44402
- self._log_filter = log_filter
44403
- self._type = 'logFilter'
44404
44342
  elif type_of_union == 'minMaxThreshold':
44405
44343
  if min_max_threshold is None:
44406
44344
  raise ValueError('a union value must not be None')
@@ -44463,10 +44401,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44463
44401
  def intersect_range(self) -> Optional["scout_compute_resolved_api_IntersectRangesNode"]:
44464
44402
  return self._intersect_range
44465
44403
 
44466
- @builtins.property
44467
- def log_filter(self) -> Optional["scout_compute_resolved_api_LogFilterRangesNode"]:
44468
- return self._log_filter
44469
-
44470
44404
  @builtins.property
44471
44405
  def min_max_threshold(self) -> Optional["scout_compute_resolved_api_MinMaxThresholdRangesNode"]:
44472
44406
  return self._min_max_threshold
@@ -44514,8 +44448,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
44514
44448
  return visitor._extrema(self.extrema)
44515
44449
  if self._type == 'intersectRange' and self.intersect_range is not None:
44516
44450
  return visitor._intersect_range(self.intersect_range)
44517
- if self._type == 'logFilter' and self.log_filter is not None:
44518
- return visitor._log_filter(self.log_filter)
44519
44451
  if self._type == 'minMaxThreshold' and self.min_max_threshold is not None:
44520
44452
  return visitor._min_max_threshold(self.min_max_threshold)
44521
44453
  if self._type == 'not' and self.not_ is not None:
@@ -44559,10 +44491,6 @@ class scout_compute_resolved_api_RangesNodeVisitor:
44559
44491
  def _intersect_range(self, intersect_range: "scout_compute_resolved_api_IntersectRangesNode") -> Any:
44560
44492
  pass
44561
44493
 
44562
- @abstractmethod
44563
- def _log_filter(self, log_filter: "scout_compute_resolved_api_LogFilterRangesNode") -> Any:
44564
- pass
44565
-
44566
44494
  @abstractmethod
44567
44495
  def _min_max_threshold(self, min_max_threshold: "scout_compute_resolved_api_MinMaxThresholdRangesNode") -> Any:
44568
44496
  pass
@@ -61883,6 +61811,41 @@ class scout_video_VideoSegmentService(Service):
61883
61811
  at the segment-level.
61884
61812
  """
61885
61813
 
61814
+ def get_segment_data(self, auth_header: str, segment_rid: str, video_rid: str) -> Any:
61815
+ """
61816
+ Retrieves the raw bytes of a video segment. The data will be returned as a transport stream.
61817
+ """
61818
+
61819
+ _headers: Dict[str, Any] = {
61820
+ 'Accept': 'application/octet-stream',
61821
+ 'Authorization': auth_header,
61822
+ }
61823
+
61824
+ _params: Dict[str, Any] = {
61825
+ }
61826
+
61827
+ _path_params: Dict[str, Any] = {
61828
+ 'videoRid': video_rid,
61829
+ 'segmentRid': segment_rid,
61830
+ }
61831
+
61832
+ _json: Any = None
61833
+
61834
+ _path = '/video/v1/videos/{videoRid}/segments/{segmentRid}'
61835
+ _path = _path.format(**_path_params)
61836
+
61837
+ _response: Response = self._request(
61838
+ 'GET',
61839
+ self._uri + _path,
61840
+ params=_params,
61841
+ headers=_headers,
61842
+ stream=True,
61843
+ json=_json)
61844
+
61845
+ _raw = _response.raw
61846
+ _raw.decode_content = True
61847
+ return _raw
61848
+
61886
61849
  def create_segments(self, auth_header: str, request: "scout_video_api_CreateSegmentsRequest", video_rid: str) -> "scout_video_api_CreateSegmentsResponse":
61887
61850
 
61888
61851
  _headers: Dict[str, Any] = {
@@ -62305,36 +62268,6 @@ links to all of the segments in the video in sequential order.
62305
62268
  _raw.decode_content = True
62306
62269
  return _raw
62307
62270
 
62308
- def update_target_duration(self, auth_header: str, request: "scout_video_api_UpdateTargetDurationRequest", video_rid: str) -> "scout_video_api_UpdateTargetDurationResponse":
62309
-
62310
- _headers: Dict[str, Any] = {
62311
- 'Accept': 'application/json',
62312
- 'Content-Type': 'application/json',
62313
- 'Authorization': auth_header,
62314
- }
62315
-
62316
- _params: Dict[str, Any] = {
62317
- }
62318
-
62319
- _path_params: Dict[str, Any] = {
62320
- 'videoRid': video_rid,
62321
- }
62322
-
62323
- _json: Any = ConjureEncoder().default(request)
62324
-
62325
- _path = '/video/v1/videos/{videoRid}/target-duration'
62326
- _path = _path.format(**_path_params)
62327
-
62328
- _response: Response = self._request(
62329
- 'PUT',
62330
- self._uri + _path,
62331
- params=_params,
62332
- headers=_headers,
62333
- json=_json)
62334
-
62335
- _decoder = ConjureDecoder()
62336
- return _decoder.decode(_response.json(), scout_video_api_UpdateTargetDurationResponse, self._return_none_for_unknown_union_types)
62337
-
62338
62271
  def get_segment_summaries(self, auth_header: str, video_rid: str) -> List["scout_video_api_SegmentSummary"]:
62339
62272
  """
62340
62273
  Returns the min and max absolute and media timestamps for each segment in a video. To be used during
@@ -63428,48 +63361,33 @@ class scout_video_api_SegmentTimestamps(ConjureUnionType):
63428
63361
  be frame-mapped. Without a frame-timestamp mapping manifest file, a list of absolute timestamps will be
63429
63362
  automatically assigned to each segment based on media timestamps.. Otherwise, media timestamps will be
63430
63363
  extracted and mapped to those in the provided manifest."""
63431
- _timestamps: Optional[List["api_Timestamp"]] = None
63432
63364
  _timestamp_mappings: Optional["scout_video_api_TimestampMappings"] = None
63433
63365
 
63434
63366
  @builtins.classmethod
63435
63367
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
63436
63368
  return {
63437
- 'timestamps': ConjureFieldDefinition('timestamps', List[api_Timestamp]),
63438
63369
  'timestamp_mappings': ConjureFieldDefinition('timestampMappings', scout_video_api_TimestampMappings)
63439
63370
  }
63440
63371
 
63441
63372
  def __init__(
63442
63373
  self,
63443
- timestamps: Optional[List["api_Timestamp"]] = None,
63444
63374
  timestamp_mappings: Optional["scout_video_api_TimestampMappings"] = None,
63445
63375
  type_of_union: Optional[str] = None
63446
63376
  ) -> None:
63447
63377
  if type_of_union is None:
63448
- if (timestamps is not None) + (timestamp_mappings is not None) != 1:
63378
+ if (timestamp_mappings is not None) != 1:
63449
63379
  raise ValueError('a union must contain a single member')
63450
63380
 
63451
- if timestamps is not None:
63452
- self._timestamps = timestamps
63453
- self._type = 'timestamps'
63454
63381
  if timestamp_mappings is not None:
63455
63382
  self._timestamp_mappings = timestamp_mappings
63456
63383
  self._type = 'timestampMappings'
63457
63384
 
63458
- elif type_of_union == 'timestamps':
63459
- if timestamps is None:
63460
- raise ValueError('a union value must not be None')
63461
- self._timestamps = timestamps
63462
- self._type = 'timestamps'
63463
63385
  elif type_of_union == 'timestampMappings':
63464
63386
  if timestamp_mappings is None:
63465
63387
  raise ValueError('a union value must not be None')
63466
63388
  self._timestamp_mappings = timestamp_mappings
63467
63389
  self._type = 'timestampMappings'
63468
63390
 
63469
- @builtins.property
63470
- def timestamps(self) -> Optional[List["api_Timestamp"]]:
63471
- return self._timestamps
63472
-
63473
63391
  @builtins.property
63474
63392
  def timestamp_mappings(self) -> Optional["scout_video_api_TimestampMappings"]:
63475
63393
  return self._timestamp_mappings
@@ -63477,8 +63395,6 @@ extracted and mapped to those in the provided manifest."""
63477
63395
  def accept(self, visitor) -> Any:
63478
63396
  if not isinstance(visitor, scout_video_api_SegmentTimestampsVisitor):
63479
63397
  raise ValueError('{} is not an instance of scout_video_api_SegmentTimestampsVisitor'.format(visitor.__class__.__name__))
63480
- if self._type == 'timestamps' and self.timestamps is not None:
63481
- return visitor._timestamps(self.timestamps)
63482
63398
  if self._type == 'timestampMappings' and self.timestamp_mappings is not None:
63483
63399
  return visitor._timestamp_mappings(self.timestamp_mappings)
63484
63400
 
@@ -63490,10 +63406,6 @@ scout_video_api_SegmentTimestamps.__module__ = "nominal_api.scout_video_api"
63490
63406
 
63491
63407
  class scout_video_api_SegmentTimestampsVisitor:
63492
63408
 
63493
- @abstractmethod
63494
- def _timestamps(self, timestamps: List["api_Timestamp"]) -> Any:
63495
- pass
63496
-
63497
63409
  @abstractmethod
63498
63410
  def _timestamp_mappings(self, timestamp_mappings: "scout_video_api_TimestampMappings") -> Any:
63499
63411
  pass
@@ -63719,60 +63631,6 @@ scout_video_api_UpdateIngestStatusRequest.__qualname__ = "UpdateIngestStatusRequ
63719
63631
  scout_video_api_UpdateIngestStatusRequest.__module__ = "nominal_api.scout_video_api"
63720
63632
 
63721
63633
 
63722
- class scout_video_api_UpdateTargetDurationRequest(ConjureBeanType):
63723
-
63724
- @builtins.classmethod
63725
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
63726
- return {
63727
- 'target_duration_seconds': ConjureFieldDefinition('targetDurationSeconds', float)
63728
- }
63729
-
63730
- __slots__: List[str] = ['_target_duration_seconds']
63731
-
63732
- def __init__(self, target_duration_seconds: float) -> None:
63733
- self._target_duration_seconds = target_duration_seconds
63734
-
63735
- @builtins.property
63736
- def target_duration_seconds(self) -> float:
63737
- """
63738
- A value used to construct the HLS playlist which must be greater than or equal to the durations of all
63739
- the segments within a video, when rounded to the nearest integer.
63740
- """
63741
- return self._target_duration_seconds
63742
-
63743
-
63744
- scout_video_api_UpdateTargetDurationRequest.__name__ = "UpdateTargetDurationRequest"
63745
- scout_video_api_UpdateTargetDurationRequest.__qualname__ = "UpdateTargetDurationRequest"
63746
- scout_video_api_UpdateTargetDurationRequest.__module__ = "nominal_api.scout_video_api"
63747
-
63748
-
63749
- class scout_video_api_UpdateTargetDurationResponse(ConjureBeanType):
63750
-
63751
- @builtins.classmethod
63752
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
63753
- return {
63754
- 'target_duration_seconds': ConjureFieldDefinition('targetDurationSeconds', float)
63755
- }
63756
-
63757
- __slots__: List[str] = ['_target_duration_seconds']
63758
-
63759
- def __init__(self, target_duration_seconds: float) -> None:
63760
- self._target_duration_seconds = target_duration_seconds
63761
-
63762
- @builtins.property
63763
- def target_duration_seconds(self) -> float:
63764
- """
63765
- If the video already has a target duration, then the returned target duration will be the max of the one
63766
- sent in the request and the existing target duration.
63767
- """
63768
- return self._target_duration_seconds
63769
-
63770
-
63771
- scout_video_api_UpdateTargetDurationResponse.__name__ = "UpdateTargetDurationResponse"
63772
- scout_video_api_UpdateTargetDurationResponse.__qualname__ = "UpdateTargetDurationResponse"
63773
- scout_video_api_UpdateTargetDurationResponse.__module__ = "nominal_api.scout_video_api"
63774
-
63775
-
63776
63634
  class scout_video_api_UpdateVideoFileRequest(ConjureBeanType):
63777
63635
  """
63778
63636
  Request to update metadata for a given video file.
@@ -64462,28 +64320,19 @@ class scout_video_api_VideoOriginMetadata(ConjureBeanType):
64462
64320
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
64463
64321
  return {
64464
64322
  'video_sources': ConjureFieldDefinition('videoSources', List[api_Handle]),
64465
- 'video_sources_original_handles': ConjureFieldDefinition('videoSourcesOriginalHandles', OptionalTypeWrapper[List[api_Handle]]),
64466
64323
  'timestamp_manifest': ConjureFieldDefinition('timestampManifest', scout_video_api_VideoTimestampManifest)
64467
64324
  }
64468
64325
 
64469
- __slots__: List[str] = ['_video_sources', '_video_sources_original_handles', '_timestamp_manifest']
64326
+ __slots__: List[str] = ['_video_sources', '_timestamp_manifest']
64470
64327
 
64471
- def __init__(self, timestamp_manifest: "scout_video_api_VideoTimestampManifest", video_sources: List["api_Handle"], video_sources_original_handles: Optional[List["api_Handle"]] = None) -> None:
64328
+ def __init__(self, timestamp_manifest: "scout_video_api_VideoTimestampManifest", video_sources: List["api_Handle"]) -> None:
64472
64329
  self._video_sources = video_sources
64473
- self._video_sources_original_handles = video_sources_original_handles
64474
64330
  self._timestamp_manifest = timestamp_manifest
64475
64331
 
64476
64332
  @builtins.property
64477
64333
  def video_sources(self) -> List["api_Handle"]:
64478
64334
  return self._video_sources
64479
64335
 
64480
- @builtins.property
64481
- def video_sources_original_handles(self) -> Optional[List["api_Handle"]]:
64482
- """
64483
- Will be present if the handles were copied from a different bucket to the Nominal bucket.
64484
- """
64485
- return self._video_sources_original_handles
64486
-
64487
64336
  @builtins.property
64488
64337
  def timestamp_manifest(self) -> "scout_video_api_VideoTimestampManifest":
64489
64338
  return self._timestamp_manifest
@@ -44,8 +44,7 @@ from .._impl import (
44
44
  scout_compute_resolved_api_IntersectRangesNode as IntersectRangesNode,
45
45
  scout_compute_resolved_api_LatLongBounds as LatLongBounds,
46
46
  scout_compute_resolved_api_LatLongGeoNode as LatLongGeoNode,
47
- scout_compute_resolved_api_LogFilterRangesNode as LogFilterRangesNode,
48
- scout_compute_resolved_api_LogFilterTransformationSeriesNode as LogFilterTransformationSeriesNode,
47
+ scout_compute_resolved_api_LogFilterSeriesNode as LogFilterSeriesNode,
49
48
  scout_compute_resolved_api_LogSeriesNode as LogSeriesNode,
50
49
  scout_compute_resolved_api_LogSeriesNodeVisitor as LogSeriesNodeVisitor,
51
50
  scout_compute_resolved_api_LogTimeShiftSeriesNode as LogTimeShiftSeriesNode,
@@ -35,8 +35,6 @@ from .._impl import (
35
35
  scout_video_api_UpdateIngestStatus as UpdateIngestStatus,
36
36
  scout_video_api_UpdateIngestStatusRequest as UpdateIngestStatusRequest,
37
37
  scout_video_api_UpdateIngestStatusVisitor as UpdateIngestStatusVisitor,
38
- scout_video_api_UpdateTargetDurationRequest as UpdateTargetDurationRequest,
39
- scout_video_api_UpdateTargetDurationResponse as UpdateTargetDurationResponse,
40
38
  scout_video_api_UpdateVideoFileRequest as UpdateVideoFileRequest,
41
39
  scout_video_api_UpdateVideoMetadataRequest as UpdateVideoMetadataRequest,
42
40
  scout_video_api_Video as Video,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.562.0
3
+ Version: 0.564.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<3,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=1TLCvPEimyozeDy5DJ6-wRu-4T2D4YwrmWAGLgT5I4c,1791
2
- nominal_api/_impl.py,sha256=ZQW60fM5dAmTUoHSQ7IqrANs3eIEgI8oGtSz9RfxsrQ,2756072
1
+ nominal_api/__init__.py,sha256=kwreAf1FaiKqsuZNsffHhrCQbH-dOwIzvW1qeTDG1ks,1791
2
+ nominal_api/_impl.py,sha256=AP22e81O1kPgGpayGBtqKGwsmpQmmqn3SF7NReC89kI,2748358
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
@@ -30,7 +30,7 @@ nominal_api/scout_comparisonrun_api/__init__.py,sha256=1LCXQe64tDqqeMQixW8PI-R_e
30
30
  nominal_api/scout_compute_api/__init__.py,sha256=DGXb6TQbX4DklA6W6rTqPqkU2W5KdmsO1xZBD2MdFXA,17216
31
31
  nominal_api/scout_compute_api_deprecated/__init__.py,sha256=RggSfc6C1VR1-kNXPWybpfw3hZbkQ1gvxEisFZCHdnM,3732
32
32
  nominal_api/scout_compute_representation_api/__init__.py,sha256=FezODo7sI8m6tDhPPK_gZX1qXImi4O3TUprDoNUuWpk,1672
33
- nominal_api/scout_compute_resolved_api/__init__.py,sha256=7o7MZHyvcHyXlonWkLWpMeO13XPa9F8CD02NP3_5rQo,8801
33
+ nominal_api/scout_compute_resolved_api/__init__.py,sha256=-IZ6eqgHGJsK3Z2URCYUlUgoyghlSMT2Ml7xJjmJePs,8698
34
34
  nominal_api/scout_dataexport_api/__init__.py,sha256=pWRQdQJOObD0jITRYLw3AxeDJSrJQqAdFZACxULqA4o,1487
35
35
  nominal_api/scout_datareview_api/__init__.py,sha256=ETAl7VWaxOk8g9uwfsKo573-3qfDNbGQ1_QBQaDPRxk,8405
36
36
  nominal_api/scout_datasource/__init__.py,sha256=1NWMrEx-JOEb4Pmd2oAqcpSmQB3g3lxgxFenWEtcF2M,101
@@ -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=VRcjlc11avwaCLaWHWlqcfDaNmYV0ScyfAsh8Oec47w,3404
55
+ nominal_api/scout_video_api/__init__.py,sha256=ns_kzZuuZPmvsFgMrX7n5xDktmOKw4iBExe7QtuowMA,3242
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.562.0.dist-info/METADATA,sha256=qBnLbNuRU1C3QsMJLhbEgT3Z_CKEClT84uhl_SjZn6o,199
70
- nominal_api-0.562.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
71
- nominal_api-0.562.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
72
- nominal_api-0.562.0.dist-info/RECORD,,
69
+ nominal_api-0.564.0.dist-info/METADATA,sha256=H3JRbvQJNA5YFFmfiwFwXGNWZTRi9ITQxnRbQE3miLQ,199
70
+ nominal_api-0.564.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
71
+ nominal_api-0.564.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
72
+ nominal_api-0.564.0.dist-info/RECORD,,