nominal-api 0.650.0__py3-none-any.whl → 0.651.1__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.650.0"
78
+ __version__ = "0.651.1"
79
79
 
nominal_api/_impl.py CHANGED
@@ -5493,6 +5493,52 @@ event_ArchiveEvent.__qualname__ = "ArchiveEvent"
5493
5493
  event_ArchiveEvent.__module__ = "nominal_api.event"
5494
5494
 
5495
5495
 
5496
+ class event_BatchUpdateDispositionRequest(ConjureBeanType):
5497
+
5498
+ @builtins.classmethod
5499
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
5500
+ return {
5501
+ 'requests': ConjureFieldDefinition('requests', List[event_UpdateDispositionRequest])
5502
+ }
5503
+
5504
+ __slots__: List[str] = ['_requests']
5505
+
5506
+ def __init__(self, requests: List["event_UpdateDispositionRequest"]) -> None:
5507
+ self._requests = requests
5508
+
5509
+ @builtins.property
5510
+ def requests(self) -> List["event_UpdateDispositionRequest"]:
5511
+ return self._requests
5512
+
5513
+
5514
+ event_BatchUpdateDispositionRequest.__name__ = "BatchUpdateDispositionRequest"
5515
+ event_BatchUpdateDispositionRequest.__qualname__ = "BatchUpdateDispositionRequest"
5516
+ event_BatchUpdateDispositionRequest.__module__ = "nominal_api.event"
5517
+
5518
+
5519
+ class event_BatchUpdateDispositionResponse(ConjureBeanType):
5520
+
5521
+ @builtins.classmethod
5522
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
5523
+ return {
5524
+ 'events': ConjureFieldDefinition('events', List[event_Event])
5525
+ }
5526
+
5527
+ __slots__: List[str] = ['_events']
5528
+
5529
+ def __init__(self, events: List["event_Event"]) -> None:
5530
+ self._events = events
5531
+
5532
+ @builtins.property
5533
+ def events(self) -> List["event_Event"]:
5534
+ return self._events
5535
+
5536
+
5537
+ event_BatchUpdateDispositionResponse.__name__ = "BatchUpdateDispositionResponse"
5538
+ event_BatchUpdateDispositionResponse.__qualname__ = "BatchUpdateDispositionResponse"
5539
+ event_BatchUpdateDispositionResponse.__module__ = "nominal_api.event"
5540
+
5541
+
5496
5542
  class event_CheckOriginMetadata(ConjureBeanType):
5497
5543
 
5498
5544
  @builtins.classmethod
@@ -6089,6 +6135,38 @@ The Event Service is responsible for creating and retrieving events for a partic
6089
6135
  _decoder = ConjureDecoder()
6090
6136
  return _decoder.decode(_response.json(), event_Event, self._return_none_for_unknown_union_types)
6091
6137
 
6138
+ def batch_update_disposition(self, auth_header: str, request: "event_BatchUpdateDispositionRequest") -> "event_BatchUpdateDispositionResponse":
6139
+ """
6140
+ Updates the disposition of an event.
6141
+ """
6142
+
6143
+ _headers: Dict[str, Any] = {
6144
+ 'Accept': 'application/json',
6145
+ 'Content-Type': 'application/json',
6146
+ 'Authorization': auth_header,
6147
+ }
6148
+
6149
+ _params: Dict[str, Any] = {
6150
+ }
6151
+
6152
+ _path_params: Dict[str, Any] = {
6153
+ }
6154
+
6155
+ _json: Any = ConjureEncoder().default(request)
6156
+
6157
+ _path = '/event/v1/update-disposition'
6158
+ _path = _path.format(**_path_params)
6159
+
6160
+ _response: Response = self._request(
6161
+ 'POST',
6162
+ self._uri + _path,
6163
+ params=_params,
6164
+ headers=_headers,
6165
+ json=_json)
6166
+
6167
+ _decoder = ConjureDecoder()
6168
+ return _decoder.decode(_response.json(), event_BatchUpdateDispositionResponse, self._return_none_for_unknown_union_types)
6169
+
6092
6170
  def archive_event(self, auth_header: str, request: "event_ArchiveEvent") -> None:
6093
6171
  """
6094
6172
  Archives an event
@@ -6615,6 +6693,39 @@ event_TemplateEventOrigin.__qualname__ = "TemplateEventOrigin"
6615
6693
  event_TemplateEventOrigin.__module__ = "nominal_api.event"
6616
6694
 
6617
6695
 
6696
+ class event_UpdateDispositionRequest(ConjureBeanType):
6697
+
6698
+ @builtins.classmethod
6699
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
6700
+ return {
6701
+ 'rid': ConjureFieldDefinition('rid', api_rids_EventRid),
6702
+ 'disposition': ConjureFieldDefinition('disposition', OptionalTypeWrapper[event_EventDisposition])
6703
+ }
6704
+
6705
+ __slots__: List[str] = ['_rid', '_disposition']
6706
+
6707
+ def __init__(self, rid: str, disposition: Optional["event_EventDisposition"] = None) -> None:
6708
+ self._rid = rid
6709
+ self._disposition = disposition
6710
+
6711
+ @builtins.property
6712
+ def rid(self) -> str:
6713
+ return self._rid
6714
+
6715
+ @builtins.property
6716
+ def disposition(self) -> Optional["event_EventDisposition"]:
6717
+ """
6718
+ The new disposition for the event.
6719
+ If empty, will remove the disposition from the event.
6720
+ """
6721
+ return self._disposition
6722
+
6723
+
6724
+ event_UpdateDispositionRequest.__name__ = "UpdateDispositionRequest"
6725
+ event_UpdateDispositionRequest.__qualname__ = "UpdateDispositionRequest"
6726
+ event_UpdateDispositionRequest.__module__ = "nominal_api.event"
6727
+
6728
+
6618
6729
  class event_UpdateEvent(ConjureBeanType):
6619
6730
 
6620
6731
  @builtins.classmethod
@@ -2,6 +2,8 @@
2
2
  from .._impl import (
3
3
  event_ApiEventOrigin as ApiEventOrigin,
4
4
  event_ArchiveEvent as ArchiveEvent,
5
+ event_BatchUpdateDispositionRequest as BatchUpdateDispositionRequest,
6
+ event_BatchUpdateDispositionResponse as BatchUpdateDispositionResponse,
5
7
  event_CheckOriginMetadata as CheckOriginMetadata,
6
8
  event_CreateEvent as CreateEvent,
7
9
  event_DataReviewEventOrigin as DataReviewEventOrigin,
@@ -20,6 +22,7 @@ from .._impl import (
20
22
  event_SortField as SortField,
21
23
  event_SortOptions as SortOptions,
22
24
  event_TemplateEventOrigin as TemplateEventOrigin,
25
+ event_UpdateDispositionRequest as UpdateDispositionRequest,
23
26
  event_UpdateEvent as UpdateEvent,
24
27
  event_WorkbookEventOrigin as WorkbookEventOrigin,
25
28
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.650.0
3
+ Version: 0.651.1
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=MwAkYQ5IkrxQyeYzdkz2nDiNwQD65T770hoipK_RcT0,1955
2
- nominal_api/_impl.py,sha256=_9dXEhGIi1wPCZF-79sCVPwO6Oaki80E3xzm6WeLOAY,3064982
1
+ nominal_api/__init__.py,sha256=4dm4Lbd4fTrlsSvNCe04rXY6kgD_-AaFCkDFfqRvG3w,1955
2
+ nominal_api/_impl.py,sha256=8fGaZmpG6puaCI-jbtt6gjPwMnCGRHFfti_a0H6y-oU,3068566
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=1oJPOuAMfV2uClPUW8Ie1nj2Y6j81TDpedcc3yUFTe0,1294
5
5
  nominal_api/api_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
@@ -14,7 +14,7 @@ nominal_api/datasource_api/__init__.py,sha256=-0v4FGK22kyCALrJ-LRcwJ-QHDUnFCBqj_
14
14
  nominal_api/datasource_logset/__init__.py,sha256=H3fNxqyYC490MwvdWbt5BwhgWQUev7uieaLz5hUbZDc,94
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
- nominal_api/event/__init__.py,sha256=I6GasoAKx2MLe72oaGDjnB_GWsGOnf6Ow_li3bi4eY8,1024
17
+ nominal_api/event/__init__.py,sha256=QR53UWfs8-V_HUq9uDvNJFf9iH4cI-Q8ADfNL5RTWJ8,1238
18
18
  nominal_api/ingest_api/__init__.py,sha256=o-JBX6tm7Tfwkll1eqiiOzqZYvIyajtgqGkPjmYjrrQ,7014
19
19
  nominal_api/ingest_workflow_api/__init__.py,sha256=v4R4WHLHlflcrPYzYlB1dqvnObwjxlvr2Whs_QUPj8A,1734
20
20
  nominal_api/persistent_compute_api/__init__.py,sha256=ThraDBJyYB5nFrbB6FZZpDoVAmsq8GAibiK0nu63MVA,2050
@@ -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.650.0.dist-info/METADATA,sha256=2l4wBQELFx3Il6CPSNW2KfOFJ9MUr60bBb8df4i8CRE,199
76
- nominal_api-0.650.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
77
- nominal_api-0.650.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
- nominal_api-0.650.0.dist-info/RECORD,,
75
+ nominal_api-0.651.1.dist-info/METADATA,sha256=b-ofdsQVDK99KJ-9cZ3wRMkLU8Fvc3bIeXbX1xYjDdw,199
76
+ nominal_api-0.651.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
77
+ nominal_api-0.651.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
+ nominal_api-0.651.1.dist-info/RECORD,,