nominal-api 0.666.0__py3-none-any.whl → 0.668.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 +44 -2
- {nominal_api-0.666.0.dist-info → nominal_api-0.668.0.dist-info}/METADATA +1 -1
- {nominal_api-0.666.0.dist-info → nominal_api-0.668.0.dist-info}/RECORD +6 -6
- {nominal_api-0.666.0.dist-info → nominal_api-0.668.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.666.0.dist-info → nominal_api-0.668.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -63984,6 +63984,7 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
63984
63984
|
_property: Optional["api_Property"] = None
|
|
63985
63985
|
_and_: Optional[List["scout_internal_search_api_SearchQuery"]] = None
|
|
63986
63986
|
_or_: Optional[List["scout_internal_search_api_SearchQuery"]] = None
|
|
63987
|
+
_not_: Optional["scout_internal_search_api_SearchQuery"] = None
|
|
63987
63988
|
_workspace: Optional[str] = None
|
|
63988
63989
|
|
|
63989
63990
|
@builtins.classmethod
|
|
@@ -64000,6 +64001,7 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64000
64001
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
64001
64002
|
'and_': ConjureFieldDefinition('and', List[scout_internal_search_api_SearchQuery]),
|
|
64002
64003
|
'or_': ConjureFieldDefinition('or', List[scout_internal_search_api_SearchQuery]),
|
|
64004
|
+
'not_': ConjureFieldDefinition('not', scout_internal_search_api_SearchQuery),
|
|
64003
64005
|
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
64004
64006
|
}
|
|
64005
64007
|
|
|
@@ -64016,11 +64018,12 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64016
64018
|
property: Optional["api_Property"] = None,
|
|
64017
64019
|
and_: Optional[List["scout_internal_search_api_SearchQuery"]] = None,
|
|
64018
64020
|
or_: Optional[List["scout_internal_search_api_SearchQuery"]] = None,
|
|
64021
|
+
not_: Optional["scout_internal_search_api_SearchQuery"] = None,
|
|
64019
64022
|
workspace: Optional[str] = None,
|
|
64020
64023
|
type_of_union: Optional[str] = None
|
|
64021
64024
|
) -> None:
|
|
64022
64025
|
if type_of_union is None:
|
|
64023
|
-
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:
|
|
64024
64027
|
raise ValueError('a union must contain a single member')
|
|
64025
64028
|
|
|
64026
64029
|
if date_time_field is not None:
|
|
@@ -64056,6 +64059,9 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64056
64059
|
if or_ is not None:
|
|
64057
64060
|
self._or_ = or_
|
|
64058
64061
|
self._type = 'or'
|
|
64062
|
+
if not_ is not None:
|
|
64063
|
+
self._not_ = not_
|
|
64064
|
+
self._type = 'not'
|
|
64059
64065
|
if workspace is not None:
|
|
64060
64066
|
self._workspace = workspace
|
|
64061
64067
|
self._type = 'workspace'
|
|
@@ -64115,6 +64121,11 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64115
64121
|
raise ValueError('a union value must not be None')
|
|
64116
64122
|
self._or_ = or_
|
|
64117
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'
|
|
64118
64129
|
elif type_of_union == 'workspace':
|
|
64119
64130
|
if workspace is None:
|
|
64120
64131
|
raise ValueError('a union value must not be None')
|
|
@@ -64168,6 +64179,10 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64168
64179
|
def or_(self) -> Optional[List["scout_internal_search_api_SearchQuery"]]:
|
|
64169
64180
|
return self._or_
|
|
64170
64181
|
|
|
64182
|
+
@builtins.property
|
|
64183
|
+
def not_(self) -> Optional["scout_internal_search_api_SearchQuery"]:
|
|
64184
|
+
return self._not_
|
|
64185
|
+
|
|
64171
64186
|
@builtins.property
|
|
64172
64187
|
def workspace(self) -> Optional[str]:
|
|
64173
64188
|
return self._workspace
|
|
@@ -64197,6 +64212,8 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
64197
64212
|
return visitor._and(self.and_)
|
|
64198
64213
|
if self._type == 'or' and self.or_ is not None:
|
|
64199
64214
|
return visitor._or(self.or_)
|
|
64215
|
+
if self._type == 'not' and self.not_ is not None:
|
|
64216
|
+
return visitor._not(self.not_)
|
|
64200
64217
|
if self._type == 'workspace' and self.workspace is not None:
|
|
64201
64218
|
return visitor._workspace(self.workspace)
|
|
64202
64219
|
|
|
@@ -64252,6 +64269,10 @@ class scout_internal_search_api_SearchQueryVisitor:
|
|
|
64252
64269
|
def _or(self, or_: List["scout_internal_search_api_SearchQuery"]) -> Any:
|
|
64253
64270
|
pass
|
|
64254
64271
|
|
|
64272
|
+
@abstractmethod
|
|
64273
|
+
def _not(self, not_: "scout_internal_search_api_SearchQuery") -> Any:
|
|
64274
|
+
pass
|
|
64275
|
+
|
|
64255
64276
|
@abstractmethod
|
|
64256
64277
|
def _workspace(self, workspace: str) -> Any:
|
|
64257
64278
|
pass
|
|
@@ -67828,6 +67849,7 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67828
67849
|
_check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None
|
|
67829
67850
|
_and_: Optional[List["scout_run_api_SearchQuery"]] = None
|
|
67830
67851
|
_or_: Optional[List["scout_run_api_SearchQuery"]] = None
|
|
67852
|
+
_not_: Optional["scout_run_api_SearchQuery"] = None
|
|
67831
67853
|
_workspace: Optional[str] = None
|
|
67832
67854
|
|
|
67833
67855
|
@builtins.classmethod
|
|
@@ -67848,6 +67870,7 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67848
67870
|
'check_alert_states_filter': ConjureFieldDefinition('checkAlertStatesFilter', scout_run_api_CheckAlertStatesFilter),
|
|
67849
67871
|
'and_': ConjureFieldDefinition('and', List[scout_run_api_SearchQuery]),
|
|
67850
67872
|
'or_': ConjureFieldDefinition('or', List[scout_run_api_SearchQuery]),
|
|
67873
|
+
'not_': ConjureFieldDefinition('not', scout_run_api_SearchQuery),
|
|
67851
67874
|
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
67852
67875
|
}
|
|
67853
67876
|
|
|
@@ -67868,11 +67891,12 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67868
67891
|
check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None,
|
|
67869
67892
|
and_: Optional[List["scout_run_api_SearchQuery"]] = None,
|
|
67870
67893
|
or_: Optional[List["scout_run_api_SearchQuery"]] = None,
|
|
67894
|
+
not_: Optional["scout_run_api_SearchQuery"] = None,
|
|
67871
67895
|
workspace: Optional[str] = None,
|
|
67872
67896
|
type_of_union: Optional[str] = None
|
|
67873
67897
|
) -> None:
|
|
67874
67898
|
if type_of_union is None:
|
|
67875
|
-
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:
|
|
67876
67900
|
raise ValueError('a union must contain a single member')
|
|
67877
67901
|
|
|
67878
67902
|
if start_time_inclusive is not None:
|
|
@@ -67920,6 +67944,9 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67920
67944
|
if or_ is not None:
|
|
67921
67945
|
self._or_ = or_
|
|
67922
67946
|
self._type = 'or'
|
|
67947
|
+
if not_ is not None:
|
|
67948
|
+
self._not_ = not_
|
|
67949
|
+
self._type = 'not'
|
|
67923
67950
|
if workspace is not None:
|
|
67924
67951
|
self._workspace = workspace
|
|
67925
67952
|
self._type = 'workspace'
|
|
@@ -67999,6 +68026,11 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
67999
68026
|
raise ValueError('a union value must not be None')
|
|
68000
68027
|
self._or_ = or_
|
|
68001
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'
|
|
68002
68034
|
elif type_of_union == 'workspace':
|
|
68003
68035
|
if workspace is None:
|
|
68004
68036
|
raise ValueError('a union value must not be None')
|
|
@@ -68071,6 +68103,10 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
68071
68103
|
def or_(self) -> Optional[List["scout_run_api_SearchQuery"]]:
|
|
68072
68104
|
return self._or_
|
|
68073
68105
|
|
|
68106
|
+
@builtins.property
|
|
68107
|
+
def not_(self) -> Optional["scout_run_api_SearchQuery"]:
|
|
68108
|
+
return self._not_
|
|
68109
|
+
|
|
68074
68110
|
@builtins.property
|
|
68075
68111
|
def workspace(self) -> Optional[str]:
|
|
68076
68112
|
return self._workspace
|
|
@@ -68108,6 +68144,8 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
68108
68144
|
return visitor._and(self.and_)
|
|
68109
68145
|
if self._type == 'or' and self.or_ is not None:
|
|
68110
68146
|
return visitor._or(self.or_)
|
|
68147
|
+
if self._type == 'not' and self.not_ is not None:
|
|
68148
|
+
return visitor._not(self.not_)
|
|
68111
68149
|
if self._type == 'workspace' and self.workspace is not None:
|
|
68112
68150
|
return visitor._workspace(self.workspace)
|
|
68113
68151
|
|
|
@@ -68179,6 +68217,10 @@ class scout_run_api_SearchQueryVisitor:
|
|
|
68179
68217
|
def _or(self, or_: List["scout_run_api_SearchQuery"]) -> Any:
|
|
68180
68218
|
pass
|
|
68181
68219
|
|
|
68220
|
+
@abstractmethod
|
|
68221
|
+
def _not(self, not_: "scout_run_api_SearchQuery") -> Any:
|
|
68222
|
+
pass
|
|
68223
|
+
|
|
68182
68224
|
@abstractmethod
|
|
68183
68225
|
def _workspace(self, workspace: str) -> Any:
|
|
68184
68226
|
pass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=oowMgVLHeLzULG3QFgP6ONdvtJxqf1ZkVO88TOAV6hY,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
|
|
@@ -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.668.0.dist-info/METADATA,sha256=--fQLGWNJwXw47IOIxGl-0WOSWzNM-QGlqd4VRGP9a8,199
|
|
76
|
+
nominal_api-0.668.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
77
|
+
nominal_api-0.668.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.668.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|