nominal-api 0.940.0__py3-none-any.whl → 0.941.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.
nominal_api/__init__.py CHANGED
@@ -81,5 +81,5 @@ __all__ = [
81
81
 
82
82
  __conjure_generator_version__ = "4.17.0"
83
83
 
84
- __version__ = "0.940.0"
84
+ __version__ = "0.941.0"
85
85
 
nominal_api/_impl.py CHANGED
@@ -10940,22 +10940,25 @@ ingest_api_IngestService.__module__ = "nominal_api.ingest_api"
10940
10940
  class ingest_api_IngestSource(ConjureUnionType):
10941
10941
  _s3: Optional["ingest_api_S3IngestSource"] = None
10942
10942
  _gcs: Optional["ingest_api_GcsIngestSource"] = None
10943
+ _presigned_file: Optional["ingest_api_PresignedFileIngestSource"] = None
10943
10944
 
10944
10945
  @builtins.classmethod
10945
10946
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
10946
10947
  return {
10947
10948
  's3': ConjureFieldDefinition('s3', ingest_api_S3IngestSource),
10948
- 'gcs': ConjureFieldDefinition('gcs', ingest_api_GcsIngestSource)
10949
+ 'gcs': ConjureFieldDefinition('gcs', ingest_api_GcsIngestSource),
10950
+ 'presigned_file': ConjureFieldDefinition('presignedFile', ingest_api_PresignedFileIngestSource)
10949
10951
  }
10950
10952
 
10951
10953
  def __init__(
10952
10954
  self,
10953
10955
  s3: Optional["ingest_api_S3IngestSource"] = None,
10954
10956
  gcs: Optional["ingest_api_GcsIngestSource"] = None,
10957
+ presigned_file: Optional["ingest_api_PresignedFileIngestSource"] = None,
10955
10958
  type_of_union: Optional[str] = None
10956
10959
  ) -> None:
10957
10960
  if type_of_union is None:
10958
- if (s3 is not None) + (gcs is not None) != 1:
10961
+ if (s3 is not None) + (gcs is not None) + (presigned_file is not None) != 1:
10959
10962
  raise ValueError('a union must contain a single member')
10960
10963
 
10961
10964
  if s3 is not None:
@@ -10964,6 +10967,9 @@ class ingest_api_IngestSource(ConjureUnionType):
10964
10967
  if gcs is not None:
10965
10968
  self._gcs = gcs
10966
10969
  self._type = 'gcs'
10970
+ if presigned_file is not None:
10971
+ self._presigned_file = presigned_file
10972
+ self._type = 'presignedFile'
10967
10973
 
10968
10974
  elif type_of_union == 's3':
10969
10975
  if s3 is None:
@@ -10975,6 +10981,11 @@ class ingest_api_IngestSource(ConjureUnionType):
10975
10981
  raise ValueError('a union value must not be None')
10976
10982
  self._gcs = gcs
10977
10983
  self._type = 'gcs'
10984
+ elif type_of_union == 'presignedFile':
10985
+ if presigned_file is None:
10986
+ raise ValueError('a union value must not be None')
10987
+ self._presigned_file = presigned_file
10988
+ self._type = 'presignedFile'
10978
10989
 
10979
10990
  @builtins.property
10980
10991
  def s3(self) -> Optional["ingest_api_S3IngestSource"]:
@@ -10984,6 +10995,10 @@ class ingest_api_IngestSource(ConjureUnionType):
10984
10995
  def gcs(self) -> Optional["ingest_api_GcsIngestSource"]:
10985
10996
  return self._gcs
10986
10997
 
10998
+ @builtins.property
10999
+ def presigned_file(self) -> Optional["ingest_api_PresignedFileIngestSource"]:
11000
+ return self._presigned_file
11001
+
10987
11002
  def accept(self, visitor) -> Any:
10988
11003
  if not isinstance(visitor, ingest_api_IngestSourceVisitor):
10989
11004
  raise ValueError('{} is not an instance of ingest_api_IngestSourceVisitor'.format(visitor.__class__.__name__))
@@ -10991,6 +11006,8 @@ class ingest_api_IngestSource(ConjureUnionType):
10991
11006
  return visitor._s3(self.s3)
10992
11007
  if self._type == 'gcs' and self.gcs is not None:
10993
11008
  return visitor._gcs(self.gcs)
11009
+ if self._type == 'presignedFile' and self.presigned_file is not None:
11010
+ return visitor._presigned_file(self.presigned_file)
10994
11011
 
10995
11012
 
10996
11013
  ingest_api_IngestSource.__name__ = "IngestSource"
@@ -11008,6 +11025,10 @@ class ingest_api_IngestSourceVisitor:
11008
11025
  def _gcs(self, gcs: "ingest_api_GcsIngestSource") -> Any:
11009
11026
  pass
11010
11027
 
11028
+ @abstractmethod
11029
+ def _presigned_file(self, presigned_file: "ingest_api_PresignedFileIngestSource") -> Any:
11030
+ pass
11031
+
11011
11032
 
11012
11033
  ingest_api_IngestSourceVisitor.__name__ = "IngestSourceVisitor"
11013
11034
  ingest_api_IngestSourceVisitor.__qualname__ = "IngestSourceVisitor"
@@ -12257,6 +12278,29 @@ ingest_api_PartWithSize.__qualname__ = "PartWithSize"
12257
12278
  ingest_api_PartWithSize.__module__ = "nominal_api.ingest_api"
12258
12279
 
12259
12280
 
12281
+ class ingest_api_PresignedFileIngestSource(ConjureBeanType):
12282
+
12283
+ @builtins.classmethod
12284
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
12285
+ return {
12286
+ 'url': ConjureFieldDefinition('url', str)
12287
+ }
12288
+
12289
+ __slots__: List[str] = ['_url']
12290
+
12291
+ def __init__(self, url: str) -> None:
12292
+ self._url = url
12293
+
12294
+ @builtins.property
12295
+ def url(self) -> str:
12296
+ return self._url
12297
+
12298
+
12299
+ ingest_api_PresignedFileIngestSource.__name__ = "PresignedFileIngestSource"
12300
+ ingest_api_PresignedFileIngestSource.__qualname__ = "PresignedFileIngestSource"
12301
+ ingest_api_PresignedFileIngestSource.__module__ = "nominal_api.ingest_api"
12302
+
12303
+
12260
12304
  class ingest_api_PublicAuthentication(ConjureBeanType):
12261
12305
 
12262
12306
  @builtins.classmethod
@@ -74053,6 +74097,7 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74053
74097
  _notebook_template: Optional[str] = None
74054
74098
  _checklist: Optional[str] = None
74055
74099
  _saved_view: Optional[str] = None
74100
+ _procedure: Optional[str] = None
74056
74101
 
74057
74102
  @builtins.classmethod
74058
74103
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -74062,7 +74107,8 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74062
74107
  'notebook': ConjureFieldDefinition('notebook', scout_rids_api_NotebookRid),
74063
74108
  'notebook_template': ConjureFieldDefinition('notebookTemplate', scout_rids_api_TemplateRid),
74064
74109
  'checklist': ConjureFieldDefinition('checklist', scout_rids_api_ChecklistRid),
74065
- 'saved_view': ConjureFieldDefinition('savedView', scout_rids_api_SavedViewRid)
74110
+ 'saved_view': ConjureFieldDefinition('savedView', scout_rids_api_SavedViewRid),
74111
+ 'procedure': ConjureFieldDefinition('procedure', api_rids_ProcedureRid)
74066
74112
  }
74067
74113
 
74068
74114
  def __init__(
@@ -74073,10 +74119,11 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74073
74119
  notebook_template: Optional[str] = None,
74074
74120
  checklist: Optional[str] = None,
74075
74121
  saved_view: Optional[str] = None,
74122
+ procedure: Optional[str] = None,
74076
74123
  type_of_union: Optional[str] = None
74077
74124
  ) -> None:
74078
74125
  if type_of_union is None:
74079
- if (asset is not None) + (run is not None) + (notebook is not None) + (notebook_template is not None) + (checklist is not None) + (saved_view is not None) != 1:
74126
+ if (asset is not None) + (run is not None) + (notebook is not None) + (notebook_template is not None) + (checklist is not None) + (saved_view is not None) + (procedure is not None) != 1:
74080
74127
  raise ValueError('a union must contain a single member')
74081
74128
 
74082
74129
  if asset is not None:
@@ -74097,6 +74144,9 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74097
74144
  if saved_view is not None:
74098
74145
  self._saved_view = saved_view
74099
74146
  self._type = 'savedView'
74147
+ if procedure is not None:
74148
+ self._procedure = procedure
74149
+ self._type = 'procedure'
74100
74150
 
74101
74151
  elif type_of_union == 'asset':
74102
74152
  if asset is None:
@@ -74128,6 +74178,11 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74128
74178
  raise ValueError('a union value must not be None')
74129
74179
  self._saved_view = saved_view
74130
74180
  self._type = 'savedView'
74181
+ elif type_of_union == 'procedure':
74182
+ if procedure is None:
74183
+ raise ValueError('a union value must not be None')
74184
+ self._procedure = procedure
74185
+ self._type = 'procedure'
74131
74186
 
74132
74187
  @builtins.property
74133
74188
  def asset(self) -> Optional[str]:
@@ -74153,6 +74208,10 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74153
74208
  def saved_view(self) -> Optional[str]:
74154
74209
  return self._saved_view
74155
74210
 
74211
+ @builtins.property
74212
+ def procedure(self) -> Optional[str]:
74213
+ return self._procedure
74214
+
74156
74215
  def accept(self, visitor) -> Any:
74157
74216
  if not isinstance(visitor, scout_favorites_api_FavoriteResourceVisitor):
74158
74217
  raise ValueError('{} is not an instance of scout_favorites_api_FavoriteResourceVisitor'.format(visitor.__class__.__name__))
@@ -74168,6 +74227,8 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
74168
74227
  return visitor._checklist(self.checklist)
74169
74228
  if self._type == 'savedView' and self.saved_view is not None:
74170
74229
  return visitor._saved_view(self.saved_view)
74230
+ if self._type == 'procedure' and self.procedure is not None:
74231
+ return visitor._procedure(self.procedure)
74171
74232
 
74172
74233
 
74173
74234
  scout_favorites_api_FavoriteResource.__name__ = "FavoriteResource"
@@ -74201,6 +74262,10 @@ class scout_favorites_api_FavoriteResourceVisitor:
74201
74262
  def _saved_view(self, saved_view: str) -> Any:
74202
74263
  pass
74203
74264
 
74265
+ @abstractmethod
74266
+ def _procedure(self, procedure: str) -> Any:
74267
+ pass
74268
+
74204
74269
 
74205
74270
  scout_favorites_api_FavoriteResourceVisitor.__name__ = "FavoriteResourceVisitor"
74206
74271
  scout_favorites_api_FavoriteResourceVisitor.__qualname__ = "FavoriteResourceVisitor"
@@ -74244,6 +74309,8 @@ class scout_favorites_api_ResourceType(ConjureEnumType):
74244
74309
  '''CHECKLIST'''
74245
74310
  SAVED_VIEW = 'SAVED_VIEW'
74246
74311
  '''SAVED_VIEW'''
74312
+ PROCEDURE = 'PROCEDURE'
74313
+ '''PROCEDURE'''
74247
74314
  UNKNOWN = 'UNKNOWN'
74248
74315
  '''UNKNOWN'''
74249
74316
 
@@ -96,6 +96,7 @@ from .._impl import (
96
96
  ingest_api_ParquetOpts as ParquetOpts,
97
97
  ingest_api_Part as Part,
98
98
  ingest_api_PartWithSize as PartWithSize,
99
+ ingest_api_PresignedFileIngestSource as PresignedFileIngestSource,
99
100
  ingest_api_PublicAuthentication as PublicAuthentication,
100
101
  ingest_api_RegisterContainerizedExtractorRequest as RegisterContainerizedExtractorRequest,
101
102
  ingest_api_RegisterContainerizedExtractorResponse as RegisterContainerizedExtractorResponse,
@@ -224,6 +225,7 @@ __all__ = [
224
225
  'ParquetOpts',
225
226
  'Part',
226
227
  'PartWithSize',
228
+ 'PresignedFileIngestSource',
227
229
  'PublicAuthentication',
228
230
  'RegisterContainerizedExtractorRequest',
229
231
  'RegisterContainerizedExtractorResponse',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.940.0
3
+ Version: 0.941.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<4,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=FKQEV9X7Ahb741z3UR1Pi6wZ_3xtQR3GYrElbMVFf0s,2088
2
- nominal_api/_impl.py,sha256=GyeM0MXEhmxZXc_brk8UCs7tgJ98F_yRldiDGRxRZek,3801719
1
+ nominal_api/__init__.py,sha256=azrRFvfkFMEPKiFVkV7E773Y9bAQ_GYoOq67v2rxM_0,2088
2
+ nominal_api/_impl.py,sha256=Z7q6RGi8lUUi38CqYnJwnA33rX-HII5bV7KETIu6b3g,3804349
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=GqRLE9wwPPQgALVHFJViG8E4JJ2t3yfHedeXRLu1L70,2226
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -15,7 +15,7 @@ nominal_api/datasource_logset/__init__.py,sha256=SGt5PmLgYpLfhcoESk69aVufuZugg8d
15
15
  nominal_api/datasource_logset_api/__init__.py,sha256=QydoWxNXCVgIV8HWnZAKA77N5G6mTSqSzGkj36tPe4U,1376
16
16
  nominal_api/datasource_pagination_api/__init__.py,sha256=WeENj6yqi2XfInU8YgjFwqwiR8L0jDHCBZfucJ0ahyY,283
17
17
  nominal_api/event/__init__.py,sha256=_aeR1gPrNTKTqgZ5qh-WmRNNDVjwhKdFfzIwV7LA5Gs,3343
18
- nominal_api/ingest_api/__init__.py,sha256=vsWWyhq_CVn8_WeLYIC1yV6xTxw7KcaCuGG8R6NMn_U,11052
18
+ nominal_api/ingest_api/__init__.py,sha256=OZ1xKwsMx_IeFKrVnwYky9sWMymeYrEAHW62cVE_tqo,11156
19
19
  nominal_api/ingest_workflow_api/__init__.py,sha256=pNfJTaKs2pcnt2p5uRJAOmLia5nx8TiFLk8sSAlSI2I,3055
20
20
  nominal_api/module/__init__.py,sha256=0WDeegesyYu_XyFvPJZz8ZdXdTJRJxivU0KEhq8J6ww,4631
21
21
  nominal_api/module_internal/__init__.py,sha256=8bVJ_pfUQ2ZONdAVEJW6hLNABpf6JvEHGgvrS9XHK98,1128
@@ -78,7 +78,7 @@ nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrR
78
78
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=i21vITWBn-6ruVuFZg491TDpx6WcIhJBoF3oNw3w338,1186
79
79
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
80
80
  nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
81
- nominal_api-0.940.0.dist-info/METADATA,sha256=lwUSEyBKD0Oe7HqbJk0hVYPRDB-nqss5bDBp7XJIXxM,199
82
- nominal_api-0.940.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- nominal_api-0.940.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
- nominal_api-0.940.0.dist-info/RECORD,,
81
+ nominal_api-0.941.0.dist-info/METADATA,sha256=tjsw6UWrerHNO4kl8v5i5L3Ia1eZAEPI6xwj0oIMvMI,199
82
+ nominal_api-0.941.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ nominal_api-0.941.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
+ nominal_api-0.941.0.dist-info/RECORD,,