nominal-api 0.665.2__py3-none-any.whl → 0.667.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 +1 -1
- nominal_api/_impl.py +212 -8
- nominal_api/scout_run_api/__init__.py +3 -0
- {nominal_api-0.665.2.dist-info → nominal_api-0.667.0.dist-info}/METADATA +1 -1
- {nominal_api-0.665.2.dist-info → nominal_api-0.667.0.dist-info}/RECORD +7 -7
- {nominal_api-0.665.2.dist-info → nominal_api-0.667.0.dist-info}/WHEEL +1 -1
- {nominal_api-0.665.2.dist-info → nominal_api-0.667.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -17639,6 +17639,7 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17639
17639
|
_and_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None
|
|
17640
17640
|
_or_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None
|
|
17641
17641
|
_workspace: Optional[str] = None
|
|
17642
|
+
_configured_datasource: Optional[str] = None
|
|
17642
17643
|
|
|
17643
17644
|
@builtins.classmethod
|
|
17644
17645
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -17647,7 +17648,8 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17647
17648
|
'property': ConjureFieldDefinition('property', api_PropertyName),
|
|
17648
17649
|
'and_': ConjureFieldDefinition('and', List[scout_asset_api_SearchTypesQuery]),
|
|
17649
17650
|
'or_': ConjureFieldDefinition('or', List[scout_asset_api_SearchTypesQuery]),
|
|
17650
|
-
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
17651
|
+
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid),
|
|
17652
|
+
'configured_datasource': ConjureFieldDefinition('configuredDatasource', api_rids_DataSourceRid)
|
|
17651
17653
|
}
|
|
17652
17654
|
|
|
17653
17655
|
def __init__(
|
|
@@ -17657,10 +17659,11 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17657
17659
|
and_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None,
|
|
17658
17660
|
or_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None,
|
|
17659
17661
|
workspace: Optional[str] = None,
|
|
17662
|
+
configured_datasource: Optional[str] = None,
|
|
17660
17663
|
type_of_union: Optional[str] = None
|
|
17661
17664
|
) -> None:
|
|
17662
17665
|
if type_of_union is None:
|
|
17663
|
-
if (search_text is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
17666
|
+
if (search_text is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) + (configured_datasource is not None) != 1:
|
|
17664
17667
|
raise ValueError('a union must contain a single member')
|
|
17665
17668
|
|
|
17666
17669
|
if search_text is not None:
|
|
@@ -17678,6 +17681,9 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17678
17681
|
if workspace is not None:
|
|
17679
17682
|
self._workspace = workspace
|
|
17680
17683
|
self._type = 'workspace'
|
|
17684
|
+
if configured_datasource is not None:
|
|
17685
|
+
self._configured_datasource = configured_datasource
|
|
17686
|
+
self._type = 'configuredDatasource'
|
|
17681
17687
|
|
|
17682
17688
|
elif type_of_union == 'searchText':
|
|
17683
17689
|
if search_text is None:
|
|
@@ -17704,6 +17710,11 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17704
17710
|
raise ValueError('a union value must not be None')
|
|
17705
17711
|
self._workspace = workspace
|
|
17706
17712
|
self._type = 'workspace'
|
|
17713
|
+
elif type_of_union == 'configuredDatasource':
|
|
17714
|
+
if configured_datasource is None:
|
|
17715
|
+
raise ValueError('a union value must not be None')
|
|
17716
|
+
self._configured_datasource = configured_datasource
|
|
17717
|
+
self._type = 'configuredDatasource'
|
|
17707
17718
|
|
|
17708
17719
|
@builtins.property
|
|
17709
17720
|
def search_text(self) -> Optional[str]:
|
|
@@ -17725,6 +17736,10 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17725
17736
|
def workspace(self) -> Optional[str]:
|
|
17726
17737
|
return self._workspace
|
|
17727
17738
|
|
|
17739
|
+
@builtins.property
|
|
17740
|
+
def configured_datasource(self) -> Optional[str]:
|
|
17741
|
+
return self._configured_datasource
|
|
17742
|
+
|
|
17728
17743
|
def accept(self, visitor) -> Any:
|
|
17729
17744
|
if not isinstance(visitor, scout_asset_api_SearchTypesQueryVisitor):
|
|
17730
17745
|
raise ValueError('{} is not an instance of scout_asset_api_SearchTypesQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -17738,6 +17753,8 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17738
17753
|
return visitor._or(self.or_)
|
|
17739
17754
|
if self._type == 'workspace' and self.workspace is not None:
|
|
17740
17755
|
return visitor._workspace(self.workspace)
|
|
17756
|
+
if self._type == 'configuredDatasource' and self.configured_datasource is not None:
|
|
17757
|
+
return visitor._configured_datasource(self.configured_datasource)
|
|
17741
17758
|
|
|
17742
17759
|
|
|
17743
17760
|
scout_asset_api_SearchTypesQuery.__name__ = "SearchTypesQuery"
|
|
@@ -17767,6 +17784,10 @@ class scout_asset_api_SearchTypesQueryVisitor:
|
|
|
17767
17784
|
def _workspace(self, workspace: str) -> Any:
|
|
17768
17785
|
pass
|
|
17769
17786
|
|
|
17787
|
+
@abstractmethod
|
|
17788
|
+
def _configured_datasource(self, configured_datasource: str) -> Any:
|
|
17789
|
+
pass
|
|
17790
|
+
|
|
17770
17791
|
|
|
17771
17792
|
scout_asset_api_SearchTypesQueryVisitor.__name__ = "SearchTypesQueryVisitor"
|
|
17772
17793
|
scout_asset_api_SearchTypesQueryVisitor.__qualname__ = "SearchTypesQueryVisitor"
|
|
@@ -18683,6 +18704,35 @@ workbooks.
|
|
|
18683
18704
|
_decoder = ConjureDecoder()
|
|
18684
18705
|
return _decoder.decode(_response.json(), Dict[scout_rids_api_TypeRid, scout_asset_api_Type], self._return_none_for_unknown_union_types)
|
|
18685
18706
|
|
|
18707
|
+
def get_types_for_datasource(self, auth_header: str, datasource_rid: str) -> List["scout_asset_api_Type"]:
|
|
18708
|
+
|
|
18709
|
+
_headers: Dict[str, Any] = {
|
|
18710
|
+
'Accept': 'application/json',
|
|
18711
|
+
'Content-Type': 'application/json',
|
|
18712
|
+
'Authorization': auth_header,
|
|
18713
|
+
}
|
|
18714
|
+
|
|
18715
|
+
_params: Dict[str, Any] = {
|
|
18716
|
+
}
|
|
18717
|
+
|
|
18718
|
+
_path_params: Dict[str, Any] = {
|
|
18719
|
+
}
|
|
18720
|
+
|
|
18721
|
+
_json: Any = ConjureEncoder().default(datasource_rid)
|
|
18722
|
+
|
|
18723
|
+
_path = '/scout/v1/type/datasource'
|
|
18724
|
+
_path = _path.format(**_path_params)
|
|
18725
|
+
|
|
18726
|
+
_response: Response = self._request(
|
|
18727
|
+
'POST',
|
|
18728
|
+
self._uri + _path,
|
|
18729
|
+
params=_params,
|
|
18730
|
+
headers=_headers,
|
|
18731
|
+
json=_json)
|
|
18732
|
+
|
|
18733
|
+
_decoder = ConjureDecoder()
|
|
18734
|
+
return _decoder.decode(_response.json(), List[scout_asset_api_Type], self._return_none_for_unknown_union_types)
|
|
18735
|
+
|
|
18686
18736
|
def delete_type(self, auth_header: str, rid: str) -> None:
|
|
18687
18737
|
"""
|
|
18688
18738
|
Deletes a type. The type must not be referenced by any assets.
|
|
@@ -63934,6 +63984,7 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
63934
63984
|
_property: Optional["api_Property"] = None
|
|
63935
63985
|
_and_: Optional[List["scout_internal_search_api_SearchQuery"]] = None
|
|
63936
63986
|
_or_: Optional[List["scout_internal_search_api_SearchQuery"]] = None
|
|
63987
|
+
_not_: Optional["scout_internal_search_api_SearchQuery"] = None
|
|
63937
63988
|
_workspace: Optional[str] = None
|
|
63938
63989
|
|
|
63939
63990
|
@builtins.classmethod
|
|
@@ -63950,6 +64001,7 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
63950
64001
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
63951
64002
|
'and_': ConjureFieldDefinition('and', List[scout_internal_search_api_SearchQuery]),
|
|
63952
64003
|
'or_': ConjureFieldDefinition('or', List[scout_internal_search_api_SearchQuery]),
|
|
64004
|
+
'not_': ConjureFieldDefinition('not', scout_internal_search_api_SearchQuery),
|
|
63953
64005
|
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
63954
64006
|
}
|
|
63955
64007
|
|
|
@@ -63966,11 +64018,12 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
63966
64018
|
property: Optional["api_Property"] = None,
|
|
63967
64019
|
and_: Optional[List["scout_internal_search_api_SearchQuery"]] = None,
|
|
63968
64020
|
or_: Optional[List["scout_internal_search_api_SearchQuery"]] = None,
|
|
64021
|
+
not_: Optional["scout_internal_search_api_SearchQuery"] = None,
|
|
63969
64022
|
workspace: Optional[str] = None,
|
|
63970
64023
|
type_of_union: Optional[str] = None
|
|
63971
64024
|
) -> None:
|
|
63972
64025
|
if type_of_union is None:
|
|
63973
|
-
if (date_time_field is not None) + (string_field is not None) + (timestamp_field is not None) + (long_field is not None) + (boolean_field is not None) + (exact_match is not None) + (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
64026
|
+
if (date_time_field is not None) + (string_field is not None) + (timestamp_field is not None) + (long_field is not None) + (boolean_field is not None) + (exact_match is not None) + (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) != 1:
|
|
63974
64027
|
raise ValueError('a union must contain a single member')
|
|
63975
64028
|
|
|
63976
64029
|
if date_time_field is not None:
|
|
@@ -64006,6 +64059,9 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64006
64059
|
if or_ is not None:
|
|
64007
64060
|
self._or_ = or_
|
|
64008
64061
|
self._type = 'or'
|
|
64062
|
+
if not_ is not None:
|
|
64063
|
+
self._not_ = not_
|
|
64064
|
+
self._type = 'not'
|
|
64009
64065
|
if workspace is not None:
|
|
64010
64066
|
self._workspace = workspace
|
|
64011
64067
|
self._type = 'workspace'
|
|
@@ -64065,6 +64121,11 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64065
64121
|
raise ValueError('a union value must not be None')
|
|
64066
64122
|
self._or_ = or_
|
|
64067
64123
|
self._type = 'or'
|
|
64124
|
+
elif type_of_union == 'not':
|
|
64125
|
+
if not_ is None:
|
|
64126
|
+
raise ValueError('a union value must not be None')
|
|
64127
|
+
self._not_ = not_
|
|
64128
|
+
self._type = 'not'
|
|
64068
64129
|
elif type_of_union == 'workspace':
|
|
64069
64130
|
if workspace is None:
|
|
64070
64131
|
raise ValueError('a union value must not be None')
|
|
@@ -64118,6 +64179,10 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64118
64179
|
def or_(self) -> Optional[List["scout_internal_search_api_SearchQuery"]]:
|
|
64119
64180
|
return self._or_
|
|
64120
64181
|
|
|
64182
|
+
@builtins.property
|
|
64183
|
+
def not_(self) -> Optional["scout_internal_search_api_SearchQuery"]:
|
|
64184
|
+
return self._not_
|
|
64185
|
+
|
|
64121
64186
|
@builtins.property
|
|
64122
64187
|
def workspace(self) -> Optional[str]:
|
|
64123
64188
|
return self._workspace
|
|
@@ -64147,6 +64212,8 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64147
64212
|
return visitor._and(self.and_)
|
|
64148
64213
|
if self._type == 'or' and self.or_ is not None:
|
|
64149
64214
|
return visitor._or(self.or_)
|
|
64215
|
+
if self._type == 'not' and self.not_ is not None:
|
|
64216
|
+
return visitor._not(self.not_)
|
|
64150
64217
|
if self._type == 'workspace' and self.workspace is not None:
|
|
64151
64218
|
return visitor._workspace(self.workspace)
|
|
64152
64219
|
|
|
@@ -64202,6 +64269,10 @@ class scout_internal_search_api_SearchQueryVisitor:
|
|
|
64202
64269
|
def _or(self, or_: List["scout_internal_search_api_SearchQuery"]) -> Any:
|
|
64203
64270
|
pass
|
|
64204
64271
|
|
|
64272
|
+
@abstractmethod
|
|
64273
|
+
def _not(self, not_: "scout_internal_search_api_SearchQuery") -> Any:
|
|
64274
|
+
pass
|
|
64275
|
+
|
|
64205
64276
|
@abstractmethod
|
|
64206
64277
|
def _workspace(self, workspace: str) -> Any:
|
|
64207
64278
|
pass
|
|
@@ -67778,6 +67849,7 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67778
67849
|
_check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None
|
|
67779
67850
|
_and_: Optional[List["scout_run_api_SearchQuery"]] = None
|
|
67780
67851
|
_or_: Optional[List["scout_run_api_SearchQuery"]] = None
|
|
67852
|
+
_not_: Optional["scout_run_api_SearchQuery"] = None
|
|
67781
67853
|
_workspace: Optional[str] = None
|
|
67782
67854
|
|
|
67783
67855
|
@builtins.classmethod
|
|
@@ -67798,6 +67870,7 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67798
67870
|
'check_alert_states_filter': ConjureFieldDefinition('checkAlertStatesFilter', scout_run_api_CheckAlertStatesFilter),
|
|
67799
67871
|
'and_': ConjureFieldDefinition('and', List[scout_run_api_SearchQuery]),
|
|
67800
67872
|
'or_': ConjureFieldDefinition('or', List[scout_run_api_SearchQuery]),
|
|
67873
|
+
'not_': ConjureFieldDefinition('not', scout_run_api_SearchQuery),
|
|
67801
67874
|
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
67802
67875
|
}
|
|
67803
67876
|
|
|
@@ -67818,11 +67891,12 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67818
67891
|
check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None,
|
|
67819
67892
|
and_: Optional[List["scout_run_api_SearchQuery"]] = None,
|
|
67820
67893
|
or_: Optional[List["scout_run_api_SearchQuery"]] = None,
|
|
67894
|
+
not_: Optional["scout_run_api_SearchQuery"] = None,
|
|
67821
67895
|
workspace: Optional[str] = None,
|
|
67822
67896
|
type_of_union: Optional[str] = None
|
|
67823
67897
|
) -> None:
|
|
67824
67898
|
if type_of_union is None:
|
|
67825
|
-
if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (exact_match is not None) + (search_text is not None) + (asset is not None) + (label is not None) + (property is not None) + (data_source_series_tag is not None) + (data_source_ref_name is not None) + (data_source is not None) + (run_number is not None) + (run_prefix is not None) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
67899
|
+
if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (exact_match is not None) + (search_text is not None) + (asset is not None) + (label is not None) + (property is not None) + (data_source_series_tag is not None) + (data_source_ref_name is not None) + (data_source is not None) + (run_number is not None) + (run_prefix is not None) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) != 1:
|
|
67826
67900
|
raise ValueError('a union must contain a single member')
|
|
67827
67901
|
|
|
67828
67902
|
if start_time_inclusive is not None:
|
|
@@ -67870,6 +67944,9 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67870
67944
|
if or_ is not None:
|
|
67871
67945
|
self._or_ = or_
|
|
67872
67946
|
self._type = 'or'
|
|
67947
|
+
if not_ is not None:
|
|
67948
|
+
self._not_ = not_
|
|
67949
|
+
self._type = 'not'
|
|
67873
67950
|
if workspace is not None:
|
|
67874
67951
|
self._workspace = workspace
|
|
67875
67952
|
self._type = 'workspace'
|
|
@@ -67949,6 +68026,11 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67949
68026
|
raise ValueError('a union value must not be None')
|
|
67950
68027
|
self._or_ = or_
|
|
67951
68028
|
self._type = 'or'
|
|
68029
|
+
elif type_of_union == 'not':
|
|
68030
|
+
if not_ is None:
|
|
68031
|
+
raise ValueError('a union value must not be None')
|
|
68032
|
+
self._not_ = not_
|
|
68033
|
+
self._type = 'not'
|
|
67952
68034
|
elif type_of_union == 'workspace':
|
|
67953
68035
|
if workspace is None:
|
|
67954
68036
|
raise ValueError('a union value must not be None')
|
|
@@ -68021,6 +68103,10 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
68021
68103
|
def or_(self) -> Optional[List["scout_run_api_SearchQuery"]]:
|
|
68022
68104
|
return self._or_
|
|
68023
68105
|
|
|
68106
|
+
@builtins.property
|
|
68107
|
+
def not_(self) -> Optional["scout_run_api_SearchQuery"]:
|
|
68108
|
+
return self._not_
|
|
68109
|
+
|
|
68024
68110
|
@builtins.property
|
|
68025
68111
|
def workspace(self) -> Optional[str]:
|
|
68026
68112
|
return self._workspace
|
|
@@ -68058,6 +68144,8 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
68058
68144
|
return visitor._and(self.and_)
|
|
68059
68145
|
if self._type == 'or' and self.or_ is not None:
|
|
68060
68146
|
return visitor._or(self.or_)
|
|
68147
|
+
if self._type == 'not' and self.not_ is not None:
|
|
68148
|
+
return visitor._not(self.not_)
|
|
68061
68149
|
if self._type == 'workspace' and self.workspace is not None:
|
|
68062
68150
|
return visitor._workspace(self.workspace)
|
|
68063
68151
|
|
|
@@ -68129,6 +68217,10 @@ class scout_run_api_SearchQueryVisitor:
|
|
|
68129
68217
|
def _or(self, or_: List["scout_run_api_SearchQuery"]) -> Any:
|
|
68130
68218
|
pass
|
|
68131
68219
|
|
|
68220
|
+
@abstractmethod
|
|
68221
|
+
def _not(self, not_: "scout_run_api_SearchQuery") -> Any:
|
|
68222
|
+
pass
|
|
68223
|
+
|
|
68132
68224
|
@abstractmethod
|
|
68133
68225
|
def _workspace(self, workspace: str) -> Any:
|
|
68134
68226
|
pass
|
|
@@ -68383,35 +68475,147 @@ scout_run_api_SortField.__qualname__ = "SortField"
|
|
|
68383
68475
|
scout_run_api_SortField.__module__ = "nominal_api.scout_run_api"
|
|
68384
68476
|
|
|
68385
68477
|
|
|
68478
|
+
class scout_run_api_SortKey(ConjureUnionType):
|
|
68479
|
+
_field: Optional["scout_run_api_SortField"] = None
|
|
68480
|
+
_property: Optional["scout_run_api_SortProperty"] = None
|
|
68481
|
+
|
|
68482
|
+
@builtins.classmethod
|
|
68483
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
68484
|
+
return {
|
|
68485
|
+
'field': ConjureFieldDefinition('field', scout_run_api_SortField),
|
|
68486
|
+
'property': ConjureFieldDefinition('property', scout_run_api_SortProperty)
|
|
68487
|
+
}
|
|
68488
|
+
|
|
68489
|
+
def __init__(
|
|
68490
|
+
self,
|
|
68491
|
+
field: Optional["scout_run_api_SortField"] = None,
|
|
68492
|
+
property: Optional["scout_run_api_SortProperty"] = None,
|
|
68493
|
+
type_of_union: Optional[str] = None
|
|
68494
|
+
) -> None:
|
|
68495
|
+
if type_of_union is None:
|
|
68496
|
+
if (field is not None) + (property is not None) != 1:
|
|
68497
|
+
raise ValueError('a union must contain a single member')
|
|
68498
|
+
|
|
68499
|
+
if field is not None:
|
|
68500
|
+
self._field = field
|
|
68501
|
+
self._type = 'field'
|
|
68502
|
+
if property is not None:
|
|
68503
|
+
self._property = property
|
|
68504
|
+
self._type = 'property'
|
|
68505
|
+
|
|
68506
|
+
elif type_of_union == 'field':
|
|
68507
|
+
if field is None:
|
|
68508
|
+
raise ValueError('a union value must not be None')
|
|
68509
|
+
self._field = field
|
|
68510
|
+
self._type = 'field'
|
|
68511
|
+
elif type_of_union == 'property':
|
|
68512
|
+
if property is None:
|
|
68513
|
+
raise ValueError('a union value must not be None')
|
|
68514
|
+
self._property = property
|
|
68515
|
+
self._type = 'property'
|
|
68516
|
+
|
|
68517
|
+
@builtins.property
|
|
68518
|
+
def field(self) -> Optional["scout_run_api_SortField"]:
|
|
68519
|
+
return self._field
|
|
68520
|
+
|
|
68521
|
+
@builtins.property
|
|
68522
|
+
def property(self) -> Optional["scout_run_api_SortProperty"]:
|
|
68523
|
+
"""
|
|
68524
|
+
Sort by a property value. Requires a property name, and will always sort null values last.
|
|
68525
|
+
"""
|
|
68526
|
+
return self._property
|
|
68527
|
+
|
|
68528
|
+
def accept(self, visitor) -> Any:
|
|
68529
|
+
if not isinstance(visitor, scout_run_api_SortKeyVisitor):
|
|
68530
|
+
raise ValueError('{} is not an instance of scout_run_api_SortKeyVisitor'.format(visitor.__class__.__name__))
|
|
68531
|
+
if self._type == 'field' and self.field is not None:
|
|
68532
|
+
return visitor._field(self.field)
|
|
68533
|
+
if self._type == 'property' and self.property is not None:
|
|
68534
|
+
return visitor._property(self.property)
|
|
68535
|
+
|
|
68536
|
+
|
|
68537
|
+
scout_run_api_SortKey.__name__ = "SortKey"
|
|
68538
|
+
scout_run_api_SortKey.__qualname__ = "SortKey"
|
|
68539
|
+
scout_run_api_SortKey.__module__ = "nominal_api.scout_run_api"
|
|
68540
|
+
|
|
68541
|
+
|
|
68542
|
+
class scout_run_api_SortKeyVisitor:
|
|
68543
|
+
|
|
68544
|
+
@abstractmethod
|
|
68545
|
+
def _field(self, field: "scout_run_api_SortField") -> Any:
|
|
68546
|
+
pass
|
|
68547
|
+
|
|
68548
|
+
@abstractmethod
|
|
68549
|
+
def _property(self, property: "scout_run_api_SortProperty") -> Any:
|
|
68550
|
+
pass
|
|
68551
|
+
|
|
68552
|
+
|
|
68553
|
+
scout_run_api_SortKeyVisitor.__name__ = "SortKeyVisitor"
|
|
68554
|
+
scout_run_api_SortKeyVisitor.__qualname__ = "SortKeyVisitor"
|
|
68555
|
+
scout_run_api_SortKeyVisitor.__module__ = "nominal_api.scout_run_api"
|
|
68556
|
+
|
|
68557
|
+
|
|
68386
68558
|
class scout_run_api_SortOptions(ConjureBeanType):
|
|
68387
68559
|
|
|
68388
68560
|
@builtins.classmethod
|
|
68389
68561
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
68390
68562
|
return {
|
|
68391
68563
|
'is_descending': ConjureFieldDefinition('isDescending', bool),
|
|
68392
|
-
'field': ConjureFieldDefinition('field', scout_run_api_SortField)
|
|
68564
|
+
'field': ConjureFieldDefinition('field', OptionalTypeWrapper[scout_run_api_SortField]),
|
|
68565
|
+
'sort_key': ConjureFieldDefinition('sortKey', OptionalTypeWrapper[scout_run_api_SortKey])
|
|
68393
68566
|
}
|
|
68394
68567
|
|
|
68395
|
-
__slots__: List[str] = ['_is_descending', '_field']
|
|
68568
|
+
__slots__: List[str] = ['_is_descending', '_field', '_sort_key']
|
|
68396
68569
|
|
|
68397
|
-
def __init__(self, field: "scout_run_api_SortField",
|
|
68570
|
+
def __init__(self, is_descending: bool, field: Optional["scout_run_api_SortField"] = None, sort_key: Optional["scout_run_api_SortKey"] = None) -> None:
|
|
68398
68571
|
self._is_descending = is_descending
|
|
68399
68572
|
self._field = field
|
|
68573
|
+
self._sort_key = sort_key
|
|
68400
68574
|
|
|
68401
68575
|
@builtins.property
|
|
68402
68576
|
def is_descending(self) -> bool:
|
|
68403
68577
|
return self._is_descending
|
|
68404
68578
|
|
|
68405
68579
|
@builtins.property
|
|
68406
|
-
def field(self) -> "scout_run_api_SortField":
|
|
68580
|
+
def field(self) -> Optional["scout_run_api_SortField"]:
|
|
68407
68581
|
return self._field
|
|
68408
68582
|
|
|
68583
|
+
@builtins.property
|
|
68584
|
+
def sort_key(self) -> Optional["scout_run_api_SortKey"]:
|
|
68585
|
+
"""
|
|
68586
|
+
Field to sort by. Includes both field and property-based sorting.
|
|
68587
|
+
"""
|
|
68588
|
+
return self._sort_key
|
|
68589
|
+
|
|
68409
68590
|
|
|
68410
68591
|
scout_run_api_SortOptions.__name__ = "SortOptions"
|
|
68411
68592
|
scout_run_api_SortOptions.__qualname__ = "SortOptions"
|
|
68412
68593
|
scout_run_api_SortOptions.__module__ = "nominal_api.scout_run_api"
|
|
68413
68594
|
|
|
68414
68595
|
|
|
68596
|
+
class scout_run_api_SortProperty(ConjureBeanType):
|
|
68597
|
+
|
|
68598
|
+
@builtins.classmethod
|
|
68599
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
68600
|
+
return {
|
|
68601
|
+
'name': ConjureFieldDefinition('name', api_PropertyName)
|
|
68602
|
+
}
|
|
68603
|
+
|
|
68604
|
+
__slots__: List[str] = ['_name']
|
|
68605
|
+
|
|
68606
|
+
def __init__(self, name: str) -> None:
|
|
68607
|
+
self._name = name
|
|
68608
|
+
|
|
68609
|
+
@builtins.property
|
|
68610
|
+
def name(self) -> str:
|
|
68611
|
+
return self._name
|
|
68612
|
+
|
|
68613
|
+
|
|
68614
|
+
scout_run_api_SortProperty.__name__ = "SortProperty"
|
|
68615
|
+
scout_run_api_SortProperty.__qualname__ = "SortProperty"
|
|
68616
|
+
scout_run_api_SortProperty.__module__ = "nominal_api.scout_run_api"
|
|
68617
|
+
|
|
68618
|
+
|
|
68415
68619
|
class scout_run_api_Unit(ConjureBeanType):
|
|
68416
68620
|
|
|
68417
68621
|
@builtins.classmethod
|
|
@@ -37,7 +37,10 @@ from .._impl import (
|
|
|
37
37
|
scout_run_api_SearchRunsWithDataReviewMetricsResponse as SearchRunsWithDataReviewMetricsResponse,
|
|
38
38
|
scout_run_api_SearchRunsWithDataReviewSummaryResponse as SearchRunsWithDataReviewSummaryResponse,
|
|
39
39
|
scout_run_api_SortField as SortField,
|
|
40
|
+
scout_run_api_SortKey as SortKey,
|
|
41
|
+
scout_run_api_SortKeyVisitor as SortKeyVisitor,
|
|
40
42
|
scout_run_api_SortOptions as SortOptions,
|
|
43
|
+
scout_run_api_SortProperty as SortProperty,
|
|
41
44
|
scout_run_api_Unit as Unit,
|
|
42
45
|
scout_run_api_UpdateAttachmentsRequest as UpdateAttachmentsRequest,
|
|
43
46
|
scout_run_api_UpdateRunRequest as UpdateRunRequest,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=DyMGSpt28O8o7Gj8LRYyOjGLJ1V8fudftJkzET-RPsE,1955
|
|
2
|
+
nominal_api/_impl.py,sha256=7KB_zTbsBNZsI9eQXOrrpbUrj5z0OyCY1wGgiHrKLAw,3149388
|
|
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
|
|
@@ -49,7 +49,7 @@ nominal_api/scout_metadata/__init__.py,sha256=GIhWKJL2XSMB0iGaKfcGgmPHuvGWWmkK4l
|
|
|
49
49
|
nominal_api/scout_notebook_api/__init__.py,sha256=TW4_Y2DbakA13v3q_vmRSN8gaS8g0UYRREVKruujJc0,1299
|
|
50
50
|
nominal_api/scout_plotting/__init__.py,sha256=m6u3y7R70mo3ugaCp_-fwlS8_tDwrsq1l5ElOTY0TBc,91
|
|
51
51
|
nominal_api/scout_rids_api/__init__.py,sha256=zAioy5BpuLLgZQpF-11wWUEhntcHNj6sK5YzNC5z-3w,1188
|
|
52
|
-
nominal_api/scout_run_api/__init__.py,sha256=
|
|
52
|
+
nominal_api/scout_run_api/__init__.py,sha256=WvKLFyNGRx8nXDo4kw5yopEvmRREinIT-jhjo5_pY-w,2734
|
|
53
53
|
nominal_api/scout_template_api/__init__.py,sha256=twrd03oixkoGnRn_xpXywTcdq2tvMD1PLxSrMPdwz9c,1106
|
|
54
54
|
nominal_api/scout_units_api/__init__.py,sha256=KxRDScfumX__0ncWJftGvgApn_LBTfnIBAvnaBrcA5A,368
|
|
55
55
|
nominal_api/scout_versioning_api/__init__.py,sha256=Sf4T4t0rZXNRIZgkqLBN3yh0sAnrxiuzaTfDQVVkyO4,1323
|
|
@@ -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.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.667.0.dist-info/METADATA,sha256=zJLyl5fuPUbRui8aKjCRoZowWZl6rhcNyzFWbJZ8FS0,199
|
|
76
|
+
nominal_api-0.667.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
77
|
+
nominal_api-0.667.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.667.0.dist-info/RECORD,,
|
|
File without changes
|