nominal-api 0.564.1__py3-none-any.whl → 0.565.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.564.1"
72
+ __version__ = "0.565.0"
73
73
 
nominal_api/_impl.py CHANGED
@@ -61811,41 +61811,6 @@ class scout_video_VideoSegmentService(Service):
61811
61811
  at the segment-level.
61812
61812
  """
61813
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
-
61849
61814
  def create_segments(self, auth_header: str, request: "scout_video_api_CreateSegmentsRequest", video_rid: str) -> "scout_video_api_CreateSegmentsResponse":
61850
61815
 
61851
61816
  _headers: Dict[str, Any] = {
@@ -63361,48 +63326,33 @@ class scout_video_api_SegmentTimestamps(ConjureUnionType):
63361
63326
  be frame-mapped. Without a frame-timestamp mapping manifest file, a list of absolute timestamps will be
63362
63327
  automatically assigned to each segment based on media timestamps.. Otherwise, media timestamps will be
63363
63328
  extracted and mapped to those in the provided manifest."""
63364
- _timestamps: Optional[List["api_Timestamp"]] = None
63365
63329
  _timestamp_mappings: Optional["scout_video_api_TimestampMappings"] = None
63366
63330
 
63367
63331
  @builtins.classmethod
63368
63332
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
63369
63333
  return {
63370
- 'timestamps': ConjureFieldDefinition('timestamps', List[api_Timestamp]),
63371
63334
  'timestamp_mappings': ConjureFieldDefinition('timestampMappings', scout_video_api_TimestampMappings)
63372
63335
  }
63373
63336
 
63374
63337
  def __init__(
63375
63338
  self,
63376
- timestamps: Optional[List["api_Timestamp"]] = None,
63377
63339
  timestamp_mappings: Optional["scout_video_api_TimestampMappings"] = None,
63378
63340
  type_of_union: Optional[str] = None
63379
63341
  ) -> None:
63380
63342
  if type_of_union is None:
63381
- if (timestamps is not None) + (timestamp_mappings is not None) != 1:
63343
+ if (timestamp_mappings is not None) != 1:
63382
63344
  raise ValueError('a union must contain a single member')
63383
63345
 
63384
- if timestamps is not None:
63385
- self._timestamps = timestamps
63386
- self._type = 'timestamps'
63387
63346
  if timestamp_mappings is not None:
63388
63347
  self._timestamp_mappings = timestamp_mappings
63389
63348
  self._type = 'timestampMappings'
63390
63349
 
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'
63396
63350
  elif type_of_union == 'timestampMappings':
63397
63351
  if timestamp_mappings is None:
63398
63352
  raise ValueError('a union value must not be None')
63399
63353
  self._timestamp_mappings = timestamp_mappings
63400
63354
  self._type = 'timestampMappings'
63401
63355
 
63402
- @builtins.property
63403
- def timestamps(self) -> Optional[List["api_Timestamp"]]:
63404
- return self._timestamps
63405
-
63406
63356
  @builtins.property
63407
63357
  def timestamp_mappings(self) -> Optional["scout_video_api_TimestampMappings"]:
63408
63358
  return self._timestamp_mappings
@@ -63410,8 +63360,6 @@ extracted and mapped to those in the provided manifest."""
63410
63360
  def accept(self, visitor) -> Any:
63411
63361
  if not isinstance(visitor, scout_video_api_SegmentTimestampsVisitor):
63412
63362
  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)
63415
63363
  if self._type == 'timestampMappings' and self.timestamp_mappings is not None:
63416
63364
  return visitor._timestamp_mappings(self.timestamp_mappings)
63417
63365
 
@@ -63423,10 +63371,6 @@ scout_video_api_SegmentTimestamps.__module__ = "nominal_api.scout_video_api"
63423
63371
 
63424
63372
  class scout_video_api_SegmentTimestampsVisitor:
63425
63373
 
63426
- @abstractmethod
63427
- def _timestamps(self, timestamps: List["api_Timestamp"]) -> Any:
63428
- pass
63429
-
63430
63374
  @abstractmethod
63431
63375
  def _timestamp_mappings(self, timestamp_mappings: "scout_video_api_TimestampMappings") -> Any:
63432
63376
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.564.1
3
+ Version: 0.565.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=0mlkw5OV5BapyHOPhMOi0dbf-XifTaifctw2GXKrScs,1791
2
- nominal_api/_impl.py,sha256=NiLnyHWjOcsSZQwyQIi3vHE2eU7iriQ6V_0N2GQwuPw,2749290
1
+ nominal_api/__init__.py,sha256=H4_X4MxACIUBZj_trRWYbwRDKMWrdUWMeyLpTRdgr_0,1791
2
+ nominal_api/_impl.py,sha256=F9QB8jDxmNaWtHDn9fLu5yiBykyNKzsKBC44mViZNKo,2747399
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.1.dist-info/METADATA,sha256=i0ssG0AZre1AkCrJehLumFk4lIpmgidmA3aB71w95nE,199
70
- nominal_api-0.564.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
71
- nominal_api-0.564.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
72
- nominal_api-0.564.1.dist-info/RECORD,,
69
+ nominal_api-0.565.0.dist-info/METADATA,sha256=r-shoEttfWSTjIU6iwn4VhmrK6OF9ioboOb4bzLkA40,199
70
+ nominal_api-0.565.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
71
+ nominal_api-0.565.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
72
+ nominal_api-0.565.0.dist-info/RECORD,,