nominal-api 0.924.0__py3-none-any.whl → 0.925.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
@@ -81,5 +81,5 @@ __all__ = [
81
81
 
82
82
  __conjure_generator_version__ = "4.17.0"
83
83
 
84
- __version__ = "0.924.0"
84
+ __version__ = "0.925.0"
85
85
 
nominal_api/_impl.py CHANGED
@@ -19047,6 +19047,40 @@ including metrics for check and violation review status.
19047
19047
  _decoder = ConjureDecoder()
19048
19048
  return _decoder.decode(_response.json(), scout_run_api_GetRunsByAssetResponse, self._return_none_for_unknown_union_types)
19049
19049
 
19050
+ def get_latest_run_for_assets(self, auth_header: str, request: List[str] = None) -> Dict[str, "scout_run_api_Run"]:
19051
+ """Fetches the latest run for each requested asset.
19052
+ Assets without associated runs will not be included in response.
19053
+ """
19054
+ request = request if request is not None else []
19055
+ _conjure_encoder = ConjureEncoder()
19056
+
19057
+ _headers: Dict[str, Any] = {
19058
+ 'Accept': 'application/json',
19059
+ 'Content-Type': 'application/json',
19060
+ 'Authorization': auth_header,
19061
+ }
19062
+
19063
+ _params: Dict[str, Any] = {
19064
+ }
19065
+
19066
+ _path_params: Dict[str, str] = {
19067
+ }
19068
+
19069
+ _json: Any = _conjure_encoder.default(request)
19070
+
19071
+ _path = '/scout/v1/run/by-assets/latest'
19072
+ _path = _path.format(**_path_params)
19073
+
19074
+ _response: Response = self._request(
19075
+ 'POST',
19076
+ self._uri + _path,
19077
+ params=_params,
19078
+ headers=_headers,
19079
+ json=_json)
19080
+
19081
+ _decoder = ConjureDecoder()
19082
+ return _decoder.decode(_response.json(), Dict[scout_rids_api_AssetRid, scout_run_api_Run], self._return_none_for_unknown_union_types)
19083
+
19050
19084
  def get_all_runs_properties_and_labels(self, auth_header: str, workspaces: List[str] = None) -> "scout_run_api_AllRunsPropertiesAndLabelsResponse":
19051
19085
  workspaces = workspaces if workspaces is not None else []
19052
19086
  _conjure_encoder = ConjureEncoder()
@@ -30469,7 +30503,7 @@ class scout_chartdefinition_api_ProcedureVizDefinitionV1(ConjureBeanType):
30469
30503
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
30470
30504
  return {
30471
30505
  'title': ConjureFieldDefinition('title', OptionalTypeWrapper[str]),
30472
- 'execution_rid': ConjureFieldDefinition('executionRid', OptionalTypeWrapper[scout_rids_api_ProcedureExecutionRid])
30506
+ 'execution_rid': ConjureFieldDefinition('executionRid', OptionalTypeWrapper[api_rids_ProcedureExecutionRid])
30473
30507
  }
30474
30508
 
30475
30509
  __slots__: List[str] = ['_title', '_execution_rid']
@@ -96048,8 +96082,6 @@ scout_datasource_connection_api_ProjectName = str
96048
96082
 
96049
96083
  scout_rids_api_DataReviewRid = str
96050
96084
 
96051
- scout_rids_api_ProcedureExecutionRid = str
96052
-
96053
96085
  api_rids_SegmentRid = str
96054
96086
 
96055
96087
  scout_comparisonnotebook_api_VariableName = str
@@ -19,7 +19,6 @@ from .._impl import (
19
19
  scout_rids_api_MarkingRid as MarkingRid,
20
20
  scout_rids_api_NotebookRid as NotebookRid,
21
21
  scout_rids_api_PendingReviewAlertState as PendingReviewAlertState,
22
- scout_rids_api_ProcedureExecutionRid as ProcedureExecutionRid,
23
22
  scout_rids_api_PropertiesFilter as PropertiesFilter,
24
23
  scout_rids_api_SavedViewRid as SavedViewRid,
25
24
  scout_rids_api_SnapshotRid as SnapshotRid,
@@ -52,7 +51,6 @@ __all__ = [
52
51
  'MarkingRid',
53
52
  'NotebookRid',
54
53
  'PendingReviewAlertState',
55
- 'ProcedureExecutionRid',
56
54
  'PropertiesFilter',
57
55
  'SavedViewRid',
58
56
  'SnapshotRid',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.924.0
3
+ Version: 0.925.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=r14RlhXNiGKth7G2TYuAvuva4nyt7uDHN1hg4Vfm3fM,2088
2
- nominal_api/_impl.py,sha256=iYudBBZAwSOi4oFqFpZHDqIUYOhlT2KBR2kzsYFmMJ0,3802382
1
+ nominal_api/__init__.py,sha256=hOaqefMJlcrKj21wOb6UhpsUzcZclAviBcQ8IDUI49Q,2088
2
+ nominal_api/_impl.py,sha256=i13o-HLfEfWZJUGAqHNLj_iNwS8nrvMOO3Bf0Ny6MpY,3803479
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
@@ -51,7 +51,7 @@ nominal_api/scout_layout_api/__init__.py,sha256=sUWO0V8Y0I0pa-nmKAjkeoIgTpP9tSG1
51
51
  nominal_api/scout_metadata/__init__.py,sha256=tfnzE6dlVBki1ZSy276mkDQQeKehmJLaG9dczHAx3jk,649
52
52
  nominal_api/scout_notebook_api/__init__.py,sha256=AciUoPZXPbhC0lIWyUxa7LFGsj4qqX8hTqf70DM_Pa8,2054
53
53
  nominal_api/scout_plotting/__init__.py,sha256=RJK9HlPmNW_dxSz7CprwjfNKke86x11rQ7BF5pwrBv4,127
54
- nominal_api/scout_rids_api/__init__.py,sha256=7K44IwVH-84rKCj6srKvJSrjfYRiEnhxUA0HtmgnyG4,2251
54
+ nominal_api/scout_rids_api/__init__.py,sha256=cCJp5tVPrya2bjydLSA7zLHnCs1rvFqz65VL_9oORG8,2155
55
55
  nominal_api/scout_run_api/__init__.py,sha256=ZUd1CJa6EyAylMrTGD6rum7CyFAoehP6FyiT4W2EDDA,4763
56
56
  nominal_api/scout_savedviews/__init__.py,sha256=yky0iF6IK8U5xnDjfzvUuXOb-Tl5RF6dic6abhuX-V8,138
57
57
  nominal_api/scout_savedviews_api/__init__.py,sha256=qGCgh8Pv9N-uekuDwDCHlBu9DCflIT6MiDhtFSmtKQ4,3148
@@ -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.924.0.dist-info/METADATA,sha256=Lec6sVT6aD9ZYVu886GGwHB9SUKgXRnot6XUTGloK0U,199
82
- nominal_api-0.924.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- nominal_api-0.924.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
- nominal_api-0.924.0.dist-info/RECORD,,
81
+ nominal_api-0.925.0.dist-info/METADATA,sha256=yDe96d0NlqtHa0iyzUk8czRVIy5GAePCBGobAtN90zY,199
82
+ nominal_api-0.925.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ nominal_api-0.925.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
+ nominal_api-0.925.0.dist-info/RECORD,,