nominal-api 0.832.1__py3-none-any.whl → 0.833.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
@@ -80,5 +80,5 @@ __all__ = [
80
80
 
81
81
  __conjure_generator_version__ = "4.17.0"
82
82
 
83
- __version__ = "0.832.1"
83
+ __version__ = "0.833.0"
84
84
 
nominal_api/_impl.py CHANGED
@@ -9880,6 +9880,65 @@ ingest_api_IngestDetailsVisitor.__qualname__ = "IngestDetailsVisitor"
9880
9880
  ingest_api_IngestDetailsVisitor.__module__ = "nominal_api.ingest_api"
9881
9881
 
9882
9882
 
9883
+ class ingest_api_IngestJob(ConjureBeanType):
9884
+
9885
+ @builtins.classmethod
9886
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
9887
+ return {
9888
+ 'ingest_job_rid': ConjureFieldDefinition('ingestJobRid', ingest_api_IngestJobRid),
9889
+ 'status': ConjureFieldDefinition('status', ingest_api_IngestJobStatus),
9890
+ 'ingest_job_request': ConjureFieldDefinition('ingestJobRequest', ingest_api_IngestJobRequest),
9891
+ 'origin_files': ConjureFieldDefinition('originFiles', OptionalTypeWrapper[List[str]]),
9892
+ 'created_by': ConjureFieldDefinition('createdBy', str),
9893
+ 'org_uuid': ConjureFieldDefinition('orgUuid', str),
9894
+ 'ingest_type': ConjureFieldDefinition('ingestType', ingest_api_IngestType)
9895
+ }
9896
+
9897
+ __slots__: List[str] = ['_ingest_job_rid', '_status', '_ingest_job_request', '_origin_files', '_created_by', '_org_uuid', '_ingest_type']
9898
+
9899
+ def __init__(self, created_by: str, ingest_job_request: "ingest_api_IngestJobRequest", ingest_job_rid: str, ingest_type: "ingest_api_IngestType", org_uuid: str, status: "ingest_api_IngestJobStatus", origin_files: Optional[List[str]] = None) -> None:
9900
+ self._ingest_job_rid = ingest_job_rid
9901
+ self._status = status
9902
+ self._ingest_job_request = ingest_job_request
9903
+ self._origin_files = origin_files
9904
+ self._created_by = created_by
9905
+ self._org_uuid = org_uuid
9906
+ self._ingest_type = ingest_type
9907
+
9908
+ @builtins.property
9909
+ def ingest_job_rid(self) -> str:
9910
+ return self._ingest_job_rid
9911
+
9912
+ @builtins.property
9913
+ def status(self) -> "ingest_api_IngestJobStatus":
9914
+ return self._status
9915
+
9916
+ @builtins.property
9917
+ def ingest_job_request(self) -> "ingest_api_IngestJobRequest":
9918
+ return self._ingest_job_request
9919
+
9920
+ @builtins.property
9921
+ def origin_files(self) -> Optional[List[str]]:
9922
+ return self._origin_files
9923
+
9924
+ @builtins.property
9925
+ def created_by(self) -> str:
9926
+ return self._created_by
9927
+
9928
+ @builtins.property
9929
+ def org_uuid(self) -> str:
9930
+ return self._org_uuid
9931
+
9932
+ @builtins.property
9933
+ def ingest_type(self) -> "ingest_api_IngestType":
9934
+ return self._ingest_type
9935
+
9936
+
9937
+ ingest_api_IngestJob.__name__ = "IngestJob"
9938
+ ingest_api_IngestJob.__qualname__ = "IngestJob"
9939
+ ingest_api_IngestJob.__module__ = "nominal_api.ingest_api"
9940
+
9941
+
9883
9942
  class ingest_api_IngestJobRequest(ConjureUnionType):
9884
9943
  _ingest_mcap: Optional["ingest_api_IngestMcapRequest"] = None
9885
9944
  _trigger_file_ingest: Optional["ingest_api_TriggerFileIngest"] = None
@@ -9999,6 +10058,32 @@ ingest_api_IngestJobRequestVisitor.__qualname__ = "IngestJobRequestVisitor"
9999
10058
  ingest_api_IngestJobRequestVisitor.__module__ = "nominal_api.ingest_api"
10000
10059
 
10001
10060
 
10061
+ class ingest_api_IngestJobStatus(ConjureEnumType):
10062
+
10063
+ SUBMITTED = 'SUBMITTED'
10064
+ '''SUBMITTED'''
10065
+ QUEUED = 'QUEUED'
10066
+ '''QUEUED'''
10067
+ IN_PROGRESS = 'IN_PROGRESS'
10068
+ '''IN_PROGRESS'''
10069
+ COMPLETED = 'COMPLETED'
10070
+ '''COMPLETED'''
10071
+ FAILED = 'FAILED'
10072
+ '''FAILED'''
10073
+ CANCELLED = 'CANCELLED'
10074
+ '''CANCELLED'''
10075
+ UNKNOWN = 'UNKNOWN'
10076
+ '''UNKNOWN'''
10077
+
10078
+ def __reduce_ex__(self, proto):
10079
+ return self.__class__, (self.name,)
10080
+
10081
+
10082
+ ingest_api_IngestJobStatus.__name__ = "IngestJobStatus"
10083
+ ingest_api_IngestJobStatus.__qualname__ = "IngestJobStatus"
10084
+ ingest_api_IngestJobStatus.__module__ = "nominal_api.ingest_api"
10085
+
10086
+
10002
10087
  class ingest_api_IngestMcapRequest(ConjureBeanType):
10003
10088
 
10004
10089
  @builtins.classmethod
@@ -11060,6 +11145,34 @@ ingest_api_IngestStatus.__qualname__ = "IngestStatus"
11060
11145
  ingest_api_IngestStatus.__module__ = "nominal_api.ingest_api"
11061
11146
 
11062
11147
 
11148
+ class ingest_api_IngestType(ConjureEnumType):
11149
+
11150
+ TABULAR = 'TABULAR'
11151
+ '''TABULAR'''
11152
+ MCAP = 'MCAP'
11153
+ '''MCAP'''
11154
+ DATAFLASH = 'DATAFLASH'
11155
+ '''DATAFLASH'''
11156
+ JOURNAL_JSON = 'JOURNAL_JSON'
11157
+ '''JOURNAL_JSON'''
11158
+ CONTAINERIZED = 'CONTAINERIZED'
11159
+ '''CONTAINERIZED'''
11160
+ VIDEO = 'VIDEO'
11161
+ '''VIDEO'''
11162
+ AVRO_STREAM = 'AVRO_STREAM'
11163
+ '''AVRO_STREAM'''
11164
+ UNKNOWN = 'UNKNOWN'
11165
+ '''UNKNOWN'''
11166
+
11167
+ def __reduce_ex__(self, proto):
11168
+ return self.__class__, (self.name,)
11169
+
11170
+
11171
+ ingest_api_IngestType.__name__ = "IngestType"
11172
+ ingest_api_IngestType.__qualname__ = "IngestType"
11173
+ ingest_api_IngestType.__module__ = "nominal_api.ingest_api"
11174
+
11175
+
11063
11176
  class ingest_api_IngestVideoFileDetails(ConjureBeanType):
11064
11177
 
11065
11178
  @builtins.classmethod
@@ -14078,6 +14191,79 @@ ingest_workflow_api_IngestDataflashResponse.__qualname__ = "IngestDataflashRespo
14078
14191
  ingest_workflow_api_IngestDataflashResponse.__module__ = "nominal_api.ingest_workflow_api"
14079
14192
 
14080
14193
 
14194
+ class ingest_workflow_api_IngestInternalService(Service):
14195
+
14196
+ def get_ingest_job(self, auth_header: str, ingest_job_rid: str) -> "ingest_api_IngestJob":
14197
+ """Returns a single ingest job by RID.
14198
+ """
14199
+ _conjure_encoder = ConjureEncoder()
14200
+
14201
+ _headers: Dict[str, Any] = {
14202
+ 'Accept': 'application/json',
14203
+ 'Authorization': auth_header,
14204
+ }
14205
+
14206
+ _params: Dict[str, Any] = {
14207
+ }
14208
+
14209
+ _path_params: Dict[str, str] = {
14210
+ 'ingestJobRid': quote(str(_conjure_encoder.default(ingest_job_rid)), safe=''),
14211
+ }
14212
+
14213
+ _json: Any = None
14214
+
14215
+ _path = '/internal/ingest/v1/ingest-job/{ingestJobRid}'
14216
+ _path = _path.format(**_path_params)
14217
+
14218
+ _response: Response = self._request(
14219
+ 'GET',
14220
+ self._uri + _path,
14221
+ params=_params,
14222
+ headers=_headers,
14223
+ json=_json)
14224
+
14225
+ _decoder = ConjureDecoder()
14226
+ return _decoder.decode(_response.json(), ingest_api_IngestJob, self._return_none_for_unknown_union_types)
14227
+
14228
+ def update_ingest_job_status(self, auth_header: str, ingest_job_rid: str, status: "ingest_api_IngestJobStatus") -> "ingest_api_IngestJobStatus":
14229
+ """Updates the status of an ingest job.
14230
+ """
14231
+ _conjure_encoder = ConjureEncoder()
14232
+
14233
+ _headers: Dict[str, Any] = {
14234
+ 'Accept': 'application/json',
14235
+ 'Content-Type': 'application/json',
14236
+ 'Authorization': auth_header,
14237
+ }
14238
+
14239
+ _params: Dict[str, Any] = {
14240
+ }
14241
+
14242
+ _path_params: Dict[str, str] = {
14243
+ 'ingestJobRid': quote(str(_conjure_encoder.default(ingest_job_rid)), safe=''),
14244
+ }
14245
+
14246
+ _json: Any = _conjure_encoder.default(status)
14247
+
14248
+ _path = '/internal/ingest/v1/ingest-job/{ingestJobRid}/status'
14249
+ _path = _path.format(**_path_params)
14250
+
14251
+ _response: Response = self._request(
14252
+ 'PUT',
14253
+ self._uri + _path,
14254
+ params=_params,
14255
+ headers=_headers,
14256
+ json=_json)
14257
+
14258
+ _decoder = ConjureDecoder()
14259
+ return _decoder.decode(_response.json(), ingest_api_IngestJobStatus, self._return_none_for_unknown_union_types)
14260
+
14261
+
14262
+ ingest_workflow_api_IngestInternalService.__name__ = "IngestInternalService"
14263
+ ingest_workflow_api_IngestInternalService.__qualname__ = "IngestInternalService"
14264
+ ingest_workflow_api_IngestInternalService.__module__ = "nominal_api.ingest_workflow_api"
14265
+
14266
+
14081
14267
  class ingest_workflow_api_IngestMcapProtobufRequest(ConjureBeanType):
14082
14268
 
14083
14269
  @builtins.classmethod
@@ -69152,15 +69338,13 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
69152
69338
  _bucket: Optional["api_Empty"] = None
69153
69339
  _measurement: Optional["api_Empty"] = None
69154
69340
  _field: Optional["api_Empty"] = None
69155
- _tag_value: Optional[str] = None
69156
69341
 
69157
69342
  @builtins.classmethod
69158
69343
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
69159
69344
  return {
69160
69345
  'bucket': ConjureFieldDefinition('bucket', api_Empty),
69161
69346
  'measurement': ConjureFieldDefinition('measurement', api_Empty),
69162
- 'field': ConjureFieldDefinition('field', api_Empty),
69163
- 'tag_value': ConjureFieldDefinition('tagValue', api_TagName)
69347
+ 'field': ConjureFieldDefinition('field', api_Empty)
69164
69348
  }
69165
69349
 
69166
69350
  def __init__(
@@ -69168,11 +69352,10 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
69168
69352
  bucket: Optional["api_Empty"] = None,
69169
69353
  measurement: Optional["api_Empty"] = None,
69170
69354
  field: Optional["api_Empty"] = None,
69171
- tag_value: Optional[str] = None,
69172
69355
  type_of_union: Optional[str] = None
69173
69356
  ) -> None:
69174
69357
  if type_of_union is None:
69175
- if (bucket is not None) + (measurement is not None) + (field is not None) + (tag_value is not None) != 1:
69358
+ if (bucket is not None) + (measurement is not None) + (field is not None) != 1:
69176
69359
  raise ValueError('a union must contain a single member')
69177
69360
 
69178
69361
  if bucket is not None:
@@ -69184,9 +69367,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
69184
69367
  if field is not None:
69185
69368
  self._field = field
69186
69369
  self._type = 'field'
69187
- if tag_value is not None:
69188
- self._tag_value = tag_value
69189
- self._type = 'tagValue'
69190
69370
 
69191
69371
  elif type_of_union == 'bucket':
69192
69372
  if bucket is None:
@@ -69203,11 +69383,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
69203
69383
  raise ValueError('a union value must not be None')
69204
69384
  self._field = field
69205
69385
  self._type = 'field'
69206
- elif type_of_union == 'tagValue':
69207
- if tag_value is None:
69208
- raise ValueError('a union value must not be None')
69209
- self._tag_value = tag_value
69210
- self._type = 'tagValue'
69211
69386
 
69212
69387
  @builtins.property
69213
69388
  def bucket(self) -> Optional["api_Empty"]:
@@ -69221,12 +69396,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
69221
69396
  def field(self) -> Optional["api_Empty"]:
69222
69397
  return self._field
69223
69398
 
69224
- @builtins.property
69225
- def tag_value(self) -> Optional[str]:
69226
- """The value for the specified TagName will be used. If the tag is not present, it will be omitted.
69227
- """
69228
- return self._tag_value
69229
-
69230
69399
  def accept(self, visitor) -> Any:
69231
69400
  if not isinstance(visitor, scout_datasource_connection_api_InfluxChannelNameComponentVisitor):
69232
69401
  raise ValueError('{} is not an instance of scout_datasource_connection_api_InfluxChannelNameComponentVisitor'.format(visitor.__class__.__name__))
@@ -69236,8 +69405,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
69236
69405
  return visitor._measurement(self.measurement)
69237
69406
  if self._type == 'field' and self.field is not None:
69238
69407
  return visitor._field(self.field)
69239
- if self._type == 'tagValue' and self.tag_value is not None:
69240
- return visitor._tag_value(self.tag_value)
69241
69408
 
69242
69409
 
69243
69410
  scout_datasource_connection_api_InfluxChannelNameComponent.__name__ = "InfluxChannelNameComponent"
@@ -69259,10 +69426,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponentVisitor:
69259
69426
  def _field(self, field: "api_Empty") -> Any:
69260
69427
  pass
69261
69428
 
69262
- @abstractmethod
69263
- def _tag_value(self, tag_value: str) -> Any:
69264
- pass
69265
-
69266
69429
 
69267
69430
  scout_datasource_connection_api_InfluxChannelNameComponentVisitor.__name__ = "InfluxChannelNameComponentVisitor"
69268
69431
  scout_datasource_connection_api_InfluxChannelNameComponentVisitor.__qualname__ = "InfluxChannelNameComponentVisitor"
@@ -45,9 +45,11 @@ from .._impl import (
45
45
  ingest_api_IngestDestinationVisitor as IngestDestinationVisitor,
46
46
  ingest_api_IngestDetails as IngestDetails,
47
47
  ingest_api_IngestDetailsVisitor as IngestDetailsVisitor,
48
+ ingest_api_IngestJob as IngestJob,
48
49
  ingest_api_IngestJobRequest as IngestJobRequest,
49
50
  ingest_api_IngestJobRequestVisitor as IngestJobRequestVisitor,
50
51
  ingest_api_IngestJobRid as IngestJobRid,
52
+ ingest_api_IngestJobStatus as IngestJobStatus,
51
53
  ingest_api_IngestMcapRequest as IngestMcapRequest,
52
54
  ingest_api_IngestMcapResponse as IngestMcapResponse,
53
55
  ingest_api_IngestMetadata as IngestMetadata,
@@ -64,6 +66,7 @@ from .._impl import (
64
66
  ingest_api_IngestSourceMetadata as IngestSourceMetadata,
65
67
  ingest_api_IngestSourceVisitor as IngestSourceVisitor,
66
68
  ingest_api_IngestStatus as IngestStatus,
69
+ ingest_api_IngestType as IngestType,
67
70
  ingest_api_IngestVideoFileDetails as IngestVideoFileDetails,
68
71
  ingest_api_IngestVideoRequest as IngestVideoRequest,
69
72
  ingest_api_IngestVideoResponse as IngestVideoResponse,
@@ -176,9 +179,11 @@ __all__ = [
176
179
  'IngestDestinationVisitor',
177
180
  'IngestDetails',
178
181
  'IngestDetailsVisitor',
182
+ 'IngestJob',
179
183
  'IngestJobRequest',
180
184
  'IngestJobRequestVisitor',
181
185
  'IngestJobRid',
186
+ 'IngestJobStatus',
182
187
  'IngestMcapRequest',
183
188
  'IngestMcapResponse',
184
189
  'IngestMetadata',
@@ -194,6 +199,7 @@ __all__ = [
194
199
  'IngestSourceVisitor',
195
200
  'IngestSourceMetadata',
196
201
  'IngestStatus',
202
+ 'IngestType',
197
203
  'IngestVideoFileDetails',
198
204
  'IngestVideoRequest',
199
205
  'IngestVideoResponse',
@@ -15,6 +15,7 @@ from .._impl import (
15
15
  ingest_workflow_api_GetExtractorJobStateResponse as GetExtractorJobStateResponse,
16
16
  ingest_workflow_api_IngestDataflashRequest as IngestDataflashRequest,
17
17
  ingest_workflow_api_IngestDataflashResponse as IngestDataflashResponse,
18
+ ingest_workflow_api_IngestInternalService as IngestInternalService,
18
19
  ingest_workflow_api_IngestMcapProtobufRequest as IngestMcapProtobufRequest,
19
20
  ingest_workflow_api_IngestMcapProtobufResponse as IngestMcapProtobufResponse,
20
21
  ingest_workflow_api_McapProtoChannels as McapProtoChannels,
@@ -55,5 +56,6 @@ __all__ = [
55
56
  'PresignedUrl',
56
57
  'TimeUnitSeconds',
57
58
  'ValidatedFileInput',
59
+ 'IngestInternalService',
58
60
  ]
59
61
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.832.1
3
+ Version: 0.833.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=vjVrrd0hLaEYiI3k6UJ2Wf6v4g6ynd7_femau6l_EBk,2064
2
- nominal_api/_impl.py,sha256=hin5AkzGVll9B8sGVlvaPDEjCUw2jaouGZagqROrXkY,3623200
1
+ nominal_api/__init__.py,sha256=2KAWoonWOswsDbcRwY8OzelJJuWvaG-Cp9oHz6OTtks,2064
2
+ nominal_api/_impl.py,sha256=8NrOJdc9z5cUkPOUF_WFR4o-oEVS_PBGecuhRlwJJpA,3628305
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=ZiGjcYwIBCrZR5pPqyqX2ggRJmVcSlOCazMtF2xCZzw,2171
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -15,8 +15,8 @@ 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=kXgNJmtAyPqinPrDRt-fMG7SD2DhRdyufzwKUpdhVrU,3028
18
- nominal_api/ingest_api/__init__.py,sha256=vkOFk6X2S4jpv0FBwsT9JpaK7Hb7lk9nkMNwcTi4zTw,11266
19
- nominal_api/ingest_workflow_api/__init__.py,sha256=lTCb7s4VCrpur0TDpTy_EDvUdHJ4UKqcTv8MYiEeeko,2954
18
+ nominal_api/ingest_api/__init__.py,sha256=AC96BjSf9nNo8pfwvvGbZXTyTvVuhBVpuyDbhOys6MU,11455
19
+ nominal_api/ingest_workflow_api/__init__.py,sha256=pNfJTaKs2pcnt2p5uRJAOmLia5nx8TiFLk8sSAlSI2I,3055
20
20
  nominal_api/module/__init__.py,sha256=IouRrNUGOZ8QafmhhusUQFjJMwqFaqkJoREgvtEcG5E,4855
21
21
  nominal_api/module_internal/__init__.py,sha256=8bVJ_pfUQ2ZONdAVEJW6hLNABpf6JvEHGgvrS9XHK98,1128
22
22
  nominal_api/modules_api/__init__.py,sha256=686IO0NDXIYDX1mJkE7YBwqYOTayga6JYs1AZzO_lRQ,202
@@ -77,7 +77,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
77
77
  nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
78
78
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
79
79
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
80
- nominal_api-0.832.1.dist-info/METADATA,sha256=zp9yaQSPwddpfpXe1FyseIkWXTJVvjXMOj6_xVCRiqg,199
81
- nominal_api-0.832.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
82
- nominal_api-0.832.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
83
- nominal_api-0.832.1.dist-info/RECORD,,
80
+ nominal_api-0.833.0.dist-info/METADATA,sha256=Ekk2PvjjxUImJgwAo2yyQ0c4pZViRbOeYo0jVVRXxUk,199
81
+ nominal_api-0.833.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
82
+ nominal_api-0.833.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
83
+ nominal_api-0.833.0.dist-info/RECORD,,