nominal-api 0.598.3__py3-none-any.whl → 0.600.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
@@ -75,5 +75,5 @@ __all__ = [
75
75
 
76
76
  __conjure_generator_version__ = "4.9.0"
77
77
 
78
- __version__ = "0.598.3"
78
+ __version__ = "0.600.0"
79
79
 
nominal_api/_impl.py CHANGED
@@ -6640,6 +6640,47 @@ ingest_api_CsvOpts.__qualname__ = "CsvOpts"
6640
6640
  ingest_api_CsvOpts.__module__ = "nominal_api.ingest_api"
6641
6641
 
6642
6642
 
6643
+ class ingest_api_CustomOpts(ConjureBeanType):
6644
+
6645
+ @builtins.classmethod
6646
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
6647
+ return {
6648
+ 'sources': ConjureFieldDefinition('sources', Dict[ingest_api_ExtractorInputName, ingest_api_IngestSource]),
6649
+ 'extractor': ConjureFieldDefinition('extractor', str),
6650
+ 'timestamp_metadata': ConjureFieldDefinition('timestampMetadata', OptionalTypeWrapper[ingest_api_TimestampMetadata]),
6651
+ 'target': ConjureFieldDefinition('target', ingest_api_DatasetIngestTarget)
6652
+ }
6653
+
6654
+ __slots__: List[str] = ['_sources', '_extractor', '_timestamp_metadata', '_target']
6655
+
6656
+ def __init__(self, extractor: str, sources: Dict[str, "ingest_api_IngestSource"], target: "ingest_api_DatasetIngestTarget", timestamp_metadata: Optional["ingest_api_TimestampMetadata"] = None) -> None:
6657
+ self._sources = sources
6658
+ self._extractor = extractor
6659
+ self._timestamp_metadata = timestamp_metadata
6660
+ self._target = target
6661
+
6662
+ @builtins.property
6663
+ def sources(self) -> Dict[str, "ingest_api_IngestSource"]:
6664
+ return self._sources
6665
+
6666
+ @builtins.property
6667
+ def extractor(self) -> str:
6668
+ return self._extractor
6669
+
6670
+ @builtins.property
6671
+ def timestamp_metadata(self) -> Optional["ingest_api_TimestampMetadata"]:
6672
+ return self._timestamp_metadata
6673
+
6674
+ @builtins.property
6675
+ def target(self) -> "ingest_api_DatasetIngestTarget":
6676
+ return self._target
6677
+
6678
+
6679
+ ingest_api_CustomOpts.__name__ = "CustomOpts"
6680
+ ingest_api_CustomOpts.__qualname__ = "CustomOpts"
6681
+ ingest_api_CustomOpts.__module__ = "nominal_api.ingest_api"
6682
+
6683
+
6643
6684
  class ingest_api_CustomTimestamp(ConjureBeanType):
6644
6685
 
6645
6686
  @builtins.classmethod
@@ -7497,6 +7538,7 @@ class ingest_api_IngestOptions(ConjureUnionType):
7497
7538
  _journal_json: Optional["ingest_api_JournalJsonOpts"] = None
7498
7539
  _csv: Optional["ingest_api_CsvOpts"] = None
7499
7540
  _video: Optional["ingest_api_VideoOpts"] = None
7541
+ _custom: Optional["ingest_api_CustomOpts"] = None
7500
7542
 
7501
7543
  @builtins.classmethod
7502
7544
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -7505,7 +7547,8 @@ class ingest_api_IngestOptions(ConjureUnionType):
7505
7547
  'mcap_protobuf_timeseries': ConjureFieldDefinition('mcapProtobufTimeseries', ingest_api_McapProtobufTimeseriesOpts),
7506
7548
  'journal_json': ConjureFieldDefinition('journalJson', ingest_api_JournalJsonOpts),
7507
7549
  'csv': ConjureFieldDefinition('csv', ingest_api_CsvOpts),
7508
- 'video': ConjureFieldDefinition('video', ingest_api_VideoOpts)
7550
+ 'video': ConjureFieldDefinition('video', ingest_api_VideoOpts),
7551
+ 'custom': ConjureFieldDefinition('custom', ingest_api_CustomOpts)
7509
7552
  }
7510
7553
 
7511
7554
  def __init__(
@@ -7515,10 +7558,11 @@ class ingest_api_IngestOptions(ConjureUnionType):
7515
7558
  journal_json: Optional["ingest_api_JournalJsonOpts"] = None,
7516
7559
  csv: Optional["ingest_api_CsvOpts"] = None,
7517
7560
  video: Optional["ingest_api_VideoOpts"] = None,
7561
+ custom: Optional["ingest_api_CustomOpts"] = None,
7518
7562
  type_of_union: Optional[str] = None
7519
7563
  ) -> None:
7520
7564
  if type_of_union is None:
7521
- if (dataflash is not None) + (mcap_protobuf_timeseries is not None) + (journal_json is not None) + (csv is not None) + (video is not None) != 1:
7565
+ if (dataflash is not None) + (mcap_protobuf_timeseries is not None) + (journal_json is not None) + (csv is not None) + (video is not None) + (custom is not None) != 1:
7522
7566
  raise ValueError('a union must contain a single member')
7523
7567
 
7524
7568
  if dataflash is not None:
@@ -7536,6 +7580,9 @@ class ingest_api_IngestOptions(ConjureUnionType):
7536
7580
  if video is not None:
7537
7581
  self._video = video
7538
7582
  self._type = 'video'
7583
+ if custom is not None:
7584
+ self._custom = custom
7585
+ self._type = 'custom'
7539
7586
 
7540
7587
  elif type_of_union == 'dataflash':
7541
7588
  if dataflash is None:
@@ -7562,6 +7609,11 @@ class ingest_api_IngestOptions(ConjureUnionType):
7562
7609
  raise ValueError('a union value must not be None')
7563
7610
  self._video = video
7564
7611
  self._type = 'video'
7612
+ elif type_of_union == 'custom':
7613
+ if custom is None:
7614
+ raise ValueError('a union value must not be None')
7615
+ self._custom = custom
7616
+ self._type = 'custom'
7565
7617
 
7566
7618
  @builtins.property
7567
7619
  def dataflash(self) -> Optional["ingest_api_DataflashOpts"]:
@@ -7583,6 +7635,10 @@ class ingest_api_IngestOptions(ConjureUnionType):
7583
7635
  def video(self) -> Optional["ingest_api_VideoOpts"]:
7584
7636
  return self._video
7585
7637
 
7638
+ @builtins.property
7639
+ def custom(self) -> Optional["ingest_api_CustomOpts"]:
7640
+ return self._custom
7641
+
7586
7642
  def accept(self, visitor) -> Any:
7587
7643
  if not isinstance(visitor, ingest_api_IngestOptionsVisitor):
7588
7644
  raise ValueError('{} is not an instance of ingest_api_IngestOptionsVisitor'.format(visitor.__class__.__name__))
@@ -7596,6 +7652,8 @@ class ingest_api_IngestOptions(ConjureUnionType):
7596
7652
  return visitor._csv(self.csv)
7597
7653
  if self._type == 'video' and self.video is not None:
7598
7654
  return visitor._video(self.video)
7655
+ if self._type == 'custom' and self.custom is not None:
7656
+ return visitor._custom(self.custom)
7599
7657
 
7600
7658
 
7601
7659
  ingest_api_IngestOptions.__name__ = "IngestOptions"
@@ -7625,6 +7683,10 @@ class ingest_api_IngestOptionsVisitor:
7625
7683
  def _video(self, video: "ingest_api_VideoOpts") -> Any:
7626
7684
  pass
7627
7685
 
7686
+ @abstractmethod
7687
+ def _custom(self, custom: "ingest_api_CustomOpts") -> Any:
7688
+ pass
7689
+
7628
7690
 
7629
7691
  ingest_api_IngestOptionsVisitor.__name__ = "IngestOptionsVisitor"
7630
7692
  ingest_api_IngestOptionsVisitor.__qualname__ = "IngestOptionsVisitor"
@@ -74338,6 +74400,8 @@ scout_datareview_api_AutomaticCheckEvaluationRid = str
74338
74400
 
74339
74401
  scout_compute_api_ErrorType = str
74340
74402
 
74403
+ ingest_api_ExtractorInputName = str
74404
+
74341
74405
  comments_api_ResourceRid = str
74342
74406
 
74343
74407
  scout_rids_api_FunctionLineageRid = str
@@ -7,6 +7,7 @@ from .._impl import (
7
7
  ingest_api_ChannelPrefix as ChannelPrefix,
8
8
  ingest_api_CompleteMultipartUploadResponse as CompleteMultipartUploadResponse,
9
9
  ingest_api_CsvOpts as CsvOpts,
10
+ ingest_api_CustomOpts as CustomOpts,
10
11
  ingest_api_CustomTimestamp as CustomTimestamp,
11
12
  ingest_api_DataSourceRefName as DataSourceRefName,
12
13
  ingest_api_DataflashOpts as DataflashOpts,
@@ -21,6 +22,7 @@ from .._impl import (
21
22
  ingest_api_EpochTimestamp as EpochTimestamp,
22
23
  ingest_api_ExistingDatasetIngestDestination as ExistingDatasetIngestDestination,
23
24
  ingest_api_ExistingVideoIngestDestination as ExistingVideoIngestDestination,
25
+ ingest_api_ExtractorInputName as ExtractorInputName,
24
26
  ingest_api_GcsIngestSource as GcsIngestSource,
25
27
  ingest_api_IngestDataSource as IngestDataSource,
26
28
  ingest_api_IngestDataSourceVisitor as IngestDataSourceVisitor,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.598.3
3
+ Version: 0.600.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=Tfr7pRzLyX5LCAjdMDKaQI2lHtWCp9fa2Fgu8fbwi-k,1968
2
- nominal_api/_impl.py,sha256=5rDJSSIe4tRKSIjh9Gg2gZBUZZtyLw_IhONl7ecgf2o,2878488
1
+ nominal_api/__init__.py,sha256=Tbbhb2ma7zLNelVoiXpBzvTEfuR2gELqxeyLyoWFfbM,1968
2
+ nominal_api/_impl.py,sha256=dfX1A_qflgpYtnNKt-dI6fQxvfc7YTbQmP4Ef9u2HXI,2881005
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_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
@@ -15,7 +15,7 @@ nominal_api/datasource_logset/__init__.py,sha256=H3fNxqyYC490MwvdWbt5BwhgWQUev7u
15
15
  nominal_api/datasource_logset_api/__init__.py,sha256=JyjO1tQmG-HZ7kYMi8lSfeaaYddBZdCMIyqc0IUJfWo,1006
16
16
  nominal_api/datasource_pagination_api/__init__.py,sha256=3GO8TAUavOe6dUEitOhje74aSZHjTKVI5N1MNuct1lI,212
17
17
  nominal_api/event/__init__.py,sha256=YUhvDFXtyAn08WNd7Xwnybz3PtflvtTcIOaunRS5-1I,836
18
- nominal_api/ingest_api/__init__.py,sha256=U4rA8WoGLgVr8yzWcigZijvOOy13BYYzpz5ium94sp4,5532
18
+ nominal_api/ingest_api/__init__.py,sha256=Dls3tZXO9kHjZJQCbqOAi5IJa5-MZsDJ4c_NDlf7xkg,5630
19
19
  nominal_api/persistent_compute_api/__init__.py,sha256=VX_s0NwfmkpqhTuz31UWw_llM6TW4Gvm2Gs4ljGkE8I,949
20
20
  nominal_api/scout/__init__.py,sha256=ip3XK_9jJKAoFiCifUVMTpDMiUE4mWIdGzMDu7LASus,324
21
21
  nominal_api/scout_api/__init__.py,sha256=biO4DEygbGcLwM6Dg2VuvMra3A5EW6NBjukbIemXoG8,178
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
72
72
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
73
73
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
74
74
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
75
- nominal_api-0.598.3.dist-info/METADATA,sha256=_HRC909sxk3Z7my5tzKXxA3YSoxoPi0jAeAsifS-54o,199
76
- nominal_api-0.598.3.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
77
- nominal_api-0.598.3.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
- nominal_api-0.598.3.dist-info/RECORD,,
75
+ nominal_api-0.600.0.dist-info/METADATA,sha256=M8iQF9ShnIY_IKlrRnSdDsGwVzYLpBt8yLf1P-i7FCE,199
76
+ nominal_api-0.600.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
77
+ nominal_api-0.600.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
+ nominal_api-0.600.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.0.2)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5