nominal-api 0.828.0__py3-none-any.whl → 0.830.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 +205 -14
- {nominal_api-0.828.0.dist-info → nominal_api-0.830.0.dist-info}/METADATA +1 -1
- {nominal_api-0.828.0.dist-info → nominal_api-0.830.0.dist-info}/RECORD +6 -6
- {nominal_api-0.828.0.dist-info → nominal_api-0.830.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.828.0.dist-info → nominal_api-0.830.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -6711,6 +6711,9 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
6711
6711
|
_or_: Optional[List["event_HistogramFilterQuery"]] = None
|
|
6712
6712
|
_not_: Optional["event_HistogramFilterQuery"] = None
|
|
6713
6713
|
_workspace: Optional[str] = None
|
|
6714
|
+
_procedure: Optional[str] = None
|
|
6715
|
+
_procedure_execution: Optional[str] = None
|
|
6716
|
+
_step_id: Optional[str] = None
|
|
6714
6717
|
|
|
6715
6718
|
@builtins.classmethod
|
|
6716
6719
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -6732,7 +6735,10 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
6732
6735
|
'and_': ConjureFieldDefinition('and', List[event_HistogramFilterQuery]),
|
|
6733
6736
|
'or_': ConjureFieldDefinition('or', List[event_HistogramFilterQuery]),
|
|
6734
6737
|
'not_': ConjureFieldDefinition('not', event_HistogramFilterQuery),
|
|
6735
|
-
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
6738
|
+
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid),
|
|
6739
|
+
'procedure': ConjureFieldDefinition('procedure', api_rids_ProcedureRid),
|
|
6740
|
+
'procedure_execution': ConjureFieldDefinition('procedureExecution', api_rids_ProcedureExecutionRid),
|
|
6741
|
+
'step_id': ConjureFieldDefinition('stepId', str)
|
|
6736
6742
|
}
|
|
6737
6743
|
|
|
6738
6744
|
def __init__(
|
|
@@ -6755,10 +6761,13 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
6755
6761
|
or_: Optional[List["event_HistogramFilterQuery"]] = None,
|
|
6756
6762
|
not_: Optional["event_HistogramFilterQuery"] = None,
|
|
6757
6763
|
workspace: Optional[str] = None,
|
|
6764
|
+
procedure: Optional[str] = None,
|
|
6765
|
+
procedure_execution: Optional[str] = None,
|
|
6766
|
+
step_id: Optional[str] = None,
|
|
6758
6767
|
type_of_union: Optional[str] = None
|
|
6759
6768
|
) -> None:
|
|
6760
6769
|
if type_of_union is None:
|
|
6761
|
-
if (search_text is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by 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:
|
|
6770
|
+
if (search_text is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by 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) + (procedure is not None) + (procedure_execution is not None) + (step_id is not None) != 1:
|
|
6762
6771
|
raise ValueError('a union must contain a single member')
|
|
6763
6772
|
|
|
6764
6773
|
if search_text is not None:
|
|
@@ -6815,6 +6824,15 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
6815
6824
|
if workspace is not None:
|
|
6816
6825
|
self._workspace = workspace
|
|
6817
6826
|
self._type = 'workspace'
|
|
6827
|
+
if procedure is not None:
|
|
6828
|
+
self._procedure = procedure
|
|
6829
|
+
self._type = 'procedure'
|
|
6830
|
+
if procedure_execution is not None:
|
|
6831
|
+
self._procedure_execution = procedure_execution
|
|
6832
|
+
self._type = 'procedureExecution'
|
|
6833
|
+
if step_id is not None:
|
|
6834
|
+
self._step_id = step_id
|
|
6835
|
+
self._type = 'stepId'
|
|
6818
6836
|
|
|
6819
6837
|
elif type_of_union == 'searchText':
|
|
6820
6838
|
if search_text is None:
|
|
@@ -6906,6 +6924,21 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
6906
6924
|
raise ValueError('a union value must not be None')
|
|
6907
6925
|
self._workspace = workspace
|
|
6908
6926
|
self._type = 'workspace'
|
|
6927
|
+
elif type_of_union == 'procedure':
|
|
6928
|
+
if procedure is None:
|
|
6929
|
+
raise ValueError('a union value must not be None')
|
|
6930
|
+
self._procedure = procedure
|
|
6931
|
+
self._type = 'procedure'
|
|
6932
|
+
elif type_of_union == 'procedureExecution':
|
|
6933
|
+
if procedure_execution is None:
|
|
6934
|
+
raise ValueError('a union value must not be None')
|
|
6935
|
+
self._procedure_execution = procedure_execution
|
|
6936
|
+
self._type = 'procedureExecution'
|
|
6937
|
+
elif type_of_union == 'stepId':
|
|
6938
|
+
if step_id is None:
|
|
6939
|
+
raise ValueError('a union value must not be None')
|
|
6940
|
+
self._step_id = step_id
|
|
6941
|
+
self._type = 'stepId'
|
|
6909
6942
|
|
|
6910
6943
|
@builtins.property
|
|
6911
6944
|
def search_text(self) -> Optional[str]:
|
|
@@ -6979,6 +7012,18 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
6979
7012
|
def workspace(self) -> Optional[str]:
|
|
6980
7013
|
return self._workspace
|
|
6981
7014
|
|
|
7015
|
+
@builtins.property
|
|
7016
|
+
def procedure(self) -> Optional[str]:
|
|
7017
|
+
return self._procedure
|
|
7018
|
+
|
|
7019
|
+
@builtins.property
|
|
7020
|
+
def procedure_execution(self) -> Optional[str]:
|
|
7021
|
+
return self._procedure_execution
|
|
7022
|
+
|
|
7023
|
+
@builtins.property
|
|
7024
|
+
def step_id(self) -> Optional[str]:
|
|
7025
|
+
return self._step_id
|
|
7026
|
+
|
|
6982
7027
|
def accept(self, visitor) -> Any:
|
|
6983
7028
|
if not isinstance(visitor, event_HistogramFilterQueryVisitor):
|
|
6984
7029
|
raise ValueError('{} is not an instance of event_HistogramFilterQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -7018,6 +7063,12 @@ class event_HistogramFilterQuery(ConjureUnionType):
|
|
|
7018
7063
|
return visitor._not(self.not_)
|
|
7019
7064
|
if self._type == 'workspace' and self.workspace is not None:
|
|
7020
7065
|
return visitor._workspace(self.workspace)
|
|
7066
|
+
if self._type == 'procedure' and self.procedure is not None:
|
|
7067
|
+
return visitor._procedure(self.procedure)
|
|
7068
|
+
if self._type == 'procedureExecution' and self.procedure_execution is not None:
|
|
7069
|
+
return visitor._procedure_execution(self.procedure_execution)
|
|
7070
|
+
if self._type == 'stepId' and self.step_id is not None:
|
|
7071
|
+
return visitor._step_id(self.step_id)
|
|
7021
7072
|
|
|
7022
7073
|
|
|
7023
7074
|
event_HistogramFilterQuery.__name__ = "HistogramFilterQuery"
|
|
@@ -7099,6 +7150,18 @@ class event_HistogramFilterQueryVisitor:
|
|
|
7099
7150
|
def _workspace(self, workspace: str) -> Any:
|
|
7100
7151
|
pass
|
|
7101
7152
|
|
|
7153
|
+
@abstractmethod
|
|
7154
|
+
def _procedure(self, procedure: str) -> Any:
|
|
7155
|
+
pass
|
|
7156
|
+
|
|
7157
|
+
@abstractmethod
|
|
7158
|
+
def _procedure_execution(self, procedure_execution: str) -> Any:
|
|
7159
|
+
pass
|
|
7160
|
+
|
|
7161
|
+
@abstractmethod
|
|
7162
|
+
def _step_id(self, step_id: str) -> Any:
|
|
7163
|
+
pass
|
|
7164
|
+
|
|
7102
7165
|
|
|
7103
7166
|
event_HistogramFilterQueryVisitor.__name__ = "HistogramFilterQueryVisitor"
|
|
7104
7167
|
event_HistogramFilterQueryVisitor.__qualname__ = "HistogramFilterQueryVisitor"
|
|
@@ -7136,22 +7199,28 @@ class event_ProcedureEventOrigin(ConjureBeanType):
|
|
|
7136
7199
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
7137
7200
|
return {
|
|
7138
7201
|
'procedure_execution_rid': ConjureFieldDefinition('procedureExecutionRid', api_rids_ProcedureExecutionRid),
|
|
7139
|
-
'
|
|
7202
|
+
'procedure_rid': ConjureFieldDefinition('procedureRid', api_rids_ProcedureRid),
|
|
7203
|
+
'step_id': ConjureFieldDefinition('stepId', str)
|
|
7140
7204
|
}
|
|
7141
7205
|
|
|
7142
|
-
__slots__: List[str] = ['_procedure_execution_rid', '
|
|
7206
|
+
__slots__: List[str] = ['_procedure_execution_rid', '_procedure_rid', '_step_id']
|
|
7143
7207
|
|
|
7144
|
-
def __init__(self, procedure_execution_rid: str,
|
|
7208
|
+
def __init__(self, procedure_execution_rid: str, procedure_rid: str, step_id: str) -> None:
|
|
7145
7209
|
self._procedure_execution_rid = procedure_execution_rid
|
|
7146
|
-
self.
|
|
7210
|
+
self._procedure_rid = procedure_rid
|
|
7211
|
+
self._step_id = step_id
|
|
7147
7212
|
|
|
7148
7213
|
@builtins.property
|
|
7149
7214
|
def procedure_execution_rid(self) -> str:
|
|
7150
7215
|
return self._procedure_execution_rid
|
|
7151
7216
|
|
|
7152
7217
|
@builtins.property
|
|
7153
|
-
def
|
|
7154
|
-
return self.
|
|
7218
|
+
def procedure_rid(self) -> str:
|
|
7219
|
+
return self._procedure_rid
|
|
7220
|
+
|
|
7221
|
+
@builtins.property
|
|
7222
|
+
def step_id(self) -> str:
|
|
7223
|
+
return self._step_id
|
|
7155
7224
|
|
|
7156
7225
|
|
|
7157
7226
|
event_ProcedureEventOrigin.__name__ = "ProcedureEventOrigin"
|
|
@@ -7285,6 +7354,9 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7285
7354
|
_or_: Optional[List["event_SearchQuery"]] = None
|
|
7286
7355
|
_not_: Optional["event_SearchQuery"] = None
|
|
7287
7356
|
_workspace: Optional[str] = None
|
|
7357
|
+
_procedure: Optional[str] = None
|
|
7358
|
+
_procedure_execution: Optional[str] = None
|
|
7359
|
+
_step_id: Optional[str] = None
|
|
7288
7360
|
|
|
7289
7361
|
@builtins.classmethod
|
|
7290
7362
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -7309,7 +7381,10 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7309
7381
|
'and_': ConjureFieldDefinition('and', List[event_SearchQuery]),
|
|
7310
7382
|
'or_': ConjureFieldDefinition('or', List[event_SearchQuery]),
|
|
7311
7383
|
'not_': ConjureFieldDefinition('not', event_SearchQuery),
|
|
7312
|
-
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
7384
|
+
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid),
|
|
7385
|
+
'procedure': ConjureFieldDefinition('procedure', api_rids_ProcedureRid),
|
|
7386
|
+
'procedure_execution': ConjureFieldDefinition('procedureExecution', api_rids_ProcedureExecutionRid),
|
|
7387
|
+
'step_id': ConjureFieldDefinition('stepId', str)
|
|
7313
7388
|
}
|
|
7314
7389
|
|
|
7315
7390
|
def __init__(
|
|
@@ -7335,10 +7410,13 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7335
7410
|
or_: Optional[List["event_SearchQuery"]] = None,
|
|
7336
7411
|
not_: Optional["event_SearchQuery"] = None,
|
|
7337
7412
|
workspace: Optional[str] = None,
|
|
7413
|
+
procedure: Optional[str] = None,
|
|
7414
|
+
procedure_execution: Optional[str] = None,
|
|
7415
|
+
step_id: Optional[str] = None,
|
|
7338
7416
|
type_of_union: Optional[str] = None
|
|
7339
7417
|
) -> None:
|
|
7340
7418
|
if type_of_union is None:
|
|
7341
|
-
if (search_text is not None) + (after is not None) + (before is not None) + (advanced_time_filter is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by 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:
|
|
7419
|
+
if (search_text is not None) + (after is not None) + (before is not None) + (advanced_time_filter is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by 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) + (procedure is not None) + (procedure_execution is not None) + (step_id is not None) != 1:
|
|
7342
7420
|
raise ValueError('a union must contain a single member')
|
|
7343
7421
|
|
|
7344
7422
|
if search_text is not None:
|
|
@@ -7404,6 +7482,15 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7404
7482
|
if workspace is not None:
|
|
7405
7483
|
self._workspace = workspace
|
|
7406
7484
|
self._type = 'workspace'
|
|
7485
|
+
if procedure is not None:
|
|
7486
|
+
self._procedure = procedure
|
|
7487
|
+
self._type = 'procedure'
|
|
7488
|
+
if procedure_execution is not None:
|
|
7489
|
+
self._procedure_execution = procedure_execution
|
|
7490
|
+
self._type = 'procedureExecution'
|
|
7491
|
+
if step_id is not None:
|
|
7492
|
+
self._step_id = step_id
|
|
7493
|
+
self._type = 'stepId'
|
|
7407
7494
|
|
|
7408
7495
|
elif type_of_union == 'searchText':
|
|
7409
7496
|
if search_text is None:
|
|
@@ -7510,6 +7597,21 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
7510
7597
|
raise ValueError('a union value must not be None')
|
|
7511
7598
|
self._workspace = workspace
|
|
7512
7599
|
self._type = 'workspace'
|
|
7600
|
+
elif type_of_union == 'procedure':
|
|
7601
|
+
if procedure is None:
|
|
7602
|
+
raise ValueError('a union value must not be None')
|
|
7603
|
+
self._procedure = procedure
|
|
7604
|
+
self._type = 'procedure'
|
|
7605
|
+
elif type_of_union == 'procedureExecution':
|
|
7606
|
+
if procedure_execution is None:
|
|
7607
|
+
raise ValueError('a union value must not be None')
|
|
7608
|
+
self._procedure_execution = procedure_execution
|
|
7609
|
+
self._type = 'procedureExecution'
|
|
7610
|
+
elif type_of_union == 'stepId':
|
|
7611
|
+
if step_id is None:
|
|
7612
|
+
raise ValueError('a union value must not be None')
|
|
7613
|
+
self._step_id = step_id
|
|
7614
|
+
self._type = 'stepId'
|
|
7513
7615
|
|
|
7514
7616
|
@builtins.property
|
|
7515
7617
|
def search_text(self) -> Optional[str]:
|
|
@@ -7601,6 +7703,18 @@ This includes events that start before, but end after this time.
|
|
|
7601
7703
|
def workspace(self) -> Optional[str]:
|
|
7602
7704
|
return self._workspace
|
|
7603
7705
|
|
|
7706
|
+
@builtins.property
|
|
7707
|
+
def procedure(self) -> Optional[str]:
|
|
7708
|
+
return self._procedure
|
|
7709
|
+
|
|
7710
|
+
@builtins.property
|
|
7711
|
+
def procedure_execution(self) -> Optional[str]:
|
|
7712
|
+
return self._procedure_execution
|
|
7713
|
+
|
|
7714
|
+
@builtins.property
|
|
7715
|
+
def step_id(self) -> Optional[str]:
|
|
7716
|
+
return self._step_id
|
|
7717
|
+
|
|
7604
7718
|
def accept(self, visitor) -> Any:
|
|
7605
7719
|
if not isinstance(visitor, event_SearchQueryVisitor):
|
|
7606
7720
|
raise ValueError('{} is not an instance of event_SearchQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -7646,6 +7760,12 @@ This includes events that start before, but end after this time.
|
|
|
7646
7760
|
return visitor._not(self.not_)
|
|
7647
7761
|
if self._type == 'workspace' and self.workspace is not None:
|
|
7648
7762
|
return visitor._workspace(self.workspace)
|
|
7763
|
+
if self._type == 'procedure' and self.procedure is not None:
|
|
7764
|
+
return visitor._procedure(self.procedure)
|
|
7765
|
+
if self._type == 'procedureExecution' and self.procedure_execution is not None:
|
|
7766
|
+
return visitor._procedure_execution(self.procedure_execution)
|
|
7767
|
+
if self._type == 'stepId' and self.step_id is not None:
|
|
7768
|
+
return visitor._step_id(self.step_id)
|
|
7649
7769
|
|
|
7650
7770
|
|
|
7651
7771
|
event_SearchQuery.__name__ = "SearchQuery"
|
|
@@ -7739,6 +7859,18 @@ class event_SearchQueryVisitor:
|
|
|
7739
7859
|
def _workspace(self, workspace: str) -> Any:
|
|
7740
7860
|
pass
|
|
7741
7861
|
|
|
7862
|
+
@abstractmethod
|
|
7863
|
+
def _procedure(self, procedure: str) -> Any:
|
|
7864
|
+
pass
|
|
7865
|
+
|
|
7866
|
+
@abstractmethod
|
|
7867
|
+
def _procedure_execution(self, procedure_execution: str) -> Any:
|
|
7868
|
+
pass
|
|
7869
|
+
|
|
7870
|
+
@abstractmethod
|
|
7871
|
+
def _step_id(self, step_id: str) -> Any:
|
|
7872
|
+
pass
|
|
7873
|
+
|
|
7742
7874
|
|
|
7743
7875
|
event_SearchQueryVisitor.__name__ = "SearchQueryVisitor"
|
|
7744
7876
|
event_SearchQueryVisitor.__qualname__ = "SearchQueryVisitor"
|
|
@@ -22710,6 +22842,38 @@ Throws if the asset already has data scopes with data scope names matching those
|
|
|
22710
22842
|
_decoder = ConjureDecoder()
|
|
22711
22843
|
return _decoder.decode(_response.json(), Dict[scout_rids_api_AssetRid, scout_asset_api_Asset], self._return_none_for_unknown_union_types)
|
|
22712
22844
|
|
|
22845
|
+
def get_assets_by_data_source(self, auth_header: str, data_source_rid: str) -> List["scout_asset_api_Asset"]:
|
|
22846
|
+
"""Returns all assets with given data source as a data scope.
|
|
22847
|
+
"""
|
|
22848
|
+
_conjure_encoder = ConjureEncoder()
|
|
22849
|
+
|
|
22850
|
+
_headers: Dict[str, Any] = {
|
|
22851
|
+
'Accept': 'application/json',
|
|
22852
|
+
'Authorization': auth_header,
|
|
22853
|
+
}
|
|
22854
|
+
|
|
22855
|
+
_params: Dict[str, Any] = {
|
|
22856
|
+
}
|
|
22857
|
+
|
|
22858
|
+
_path_params: Dict[str, str] = {
|
|
22859
|
+
'dataSourceRid': quote(str(_conjure_encoder.default(data_source_rid)), safe=''),
|
|
22860
|
+
}
|
|
22861
|
+
|
|
22862
|
+
_json: Any = None
|
|
22863
|
+
|
|
22864
|
+
_path = '/scout/v1/asset/by-data-source/{dataSourceRid}'
|
|
22865
|
+
_path = _path.format(**_path_params)
|
|
22866
|
+
|
|
22867
|
+
_response: Response = self._request(
|
|
22868
|
+
'POST',
|
|
22869
|
+
self._uri + _path,
|
|
22870
|
+
params=_params,
|
|
22871
|
+
headers=_headers,
|
|
22872
|
+
json=_json)
|
|
22873
|
+
|
|
22874
|
+
_decoder = ConjureDecoder()
|
|
22875
|
+
return _decoder.decode(_response.json(), List[scout_asset_api_Asset], self._return_none_for_unknown_union_types)
|
|
22876
|
+
|
|
22713
22877
|
def archive(self, auth_header: str, rid: str, include_linked_workbooks: Optional[bool] = None) -> None:
|
|
22714
22878
|
_conjure_encoder = ConjureEncoder()
|
|
22715
22879
|
|
|
@@ -49415,16 +49579,18 @@ class scout_compute_api_RangeAggregation(ConjureBeanType):
|
|
|
49415
49579
|
'average': ConjureFieldDefinition('average', float),
|
|
49416
49580
|
'min': ConjureFieldDefinition('min', float),
|
|
49417
49581
|
'max': ConjureFieldDefinition('max', float),
|
|
49418
|
-
'standard_deviation': ConjureFieldDefinition('standardDeviation', float)
|
|
49582
|
+
'standard_deviation': ConjureFieldDefinition('standardDeviation', float),
|
|
49583
|
+
'count': ConjureFieldDefinition('count', float)
|
|
49419
49584
|
}
|
|
49420
49585
|
|
|
49421
|
-
__slots__: List[str] = ['_average', '_min', '_max', '_standard_deviation']
|
|
49586
|
+
__slots__: List[str] = ['_average', '_min', '_max', '_standard_deviation', '_count']
|
|
49422
49587
|
|
|
49423
|
-
def __init__(self, average: float, max: float, min: float, standard_deviation: float) -> None:
|
|
49588
|
+
def __init__(self, average: float, count: float, max: float, min: float, standard_deviation: float) -> None:
|
|
49424
49589
|
self._average = average
|
|
49425
49590
|
self._min = min
|
|
49426
49591
|
self._max = max
|
|
49427
49592
|
self._standard_deviation = standard_deviation
|
|
49593
|
+
self._count = count
|
|
49428
49594
|
|
|
49429
49595
|
@builtins.property
|
|
49430
49596
|
def average(self) -> float:
|
|
@@ -49442,6 +49608,10 @@ class scout_compute_api_RangeAggregation(ConjureBeanType):
|
|
|
49442
49608
|
def standard_deviation(self) -> float:
|
|
49443
49609
|
return self._standard_deviation
|
|
49444
49610
|
|
|
49611
|
+
@builtins.property
|
|
49612
|
+
def count(self) -> float:
|
|
49613
|
+
return self._count
|
|
49614
|
+
|
|
49445
49615
|
|
|
49446
49616
|
scout_compute_api_RangeAggregation.__name__ = "RangeAggregation"
|
|
49447
49617
|
scout_compute_api_RangeAggregation.__qualname__ = "RangeAggregation"
|
|
@@ -49453,6 +49623,7 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49453
49623
|
_min: Optional["scout_compute_api_Minimum"] = None
|
|
49454
49624
|
_max: Optional["scout_compute_api_Maximum"] = None
|
|
49455
49625
|
_standard_deviation: Optional["scout_compute_api_StandardDeviation"] = None
|
|
49626
|
+
_count: Optional["scout_compute_api_Count"] = None
|
|
49456
49627
|
_all: Optional["api_Empty"] = None
|
|
49457
49628
|
|
|
49458
49629
|
@builtins.classmethod
|
|
@@ -49462,6 +49633,7 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49462
49633
|
'min': ConjureFieldDefinition('min', scout_compute_api_Minimum),
|
|
49463
49634
|
'max': ConjureFieldDefinition('max', scout_compute_api_Maximum),
|
|
49464
49635
|
'standard_deviation': ConjureFieldDefinition('standardDeviation', scout_compute_api_StandardDeviation),
|
|
49636
|
+
'count': ConjureFieldDefinition('count', scout_compute_api_Count),
|
|
49465
49637
|
'all': ConjureFieldDefinition('all', api_Empty)
|
|
49466
49638
|
}
|
|
49467
49639
|
|
|
@@ -49471,11 +49643,12 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49471
49643
|
min: Optional["scout_compute_api_Minimum"] = None,
|
|
49472
49644
|
max: Optional["scout_compute_api_Maximum"] = None,
|
|
49473
49645
|
standard_deviation: Optional["scout_compute_api_StandardDeviation"] = None,
|
|
49646
|
+
count: Optional["scout_compute_api_Count"] = None,
|
|
49474
49647
|
all: Optional["api_Empty"] = None,
|
|
49475
49648
|
type_of_union: Optional[str] = None
|
|
49476
49649
|
) -> None:
|
|
49477
49650
|
if type_of_union is None:
|
|
49478
|
-
if (average is not None) + (min is not None) + (max is not None) + (standard_deviation is not None) + (all is not None) != 1:
|
|
49651
|
+
if (average is not None) + (min is not None) + (max is not None) + (standard_deviation is not None) + (count is not None) + (all is not None) != 1:
|
|
49479
49652
|
raise ValueError('a union must contain a single member')
|
|
49480
49653
|
|
|
49481
49654
|
if average is not None:
|
|
@@ -49490,6 +49663,9 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49490
49663
|
if standard_deviation is not None:
|
|
49491
49664
|
self._standard_deviation = standard_deviation
|
|
49492
49665
|
self._type = 'standardDeviation'
|
|
49666
|
+
if count is not None:
|
|
49667
|
+
self._count = count
|
|
49668
|
+
self._type = 'count'
|
|
49493
49669
|
if all is not None:
|
|
49494
49670
|
self._all = all
|
|
49495
49671
|
self._type = 'all'
|
|
@@ -49514,6 +49690,11 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49514
49690
|
raise ValueError('a union value must not be None')
|
|
49515
49691
|
self._standard_deviation = standard_deviation
|
|
49516
49692
|
self._type = 'standardDeviation'
|
|
49693
|
+
elif type_of_union == 'count':
|
|
49694
|
+
if count is None:
|
|
49695
|
+
raise ValueError('a union value must not be None')
|
|
49696
|
+
self._count = count
|
|
49697
|
+
self._type = 'count'
|
|
49517
49698
|
elif type_of_union == 'all':
|
|
49518
49699
|
if all is None:
|
|
49519
49700
|
raise ValueError('a union value must not be None')
|
|
@@ -49536,6 +49717,10 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49536
49717
|
def standard_deviation(self) -> Optional["scout_compute_api_StandardDeviation"]:
|
|
49537
49718
|
return self._standard_deviation
|
|
49538
49719
|
|
|
49720
|
+
@builtins.property
|
|
49721
|
+
def count(self) -> Optional["scout_compute_api_Count"]:
|
|
49722
|
+
return self._count
|
|
49723
|
+
|
|
49539
49724
|
@builtins.property
|
|
49540
49725
|
def all(self) -> Optional["api_Empty"]:
|
|
49541
49726
|
return self._all
|
|
@@ -49551,6 +49736,8 @@ class scout_compute_api_RangeAggregationOperation(ConjureUnionType):
|
|
|
49551
49736
|
return visitor._max(self.max)
|
|
49552
49737
|
if self._type == 'standardDeviation' and self.standard_deviation is not None:
|
|
49553
49738
|
return visitor._standard_deviation(self.standard_deviation)
|
|
49739
|
+
if self._type == 'count' and self.count is not None:
|
|
49740
|
+
return visitor._count(self.count)
|
|
49554
49741
|
if self._type == 'all' and self.all is not None:
|
|
49555
49742
|
return visitor._all(self.all)
|
|
49556
49743
|
|
|
@@ -49578,6 +49765,10 @@ class scout_compute_api_RangeAggregationOperationVisitor:
|
|
|
49578
49765
|
def _standard_deviation(self, standard_deviation: "scout_compute_api_StandardDeviation") -> Any:
|
|
49579
49766
|
pass
|
|
49580
49767
|
|
|
49768
|
+
@abstractmethod
|
|
49769
|
+
def _count(self, count: "scout_compute_api_Count") -> Any:
|
|
49770
|
+
pass
|
|
49771
|
+
|
|
49581
49772
|
@abstractmethod
|
|
49582
49773
|
def _all(self, all: "api_Empty") -> Any:
|
|
49583
49774
|
pass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=P3zYkuxAPtH6ua5FBa0EawEtEsheYIoi16BE_H04hFM,2064
|
|
2
|
+
nominal_api/_impl.py,sha256=WFQpgsFon9RQrm89COSGLxIrX4c_kIPwYrIlN-3i0zo,3621832
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=ZiGjcYwIBCrZR5pPqyqX2ggRJmVcSlOCazMtF2xCZzw,2171
|
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
|
|
@@ -77,7 +77,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
|
|
|
77
77
|
nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
|
|
78
78
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
|
|
79
79
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
|
80
|
-
nominal_api-0.
|
|
81
|
-
nominal_api-0.
|
|
82
|
-
nominal_api-0.
|
|
83
|
-
nominal_api-0.
|
|
80
|
+
nominal_api-0.830.0.dist-info/METADATA,sha256=72JWCvoBAztVg42yMkxY-zPxlh4aJSnUVTveYhk7rD8,199
|
|
81
|
+
nominal_api-0.830.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
82
|
+
nominal_api-0.830.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
83
|
+
nominal_api-0.830.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|