nominal-api 0.577.0__py3-none-any.whl → 0.579.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 +28 -1
- {nominal_api-0.577.0.dist-info → nominal_api-0.579.0.dist-info}/METADATA +1 -1
- {nominal_api-0.577.0.dist-info → nominal_api-0.579.0.dist-info}/RECORD +6 -6
- {nominal_api-0.577.0.dist-info → nominal_api-0.579.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.577.0.dist-info → nominal_api-0.579.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -17922,6 +17922,12 @@ class scout_chartdefinition_api_GeoLineStyle(ConjureEnumType):
|
|
|
17922
17922
|
|
|
17923
17923
|
POINTS = 'POINTS'
|
|
17924
17924
|
'''POINTS'''
|
|
17925
|
+
SOLID = 'SOLID'
|
|
17926
|
+
'''SOLID'''
|
|
17927
|
+
DASH = 'DASH'
|
|
17928
|
+
'''DASH'''
|
|
17929
|
+
NONE = 'NONE'
|
|
17930
|
+
'''NONE'''
|
|
17925
17931
|
UNKNOWN = 'UNKNOWN'
|
|
17926
17932
|
'''UNKNOWN'''
|
|
17927
17933
|
|
|
@@ -39420,6 +39426,7 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39420
39426
|
_duration: Optional["scout_run_api_Duration"] = None
|
|
39421
39427
|
_function_rid: Optional[str] = None
|
|
39422
39428
|
_integer: Optional[int] = None
|
|
39429
|
+
_channel: Optional["scout_compute_api_ChannelSeries"] = None
|
|
39423
39430
|
_series: Optional["scout_compute_api_SeriesSpec"] = None
|
|
39424
39431
|
_string: Optional[str] = None
|
|
39425
39432
|
_string_set: Optional[List[str]] = None
|
|
@@ -39433,6 +39440,7 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39433
39440
|
'duration': ConjureFieldDefinition('duration', scout_run_api_Duration),
|
|
39434
39441
|
'function_rid': ConjureFieldDefinition('functionRid', scout_rids_api_FunctionRid),
|
|
39435
39442
|
'integer': ConjureFieldDefinition('integer', int),
|
|
39443
|
+
'channel': ConjureFieldDefinition('channel', scout_compute_api_ChannelSeries),
|
|
39436
39444
|
'series': ConjureFieldDefinition('series', scout_compute_api_SeriesSpec),
|
|
39437
39445
|
'string': ConjureFieldDefinition('string', str),
|
|
39438
39446
|
'string_set': ConjureFieldDefinition('stringSet', List[str]),
|
|
@@ -39446,6 +39454,7 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39446
39454
|
duration: Optional["scout_run_api_Duration"] = None,
|
|
39447
39455
|
function_rid: Optional[str] = None,
|
|
39448
39456
|
integer: Optional[int] = None,
|
|
39457
|
+
channel: Optional["scout_compute_api_ChannelSeries"] = None,
|
|
39449
39458
|
series: Optional["scout_compute_api_SeriesSpec"] = None,
|
|
39450
39459
|
string: Optional[str] = None,
|
|
39451
39460
|
string_set: Optional[List[str]] = None,
|
|
@@ -39453,7 +39462,7 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39453
39462
|
type_of_union: Optional[str] = None
|
|
39454
39463
|
) -> None:
|
|
39455
39464
|
if type_of_union is None:
|
|
39456
|
-
if (double is not None) + (compute_node is not None) + (duration is not None) + (function_rid is not None) + (integer is not None) + (series is not None) + (string is not None) + (string_set is not None) + (timestamp is not None) != 1:
|
|
39465
|
+
if (double is not None) + (compute_node is not None) + (duration is not None) + (function_rid is not None) + (integer is not None) + (channel is not None) + (series is not None) + (string is not None) + (string_set is not None) + (timestamp is not None) != 1:
|
|
39457
39466
|
raise ValueError('a union must contain a single member')
|
|
39458
39467
|
|
|
39459
39468
|
if double is not None:
|
|
@@ -39471,6 +39480,9 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39471
39480
|
if integer is not None:
|
|
39472
39481
|
self._integer = integer
|
|
39473
39482
|
self._type = 'integer'
|
|
39483
|
+
if channel is not None:
|
|
39484
|
+
self._channel = channel
|
|
39485
|
+
self._type = 'channel'
|
|
39474
39486
|
if series is not None:
|
|
39475
39487
|
self._series = series
|
|
39476
39488
|
self._type = 'series'
|
|
@@ -39509,6 +39521,11 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39509
39521
|
raise ValueError('a union value must not be None')
|
|
39510
39522
|
self._integer = integer
|
|
39511
39523
|
self._type = 'integer'
|
|
39524
|
+
elif type_of_union == 'channel':
|
|
39525
|
+
if channel is None:
|
|
39526
|
+
raise ValueError('a union value must not be None')
|
|
39527
|
+
self._channel = channel
|
|
39528
|
+
self._type = 'channel'
|
|
39512
39529
|
elif type_of_union == 'series':
|
|
39513
39530
|
if series is None:
|
|
39514
39531
|
raise ValueError('a union value must not be None')
|
|
@@ -39550,6 +39567,10 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39550
39567
|
def integer(self) -> Optional[int]:
|
|
39551
39568
|
return self._integer
|
|
39552
39569
|
|
|
39570
|
+
@builtins.property
|
|
39571
|
+
def channel(self) -> Optional["scout_compute_api_ChannelSeries"]:
|
|
39572
|
+
return self._channel
|
|
39573
|
+
|
|
39553
39574
|
@builtins.property
|
|
39554
39575
|
def series(self) -> Optional["scout_compute_api_SeriesSpec"]:
|
|
39555
39576
|
return self._series
|
|
@@ -39579,6 +39600,8 @@ class scout_compute_api_VariableValue(ConjureUnionType):
|
|
|
39579
39600
|
return visitor._function_rid(self.function_rid)
|
|
39580
39601
|
if self._type == 'integer' and self.integer is not None:
|
|
39581
39602
|
return visitor._integer(self.integer)
|
|
39603
|
+
if self._type == 'channel' and self.channel is not None:
|
|
39604
|
+
return visitor._channel(self.channel)
|
|
39582
39605
|
if self._type == 'series' and self.series is not None:
|
|
39583
39606
|
return visitor._series(self.series)
|
|
39584
39607
|
if self._type == 'string' and self.string is not None:
|
|
@@ -39616,6 +39639,10 @@ class scout_compute_api_VariableValueVisitor:
|
|
|
39616
39639
|
def _integer(self, integer: int) -> Any:
|
|
39617
39640
|
pass
|
|
39618
39641
|
|
|
39642
|
+
@abstractmethod
|
|
39643
|
+
def _channel(self, channel: "scout_compute_api_ChannelSeries") -> Any:
|
|
39644
|
+
pass
|
|
39645
|
+
|
|
39619
39646
|
@abstractmethod
|
|
39620
39647
|
def _series(self, series: "scout_compute_api_SeriesSpec") -> Any:
|
|
39621
39648
|
pass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=GMnWqAE04Qk9gIaFyMwN_Ob2U6o8MN3crO2OiKlGPHg,1851
|
|
2
|
+
nominal_api/_impl.py,sha256=EJPjxUD5HHHEDm3NcIcUgWZ-KCQ1HIHWewQ9ngI4gds,2816995
|
|
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_rids/__init__.py,sha256=Bu-pKUh3aS9_f5m-DZf6W_BUlVo9qYE7EDvaT-rvWQ0,423
|
|
@@ -68,7 +68,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=7NlQhIzOKOcjwMNUI89f
|
|
|
68
68
|
nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
|
|
69
69
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
|
|
70
70
|
nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
|
|
71
|
-
nominal_api-0.
|
|
72
|
-
nominal_api-0.
|
|
73
|
-
nominal_api-0.
|
|
74
|
-
nominal_api-0.
|
|
71
|
+
nominal_api-0.579.0.dist-info/METADATA,sha256=jKspPiHVlLyekaMmaZ9fusvqHyq8AEBWrB7IC0n1gcs,199
|
|
72
|
+
nominal_api-0.579.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
73
|
+
nominal_api-0.579.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
74
|
+
nominal_api-0.579.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|