nominal-api 0.773.0__py3-none-any.whl → 0.775.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 +81 -7
- {nominal_api-0.773.0.dist-info → nominal_api-0.775.0.dist-info}/METADATA +1 -1
- {nominal_api-0.773.0.dist-info → nominal_api-0.775.0.dist-info}/RECORD +6 -6
- {nominal_api-0.773.0.dist-info → nominal_api-0.775.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.773.0.dist-info → nominal_api-0.775.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -6260,6 +6260,38 @@ Empty fields in the UpdateEventRequest are left unchanged.
|
|
|
6260
6260
|
|
|
6261
6261
|
return
|
|
6262
6262
|
|
|
6263
|
+
def batch_unarchive_event(self, auth_header: str, request: List[str] = None) -> None:
|
|
6264
|
+
"""Unarchives a set of events
|
|
6265
|
+
"""
|
|
6266
|
+
request = request if request is not None else []
|
|
6267
|
+
_conjure_encoder = ConjureEncoder()
|
|
6268
|
+
|
|
6269
|
+
_headers: Dict[str, Any] = {
|
|
6270
|
+
'Accept': 'application/json',
|
|
6271
|
+
'Content-Type': 'application/json',
|
|
6272
|
+
'Authorization': auth_header,
|
|
6273
|
+
}
|
|
6274
|
+
|
|
6275
|
+
_params: Dict[str, Any] = {
|
|
6276
|
+
}
|
|
6277
|
+
|
|
6278
|
+
_path_params: Dict[str, str] = {
|
|
6279
|
+
}
|
|
6280
|
+
|
|
6281
|
+
_json: Any = _conjure_encoder.default(request)
|
|
6282
|
+
|
|
6283
|
+
_path = '/event/v1/batch-unarchive-events'
|
|
6284
|
+
_path = _path.format(**_path_params)
|
|
6285
|
+
|
|
6286
|
+
_response: Response = self._request(
|
|
6287
|
+
'POST',
|
|
6288
|
+
self._uri + _path,
|
|
6289
|
+
params=_params,
|
|
6290
|
+
headers=_headers,
|
|
6291
|
+
json=_json)
|
|
6292
|
+
|
|
6293
|
+
return
|
|
6294
|
+
|
|
6263
6295
|
def search_events(self, auth_header: str, request: "event_SearchEventsRequest") -> "event_SearchEventsResponse":
|
|
6264
6296
|
"""Searches for events that match the given filters.
|
|
6265
6297
|
"""
|
|
@@ -20775,6 +20807,7 @@ scout_asset_api_SearchAssetChannelsResponse.__module__ = "nominal_api.scout_asse
|
|
|
20775
20807
|
|
|
20776
20808
|
class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
20777
20809
|
_search_text: Optional[str] = None
|
|
20810
|
+
_exact_substring: Optional[str] = None
|
|
20778
20811
|
_label: Optional[str] = None
|
|
20779
20812
|
_property: Optional["api_Property"] = None
|
|
20780
20813
|
_type_rid: Optional[str] = None
|
|
@@ -20787,6 +20820,7 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
20787
20820
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
20788
20821
|
return {
|
|
20789
20822
|
'search_text': ConjureFieldDefinition('searchText', str),
|
|
20823
|
+
'exact_substring': ConjureFieldDefinition('exactSubstring', str),
|
|
20790
20824
|
'label': ConjureFieldDefinition('label', api_Label),
|
|
20791
20825
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
20792
20826
|
'type_rid': ConjureFieldDefinition('typeRid', scout_rids_api_TypeRid),
|
|
@@ -20799,6 +20833,7 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
20799
20833
|
def __init__(
|
|
20800
20834
|
self,
|
|
20801
20835
|
search_text: Optional[str] = None,
|
|
20836
|
+
exact_substring: Optional[str] = None,
|
|
20802
20837
|
label: Optional[str] = None,
|
|
20803
20838
|
property: Optional["api_Property"] = None,
|
|
20804
20839
|
type_rid: Optional[str] = None,
|
|
@@ -20809,12 +20844,15 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
20809
20844
|
type_of_union: Optional[str] = None
|
|
20810
20845
|
) -> None:
|
|
20811
20846
|
if type_of_union is None:
|
|
20812
|
-
if (search_text is not None) + (label is not None) + (property is not None) + (type_rid is not None) + (and_ is not None) + (or_ is not None) + (is_staged is not None) + (workspace is not None) != 1:
|
|
20847
|
+
if (search_text is not None) + (exact_substring is not None) + (label is not None) + (property is not None) + (type_rid is not None) + (and_ is not None) + (or_ is not None) + (is_staged is not None) + (workspace is not None) != 1:
|
|
20813
20848
|
raise ValueError('a union must contain a single member')
|
|
20814
20849
|
|
|
20815
20850
|
if search_text is not None:
|
|
20816
20851
|
self._search_text = search_text
|
|
20817
20852
|
self._type = 'searchText'
|
|
20853
|
+
if exact_substring is not None:
|
|
20854
|
+
self._exact_substring = exact_substring
|
|
20855
|
+
self._type = 'exactSubstring'
|
|
20818
20856
|
if label is not None:
|
|
20819
20857
|
self._label = label
|
|
20820
20858
|
self._type = 'label'
|
|
@@ -20842,6 +20880,11 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
20842
20880
|
raise ValueError('a union value must not be None')
|
|
20843
20881
|
self._search_text = search_text
|
|
20844
20882
|
self._type = 'searchText'
|
|
20883
|
+
elif type_of_union == 'exactSubstring':
|
|
20884
|
+
if exact_substring is None:
|
|
20885
|
+
raise ValueError('a union value must not be None')
|
|
20886
|
+
self._exact_substring = exact_substring
|
|
20887
|
+
self._type = 'exactSubstring'
|
|
20845
20888
|
elif type_of_union == 'label':
|
|
20846
20889
|
if label is None:
|
|
20847
20890
|
raise ValueError('a union value must not be None')
|
|
@@ -20882,6 +20925,12 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
20882
20925
|
def search_text(self) -> Optional[str]:
|
|
20883
20926
|
return self._search_text
|
|
20884
20927
|
|
|
20928
|
+
@builtins.property
|
|
20929
|
+
def exact_substring(self) -> Optional[str]:
|
|
20930
|
+
"""An case-insensitive substring match of the title or description of the asset.
|
|
20931
|
+
"""
|
|
20932
|
+
return self._exact_substring
|
|
20933
|
+
|
|
20885
20934
|
@builtins.property
|
|
20886
20935
|
def label(self) -> Optional[str]:
|
|
20887
20936
|
return self._label
|
|
@@ -20915,6 +20964,8 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
20915
20964
|
raise ValueError('{} is not an instance of scout_asset_api_SearchAssetsQueryVisitor'.format(visitor.__class__.__name__))
|
|
20916
20965
|
if self._type == 'searchText' and self.search_text is not None:
|
|
20917
20966
|
return visitor._search_text(self.search_text)
|
|
20967
|
+
if self._type == 'exactSubstring' and self.exact_substring is not None:
|
|
20968
|
+
return visitor._exact_substring(self.exact_substring)
|
|
20918
20969
|
if self._type == 'label' and self.label is not None:
|
|
20919
20970
|
return visitor._label(self.label)
|
|
20920
20971
|
if self._type == 'property' and self.property is not None:
|
|
@@ -20942,6 +20993,10 @@ class scout_asset_api_SearchAssetsQueryVisitor:
|
|
|
20942
20993
|
def _search_text(self, search_text: str) -> Any:
|
|
20943
20994
|
pass
|
|
20944
20995
|
|
|
20996
|
+
@abstractmethod
|
|
20997
|
+
def _exact_substring(self, exact_substring: str) -> Any:
|
|
20998
|
+
pass
|
|
20999
|
+
|
|
20945
21000
|
@abstractmethod
|
|
20946
21001
|
def _label(self, label: str) -> Any:
|
|
20947
21002
|
pass
|
|
@@ -37732,14 +37787,16 @@ class scout_compute_api_AggregateNumericSeries(ConjureBeanType):
|
|
|
37732
37787
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
37733
37788
|
return {
|
|
37734
37789
|
'input': ConjureFieldDefinition('input', scout_compute_api_NumericSeries),
|
|
37735
|
-
'function': ConjureFieldDefinition('function', scout_compute_api_NumericAggregationFunction)
|
|
37790
|
+
'function': ConjureFieldDefinition('function', scout_compute_api_NumericAggregationFunction),
|
|
37791
|
+
'group_by_tags': ConjureFieldDefinition('groupByTags', List[scout_compute_api_StringConstant])
|
|
37736
37792
|
}
|
|
37737
37793
|
|
|
37738
|
-
__slots__: List[str] = ['_input', '_function']
|
|
37794
|
+
__slots__: List[str] = ['_input', '_function', '_group_by_tags']
|
|
37739
37795
|
|
|
37740
|
-
def __init__(self, function: "scout_compute_api_NumericAggregationFunction", input: "scout_compute_api_NumericSeries") -> None:
|
|
37796
|
+
def __init__(self, function: "scout_compute_api_NumericAggregationFunction", group_by_tags: List["scout_compute_api_StringConstant"], input: "scout_compute_api_NumericSeries") -> None:
|
|
37741
37797
|
self._input = input
|
|
37742
37798
|
self._function = function
|
|
37799
|
+
self._group_by_tags = group_by_tags
|
|
37743
37800
|
|
|
37744
37801
|
@builtins.property
|
|
37745
37802
|
def input(self) -> "scout_compute_api_NumericSeries":
|
|
@@ -37749,6 +37806,15 @@ class scout_compute_api_AggregateNumericSeries(ConjureBeanType):
|
|
|
37749
37806
|
def function(self) -> "scout_compute_api_NumericAggregationFunction":
|
|
37750
37807
|
return self._function
|
|
37751
37808
|
|
|
37809
|
+
@builtins.property
|
|
37810
|
+
def group_by_tags(self) -> List["scout_compute_api_StringConstant"]:
|
|
37811
|
+
"""Tags to group by for the aggregation.
|
|
37812
|
+
If left empty, the tags to group by will be equivalent to those in the input series.
|
|
37813
|
+
If specified, the result will be grouped ONLY by the specified tags.
|
|
37814
|
+
The tags specified here MUST be a (non-strict) subset of the input series's group by tags.
|
|
37815
|
+
"""
|
|
37816
|
+
return self._group_by_tags
|
|
37817
|
+
|
|
37752
37818
|
|
|
37753
37819
|
scout_compute_api_AggregateNumericSeries.__name__ = "AggregateNumericSeries"
|
|
37754
37820
|
scout_compute_api_AggregateNumericSeries.__qualname__ = "AggregateNumericSeries"
|
|
@@ -46594,6 +46660,8 @@ class scout_compute_api_NumericUnionOperation(ConjureEnumType):
|
|
|
46594
46660
|
'''SUM'''
|
|
46595
46661
|
COUNT = 'COUNT'
|
|
46596
46662
|
'''COUNT'''
|
|
46663
|
+
STANDARD_DEVIATION = 'STANDARD_DEVIATION'
|
|
46664
|
+
'''STANDARD_DEVIATION'''
|
|
46597
46665
|
THROW = 'THROW'
|
|
46598
46666
|
'''THROW'''
|
|
46599
46667
|
UNKNOWN = 'UNKNOWN'
|
|
@@ -53722,14 +53790,16 @@ class scout_compute_resolved_api_AggregateNumericSeriesNode(ConjureBeanType):
|
|
|
53722
53790
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
53723
53791
|
return {
|
|
53724
53792
|
'input': ConjureFieldDefinition('input', scout_compute_resolved_api_NumericSeriesNode),
|
|
53725
|
-
'aggregation_function': ConjureFieldDefinition('aggregationFunction', scout_compute_api_NumericAggregationFunction)
|
|
53793
|
+
'aggregation_function': ConjureFieldDefinition('aggregationFunction', scout_compute_api_NumericAggregationFunction),
|
|
53794
|
+
'group_by_tags': ConjureFieldDefinition('groupByTags', List[api_TagName])
|
|
53726
53795
|
}
|
|
53727
53796
|
|
|
53728
|
-
__slots__: List[str] = ['_input', '_aggregation_function']
|
|
53797
|
+
__slots__: List[str] = ['_input', '_aggregation_function', '_group_by_tags']
|
|
53729
53798
|
|
|
53730
|
-
def __init__(self, aggregation_function: "scout_compute_api_NumericAggregationFunction", input: "scout_compute_resolved_api_NumericSeriesNode") -> None:
|
|
53799
|
+
def __init__(self, aggregation_function: "scout_compute_api_NumericAggregationFunction", group_by_tags: List[str], input: "scout_compute_resolved_api_NumericSeriesNode") -> None:
|
|
53731
53800
|
self._input = input
|
|
53732
53801
|
self._aggregation_function = aggregation_function
|
|
53802
|
+
self._group_by_tags = group_by_tags
|
|
53733
53803
|
|
|
53734
53804
|
@builtins.property
|
|
53735
53805
|
def input(self) -> "scout_compute_resolved_api_NumericSeriesNode":
|
|
@@ -53739,6 +53809,10 @@ class scout_compute_resolved_api_AggregateNumericSeriesNode(ConjureBeanType):
|
|
|
53739
53809
|
def aggregation_function(self) -> "scout_compute_api_NumericAggregationFunction":
|
|
53740
53810
|
return self._aggregation_function
|
|
53741
53811
|
|
|
53812
|
+
@builtins.property
|
|
53813
|
+
def group_by_tags(self) -> List[str]:
|
|
53814
|
+
return self._group_by_tags
|
|
53815
|
+
|
|
53742
53816
|
|
|
53743
53817
|
scout_compute_resolved_api_AggregateNumericSeriesNode.__name__ = "AggregateNumericSeriesNode"
|
|
53744
53818
|
scout_compute_resolved_api_AggregateNumericSeriesNode.__qualname__ = "AggregateNumericSeriesNode"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=EQWwxY_E4KKgtO84VsO-vhrc9hZLtMu0we3TwjeDjhs,2012
|
|
2
|
+
nominal_api/_impl.py,sha256=Q8P0ZhGkgPncLt1wrl4J7hCL0cPkJJMZ_MuGg3n0iOA,3446389
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=PMREKP7UhxJ1_gHkrlJET46qlDHksKMm6-woR1p6WnU,1970
|
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
|
|
@@ -75,7 +75,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
|
|
|
75
75
|
nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
|
|
76
76
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
|
|
77
77
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
|
78
|
-
nominal_api-0.
|
|
79
|
-
nominal_api-0.
|
|
80
|
-
nominal_api-0.
|
|
81
|
-
nominal_api-0.
|
|
78
|
+
nominal_api-0.775.0.dist-info/METADATA,sha256=znF2GiIZIjDxK8jfUUJo_vf5UE_OF7aBTdwAp2683jc,199
|
|
79
|
+
nominal_api-0.775.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
80
|
+
nominal_api-0.775.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
81
|
+
nominal_api-0.775.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|