nominal-api 0.600.0__py3-none-any.whl → 0.600.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 +1 -1
- nominal_api/_impl.py +38 -5
- {nominal_api-0.600.0.dist-info → nominal_api-0.600.1.dist-info}/METADATA +1 -1
- {nominal_api-0.600.0.dist-info → nominal_api-0.600.1.dist-info}/RECORD +6 -6
- {nominal_api-0.600.0.dist-info → nominal_api-0.600.1.dist-info}/WHEEL +0 -0
- {nominal_api-0.600.0.dist-info → nominal_api-0.600.1.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -57914,6 +57914,7 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
57914
57914
|
_property: Optional["api_Property"] = None
|
|
57915
57915
|
_and_: Optional[List["scout_internal_search_api_SearchQuery"]] = None
|
|
57916
57916
|
_or_: Optional[List["scout_internal_search_api_SearchQuery"]] = None
|
|
57917
|
+
_workspace: Optional[str] = None
|
|
57917
57918
|
|
|
57918
57919
|
@builtins.classmethod
|
|
57919
57920
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -57928,7 +57929,8 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
57928
57929
|
'label': ConjureFieldDefinition('label', api_Label),
|
|
57929
57930
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
57930
57931
|
'and_': ConjureFieldDefinition('and', List[scout_internal_search_api_SearchQuery]),
|
|
57931
|
-
'or_': ConjureFieldDefinition('or', List[scout_internal_search_api_SearchQuery])
|
|
57932
|
+
'or_': ConjureFieldDefinition('or', List[scout_internal_search_api_SearchQuery]),
|
|
57933
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
57932
57934
|
}
|
|
57933
57935
|
|
|
57934
57936
|
def __init__(
|
|
@@ -57944,10 +57946,11 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
57944
57946
|
property: Optional["api_Property"] = None,
|
|
57945
57947
|
and_: Optional[List["scout_internal_search_api_SearchQuery"]] = None,
|
|
57946
57948
|
or_: Optional[List["scout_internal_search_api_SearchQuery"]] = None,
|
|
57949
|
+
workspace: Optional[str] = None,
|
|
57947
57950
|
type_of_union: Optional[str] = None
|
|
57948
57951
|
) -> None:
|
|
57949
57952
|
if type_of_union is None:
|
|
57950
|
-
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) != 1:
|
|
57953
|
+
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:
|
|
57951
57954
|
raise ValueError('a union must contain a single member')
|
|
57952
57955
|
|
|
57953
57956
|
if date_time_field is not None:
|
|
@@ -57983,6 +57986,9 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
57983
57986
|
if or_ is not None:
|
|
57984
57987
|
self._or_ = or_
|
|
57985
57988
|
self._type = 'or'
|
|
57989
|
+
if workspace is not None:
|
|
57990
|
+
self._workspace = workspace
|
|
57991
|
+
self._type = 'workspace'
|
|
57986
57992
|
|
|
57987
57993
|
elif type_of_union == 'dateTimeField':
|
|
57988
57994
|
if date_time_field is None:
|
|
@@ -58039,6 +58045,11 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
58039
58045
|
raise ValueError('a union value must not be None')
|
|
58040
58046
|
self._or_ = or_
|
|
58041
58047
|
self._type = 'or'
|
|
58048
|
+
elif type_of_union == 'workspace':
|
|
58049
|
+
if workspace is None:
|
|
58050
|
+
raise ValueError('a union value must not be None')
|
|
58051
|
+
self._workspace = workspace
|
|
58052
|
+
self._type = 'workspace'
|
|
58042
58053
|
|
|
58043
58054
|
@builtins.property
|
|
58044
58055
|
def date_time_field(self) -> Optional["scout_internal_search_api_DateTimeField"]:
|
|
@@ -58087,6 +58098,10 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
58087
58098
|
def or_(self) -> Optional[List["scout_internal_search_api_SearchQuery"]]:
|
|
58088
58099
|
return self._or_
|
|
58089
58100
|
|
|
58101
|
+
@builtins.property
|
|
58102
|
+
def workspace(self) -> Optional[str]:
|
|
58103
|
+
return self._workspace
|
|
58104
|
+
|
|
58090
58105
|
def accept(self, visitor) -> Any:
|
|
58091
58106
|
if not isinstance(visitor, scout_internal_search_api_SearchQueryVisitor):
|
|
58092
58107
|
raise ValueError('{} is not an instance of scout_internal_search_api_SearchQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -58112,6 +58127,8 @@ class scout_internal_search_api_SearchQuery(ConjureUnionType):
|
|
|
58112
58127
|
return visitor._and(self.and_)
|
|
58113
58128
|
if self._type == 'or' and self.or_ is not None:
|
|
58114
58129
|
return visitor._or(self.or_)
|
|
58130
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
58131
|
+
return visitor._workspace(self.workspace)
|
|
58115
58132
|
|
|
58116
58133
|
|
|
58117
58134
|
scout_internal_search_api_SearchQuery.__name__ = "SearchQuery"
|
|
@@ -58165,6 +58182,10 @@ class scout_internal_search_api_SearchQueryVisitor:
|
|
|
58165
58182
|
def _or(self, or_: List["scout_internal_search_api_SearchQuery"]) -> Any:
|
|
58166
58183
|
pass
|
|
58167
58184
|
|
|
58185
|
+
@abstractmethod
|
|
58186
|
+
def _workspace(self, workspace: str) -> Any:
|
|
58187
|
+
pass
|
|
58188
|
+
|
|
58168
58189
|
|
|
58169
58190
|
scout_internal_search_api_SearchQueryVisitor.__name__ = "SearchQueryVisitor"
|
|
58170
58191
|
scout_internal_search_api_SearchQueryVisitor.__qualname__ = "SearchQueryVisitor"
|
|
@@ -61202,14 +61223,16 @@ class scout_run_api_GetRunByIdRequest(ConjureBeanType):
|
|
|
61202
61223
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
61203
61224
|
return {
|
|
61204
61225
|
'run_number': ConjureFieldDefinition('runNumber', int),
|
|
61205
|
-
'run_prefix': ConjureFieldDefinition('runPrefix', OptionalTypeWrapper[str])
|
|
61226
|
+
'run_prefix': ConjureFieldDefinition('runPrefix', OptionalTypeWrapper[str]),
|
|
61227
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
61206
61228
|
}
|
|
61207
61229
|
|
|
61208
|
-
__slots__: List[str] = ['_run_number', '_run_prefix']
|
|
61230
|
+
__slots__: List[str] = ['_run_number', '_run_prefix', '_workspace']
|
|
61209
61231
|
|
|
61210
|
-
def __init__(self, run_number: int, run_prefix: Optional[str] = None) -> None:
|
|
61232
|
+
def __init__(self, run_number: int, run_prefix: Optional[str] = None, workspace: Optional[str] = None) -> None:
|
|
61211
61233
|
self._run_number = run_number
|
|
61212
61234
|
self._run_prefix = run_prefix
|
|
61235
|
+
self._workspace = workspace
|
|
61213
61236
|
|
|
61214
61237
|
@builtins.property
|
|
61215
61238
|
def run_number(self) -> int:
|
|
@@ -61219,6 +61242,16 @@ class scout_run_api_GetRunByIdRequest(ConjureBeanType):
|
|
|
61219
61242
|
def run_prefix(self) -> Optional[str]:
|
|
61220
61243
|
return self._run_prefix
|
|
61221
61244
|
|
|
61245
|
+
@builtins.property
|
|
61246
|
+
def workspace(self) -> Optional[str]:
|
|
61247
|
+
"""
|
|
61248
|
+
The workspace in which to query for the run. If not provided, the run
|
|
61249
|
+
will be queried in the default workspace for the user's organization,
|
|
61250
|
+
if the default workspace for the organization is configured and the user
|
|
61251
|
+
has access to it.
|
|
61252
|
+
"""
|
|
61253
|
+
return self._workspace
|
|
61254
|
+
|
|
61222
61255
|
|
|
61223
61256
|
scout_run_api_GetRunByIdRequest.__name__ = "GetRunByIdRequest"
|
|
61224
61257
|
scout_run_api_GetRunByIdRequest.__qualname__ = "GetRunByIdRequest"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=WQUE9ZrHGG6WPz3S846IAANGfldUjSSBdsFIctJ581Q,1968
|
|
2
|
+
nominal_api/_impl.py,sha256=RN_ZBGYUug4k6oBQH4y6oXUril9sIp6ZBk8lxElwY9k,2882390
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=kJBEE_HLVpKYdLH12KyO-cSAVzwxYpBwaaDutCtT-LM,1236
|
|
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.600.
|
|
76
|
-
nominal_api-0.600.
|
|
77
|
-
nominal_api-0.600.
|
|
78
|
-
nominal_api-0.600.
|
|
75
|
+
nominal_api-0.600.1.dist-info/METADATA,sha256=X0QHV4n9Kb6Kdf3V67efLq-yUq1P48oJ_S4J5SDMK6s,199
|
|
76
|
+
nominal_api-0.600.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
77
|
+
nominal_api-0.600.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.600.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|