nominal-api 0.505.0__py3-none-any.whl → 0.506.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
@@ -67,5 +67,5 @@ __all__ = [
67
67
 
68
68
  __conjure_generator_version__ = "4.9.0"
69
69
 
70
- __version__ = "0.505.0"
70
+ __version__ = "0.506.0"
71
71
 
nominal_api/_impl.py CHANGED
@@ -45690,6 +45690,9 @@ then none of the actions will be applied.
45690
45690
  return _decoder.decode(_response.json(), scout_datareview_api_ManualCheckEvaluationActionLog, self._return_none_for_unknown_union_types)
45691
45691
 
45692
45692
  def archive_data_review(self, auth_header: str, data_review_rid: str) -> bool:
45693
+ """
45694
+ Archives the data review with the given rid.
45695
+ """
45693
45696
 
45694
45697
  _headers: Dict[str, Any] = {
45695
45698
  'Accept': 'application/json',
@@ -45718,6 +45721,69 @@ then none of the actions will be applied.
45718
45721
  _decoder = ConjureDecoder()
45719
45722
  return _decoder.decode(_response.json(), bool, self._return_none_for_unknown_union_types)
45720
45723
 
45724
+ def batch_archive_data_review(self, auth_header: str, rids: List[str] = None) -> None:
45725
+ """
45726
+ Batch archives the data reviews with the given rids.
45727
+ """
45728
+ rids = rids if rids is not None else []
45729
+
45730
+ _headers: Dict[str, Any] = {
45731
+ 'Accept': 'application/json',
45732
+ 'Content-Type': 'application/json',
45733
+ 'Authorization': auth_header,
45734
+ }
45735
+
45736
+ _params: Dict[str, Any] = {
45737
+ }
45738
+
45739
+ _path_params: Dict[str, Any] = {
45740
+ }
45741
+
45742
+ _json: Any = ConjureEncoder().default(rids)
45743
+
45744
+ _path = '/scout/v2/data-review/batch-archive'
45745
+ _path = _path.format(**_path_params)
45746
+
45747
+ _response: Response = self._request(
45748
+ 'POST',
45749
+ self._uri + _path,
45750
+ params=_params,
45751
+ headers=_headers,
45752
+ json=_json)
45753
+
45754
+ return
45755
+
45756
+ def unarchive_data_review(self, auth_header: str, data_review_rid: str) -> None:
45757
+ """
45758
+ Unarchives the data review with the given rid.
45759
+ """
45760
+
45761
+ _headers: Dict[str, Any] = {
45762
+ 'Accept': 'application/json',
45763
+ 'Authorization': auth_header,
45764
+ }
45765
+
45766
+ _params: Dict[str, Any] = {
45767
+ }
45768
+
45769
+ _path_params: Dict[str, Any] = {
45770
+ 'dataReviewRid': data_review_rid,
45771
+ }
45772
+
45773
+ _json: Any = None
45774
+
45775
+ _path = '/scout/v2/data-review/unarchive/{dataReviewRid}'
45776
+ _path = _path.format(**_path_params)
45777
+
45778
+ _response: Response = self._request(
45779
+ 'POST',
45780
+ self._uri + _path,
45781
+ params=_params,
45782
+ headers=_headers,
45783
+ json=_json)
45784
+
45785
+ return
45786
+
45721
45787
 
45722
45788
  scout_datareview_api_DataReviewService.__name__ = "DataReviewService"
45723
45789
  scout_datareview_api_DataReviewService.__qualname__ = "DataReviewService"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.505.0
3
+ Version: 0.506.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=E2Dfo7U3DGl5xE-aPR_2kUAO7P9geFHooqGdXxJ-Hrc,1744
2
- nominal_api/_impl.py,sha256=QeA9qaZl8HDLcXc-Loiou9COihwSQh_0TFxhMwk0vjM,2523084
1
+ nominal_api/__init__.py,sha256=oFziWdz3SDOwvu0Vq6YLqnBI_DSb_DDNWlzLuoJ80Y4,1744
2
+ nominal_api/_impl.py,sha256=AQ-EF2kHw-52vABO8UpRIgA-oKD57ZIhXwaUvUpOWFk,2524789
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=CaUmWhW0zcP8jVWFQEgj-lpoBi-Unm0wBd2s9dPeWmo,656
5
5
  nominal_api/api_rids/__init__.py,sha256=p7dKiMV692oGtYStr5FZJEJNg3YbF7scJK1WFMpBiW0,298
@@ -64,7 +64,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=wr83ByQTVVPOGvbB_KWL
64
64
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
65
65
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=YLixotb-W-adYR6t_RBsJDwoHttppkOBesoaXERwhVs,1240
66
66
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
67
- nominal_api-0.505.0.dist-info/METADATA,sha256=Am2YizHqelLa9n8wWUv-oJWDwXHrGrub-VCmllmQJbc,199
68
- nominal_api-0.505.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
69
- nominal_api-0.505.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
70
- nominal_api-0.505.0.dist-info/RECORD,,
67
+ nominal_api-0.506.0.dist-info/METADATA,sha256=kfGxz-tznjhZ10NeqReqthjLP867JsIj41htzTzSnpQ,199
68
+ nominal_api-0.506.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
69
+ nominal_api-0.506.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
70
+ nominal_api-0.506.0.dist-info/RECORD,,