nominal-api 0.539.0__py3-none-any.whl → 0.540.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 +117 -5
- nominal_api/storage_writer_api/__init__.py +2 -0
- {nominal_api-0.539.0.dist-info → nominal_api-0.540.0.dist-info}/METADATA +1 -1
- {nominal_api-0.539.0.dist-info → nominal_api-0.540.0.dist-info}/RECORD +7 -7
- {nominal_api-0.539.0.dist-info → nominal_api-0.540.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.539.0.dist-info → nominal_api-0.540.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -189,6 +189,8 @@ class api_SeriesDataType(ConjureEnumType):
|
|
|
189
189
|
'''DOUBLE'''
|
|
190
190
|
STRING = 'STRING'
|
|
191
191
|
'''STRING'''
|
|
192
|
+
LOG = 'LOG'
|
|
193
|
+
'''LOG'''
|
|
192
194
|
UNKNOWN = 'UNKNOWN'
|
|
193
195
|
'''UNKNOWN'''
|
|
194
196
|
|
|
@@ -18968,23 +18970,41 @@ class scout_chartdefinition_api_RangeRawVisualisation(ConjureBeanType):
|
|
|
18968
18970
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
18969
18971
|
return {
|
|
18970
18972
|
'range_color': ConjureFieldDefinition('rangeColor', OptionalTypeWrapper[scout_api_HexColor]),
|
|
18971
|
-
'
|
|
18973
|
+
'range_label': ConjureFieldDefinition('rangeLabel', OptionalTypeWrapper[str]),
|
|
18974
|
+
'no_range_color': ConjureFieldDefinition('noRangeColor', OptionalTypeWrapper[scout_api_HexColor]),
|
|
18975
|
+
'no_range_label': ConjureFieldDefinition('noRangeLabel', OptionalTypeWrapper[str])
|
|
18972
18976
|
}
|
|
18973
18977
|
|
|
18974
|
-
__slots__: List[str] = ['_range_color', '_no_range_color']
|
|
18978
|
+
__slots__: List[str] = ['_range_color', '_range_label', '_no_range_color', '_no_range_label']
|
|
18975
18979
|
|
|
18976
|
-
def __init__(self, no_range_color: Optional[str] = None, range_color: Optional[str] = None) -> None:
|
|
18980
|
+
def __init__(self, no_range_color: Optional[str] = None, no_range_label: Optional[str] = None, range_color: Optional[str] = None, range_label: Optional[str] = None) -> None:
|
|
18977
18981
|
self._range_color = range_color
|
|
18982
|
+
self._range_label = range_label
|
|
18978
18983
|
self._no_range_color = no_range_color
|
|
18984
|
+
self._no_range_label = no_range_label
|
|
18979
18985
|
|
|
18980
18986
|
@builtins.property
|
|
18981
18987
|
def range_color(self) -> Optional[str]:
|
|
18982
18988
|
return self._range_color
|
|
18983
18989
|
|
|
18990
|
+
@builtins.property
|
|
18991
|
+
def range_label(self) -> Optional[str]:
|
|
18992
|
+
"""
|
|
18993
|
+
The string to display when the condition defined by the variable's function spec is met.
|
|
18994
|
+
"""
|
|
18995
|
+
return self._range_label
|
|
18996
|
+
|
|
18984
18997
|
@builtins.property
|
|
18985
18998
|
def no_range_color(self) -> Optional[str]:
|
|
18986
18999
|
return self._no_range_color
|
|
18987
19000
|
|
|
19001
|
+
@builtins.property
|
|
19002
|
+
def no_range_label(self) -> Optional[str]:
|
|
19003
|
+
"""
|
|
19004
|
+
The string to display when the condition defined by the variable's function spec is not met.
|
|
19005
|
+
"""
|
|
19006
|
+
return self._no_range_label
|
|
19007
|
+
|
|
18988
19008
|
|
|
18989
19009
|
scout_chartdefinition_api_RangeRawVisualisation.__name__ = "RangeRawVisualisation"
|
|
18990
19010
|
scout_chartdefinition_api_RangeRawVisualisation.__qualname__ = "RangeRawVisualisation"
|
|
@@ -63144,6 +63164,8 @@ class storage_series_api_NominalDataType(ConjureEnumType):
|
|
|
63144
63164
|
'''DOUBLE'''
|
|
63145
63165
|
STRING = 'STRING'
|
|
63146
63166
|
'''STRING'''
|
|
63167
|
+
LOG = 'LOG'
|
|
63168
|
+
'''LOG'''
|
|
63147
63169
|
UNKNOWN = 'UNKNOWN'
|
|
63148
63170
|
'''UNKNOWN'''
|
|
63149
63171
|
|
|
@@ -63651,6 +63673,70 @@ storage_writer_api_DoublePoint.__qualname__ = "DoublePoint"
|
|
|
63651
63673
|
storage_writer_api_DoublePoint.__module__ = "nominal_api.storage_writer_api"
|
|
63652
63674
|
|
|
63653
63675
|
|
|
63676
|
+
class storage_writer_api_LogPoint(ConjureBeanType):
|
|
63677
|
+
|
|
63678
|
+
@builtins.classmethod
|
|
63679
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
63680
|
+
return {
|
|
63681
|
+
'timestamp': ConjureFieldDefinition('timestamp', api_Timestamp),
|
|
63682
|
+
'value': ConjureFieldDefinition('value', storage_writer_api_LogValue)
|
|
63683
|
+
}
|
|
63684
|
+
|
|
63685
|
+
__slots__: List[str] = ['_timestamp', '_value']
|
|
63686
|
+
|
|
63687
|
+
def __init__(self, timestamp: "api_Timestamp", value: "storage_writer_api_LogValue") -> None:
|
|
63688
|
+
self._timestamp = timestamp
|
|
63689
|
+
self._value = value
|
|
63690
|
+
|
|
63691
|
+
@builtins.property
|
|
63692
|
+
def timestamp(self) -> "api_Timestamp":
|
|
63693
|
+
return self._timestamp
|
|
63694
|
+
|
|
63695
|
+
@builtins.property
|
|
63696
|
+
def value(self) -> "storage_writer_api_LogValue":
|
|
63697
|
+
return self._value
|
|
63698
|
+
|
|
63699
|
+
|
|
63700
|
+
storage_writer_api_LogPoint.__name__ = "LogPoint"
|
|
63701
|
+
storage_writer_api_LogPoint.__qualname__ = "LogPoint"
|
|
63702
|
+
storage_writer_api_LogPoint.__module__ = "nominal_api.storage_writer_api"
|
|
63703
|
+
|
|
63704
|
+
|
|
63705
|
+
class storage_writer_api_LogValue(ConjureBeanType):
|
|
63706
|
+
|
|
63707
|
+
@builtins.classmethod
|
|
63708
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
63709
|
+
return {
|
|
63710
|
+
'raw': ConjureFieldDefinition('raw', str),
|
|
63711
|
+
'message': ConjureFieldDefinition('message', OptionalTypeWrapper[str]),
|
|
63712
|
+
'args': ConjureFieldDefinition('args', Dict[str, str])
|
|
63713
|
+
}
|
|
63714
|
+
|
|
63715
|
+
__slots__: List[str] = ['_raw', '_message', '_args']
|
|
63716
|
+
|
|
63717
|
+
def __init__(self, args: Dict[str, str], raw: str, message: Optional[str] = None) -> None:
|
|
63718
|
+
self._raw = raw
|
|
63719
|
+
self._message = message
|
|
63720
|
+
self._args = args
|
|
63721
|
+
|
|
63722
|
+
@builtins.property
|
|
63723
|
+
def raw(self) -> str:
|
|
63724
|
+
return self._raw
|
|
63725
|
+
|
|
63726
|
+
@builtins.property
|
|
63727
|
+
def message(self) -> Optional[str]:
|
|
63728
|
+
return self._message
|
|
63729
|
+
|
|
63730
|
+
@builtins.property
|
|
63731
|
+
def args(self) -> Dict[str, str]:
|
|
63732
|
+
return self._args
|
|
63733
|
+
|
|
63734
|
+
|
|
63735
|
+
storage_writer_api_LogValue.__name__ = "LogValue"
|
|
63736
|
+
storage_writer_api_LogValue.__qualname__ = "LogValue"
|
|
63737
|
+
storage_writer_api_LogValue.__module__ = "nominal_api.storage_writer_api"
|
|
63738
|
+
|
|
63739
|
+
|
|
63654
63740
|
class storage_writer_api_NominalChannelWriterService(Service):
|
|
63655
63741
|
"""
|
|
63656
63742
|
Write data points to Nominal data sources.
|
|
@@ -63887,22 +63973,25 @@ storage_writer_api_NominalChannelWriterService.__module__ = "nominal_api.storage
|
|
|
63887
63973
|
class storage_writer_api_Points(ConjureUnionType):
|
|
63888
63974
|
_string: Optional[List["storage_writer_api_StringPoint"]] = None
|
|
63889
63975
|
_double: Optional[List["storage_writer_api_DoublePoint"]] = None
|
|
63976
|
+
_log: Optional[List["storage_writer_api_LogPoint"]] = None
|
|
63890
63977
|
|
|
63891
63978
|
@builtins.classmethod
|
|
63892
63979
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
63893
63980
|
return {
|
|
63894
63981
|
'string': ConjureFieldDefinition('string', List[storage_writer_api_StringPoint]),
|
|
63895
|
-
'double': ConjureFieldDefinition('double', List[storage_writer_api_DoublePoint])
|
|
63982
|
+
'double': ConjureFieldDefinition('double', List[storage_writer_api_DoublePoint]),
|
|
63983
|
+
'log': ConjureFieldDefinition('log', List[storage_writer_api_LogPoint])
|
|
63896
63984
|
}
|
|
63897
63985
|
|
|
63898
63986
|
def __init__(
|
|
63899
63987
|
self,
|
|
63900
63988
|
string: Optional[List["storage_writer_api_StringPoint"]] = None,
|
|
63901
63989
|
double: Optional[List["storage_writer_api_DoublePoint"]] = None,
|
|
63990
|
+
log: Optional[List["storage_writer_api_LogPoint"]] = None,
|
|
63902
63991
|
type_of_union: Optional[str] = None
|
|
63903
63992
|
) -> None:
|
|
63904
63993
|
if type_of_union is None:
|
|
63905
|
-
if (string is not None) + (double is not None) != 1:
|
|
63994
|
+
if (string is not None) + (double is not None) + (log is not None) != 1:
|
|
63906
63995
|
raise ValueError('a union must contain a single member')
|
|
63907
63996
|
|
|
63908
63997
|
if string is not None:
|
|
@@ -63911,6 +64000,9 @@ class storage_writer_api_Points(ConjureUnionType):
|
|
|
63911
64000
|
if double is not None:
|
|
63912
64001
|
self._double = double
|
|
63913
64002
|
self._type = 'double'
|
|
64003
|
+
if log is not None:
|
|
64004
|
+
self._log = log
|
|
64005
|
+
self._type = 'log'
|
|
63914
64006
|
|
|
63915
64007
|
elif type_of_union == 'string':
|
|
63916
64008
|
if string is None:
|
|
@@ -63922,6 +64014,11 @@ class storage_writer_api_Points(ConjureUnionType):
|
|
|
63922
64014
|
raise ValueError('a union value must not be None')
|
|
63923
64015
|
self._double = double
|
|
63924
64016
|
self._type = 'double'
|
|
64017
|
+
elif type_of_union == 'log':
|
|
64018
|
+
if log is None:
|
|
64019
|
+
raise ValueError('a union value must not be None')
|
|
64020
|
+
self._log = log
|
|
64021
|
+
self._type = 'log'
|
|
63925
64022
|
|
|
63926
64023
|
@builtins.property
|
|
63927
64024
|
def string(self) -> Optional[List["storage_writer_api_StringPoint"]]:
|
|
@@ -63931,6 +64028,13 @@ class storage_writer_api_Points(ConjureUnionType):
|
|
|
63931
64028
|
def double(self) -> Optional[List["storage_writer_api_DoublePoint"]]:
|
|
63932
64029
|
return self._double
|
|
63933
64030
|
|
|
64031
|
+
@builtins.property
|
|
64032
|
+
def log(self) -> Optional[List["storage_writer_api_LogPoint"]]:
|
|
64033
|
+
"""
|
|
64034
|
+
Log points are not yet supported. Sending log points will result in an error.
|
|
64035
|
+
"""
|
|
64036
|
+
return self._log
|
|
64037
|
+
|
|
63934
64038
|
def accept(self, visitor) -> Any:
|
|
63935
64039
|
if not isinstance(visitor, storage_writer_api_PointsVisitor):
|
|
63936
64040
|
raise ValueError('{} is not an instance of storage_writer_api_PointsVisitor'.format(visitor.__class__.__name__))
|
|
@@ -63938,6 +64042,8 @@ class storage_writer_api_Points(ConjureUnionType):
|
|
|
63938
64042
|
return visitor._string(self.string)
|
|
63939
64043
|
if self._type == 'double' and self.double is not None:
|
|
63940
64044
|
return visitor._double(self.double)
|
|
64045
|
+
if self._type == 'log' and self.log is not None:
|
|
64046
|
+
return visitor._log(self.log)
|
|
63941
64047
|
|
|
63942
64048
|
|
|
63943
64049
|
storage_writer_api_Points.__name__ = "Points"
|
|
@@ -63955,6 +64061,10 @@ class storage_writer_api_PointsVisitor:
|
|
|
63955
64061
|
def _double(self, double: List["storage_writer_api_DoublePoint"]) -> Any:
|
|
63956
64062
|
pass
|
|
63957
64063
|
|
|
64064
|
+
@abstractmethod
|
|
64065
|
+
def _log(self, log: List["storage_writer_api_LogPoint"]) -> Any:
|
|
64066
|
+
pass
|
|
64067
|
+
|
|
63958
64068
|
|
|
63959
64069
|
storage_writer_api_PointsVisitor.__name__ = "PointsVisitor"
|
|
63960
64070
|
storage_writer_api_PointsVisitor.__qualname__ = "PointsVisitor"
|
|
@@ -66932,6 +67042,8 @@ class timeseries_logicalseries_api_NominalType(ConjureEnumType):
|
|
|
66932
67042
|
'''DOUBLE'''
|
|
66933
67043
|
STRING = 'STRING'
|
|
66934
67044
|
'''STRING'''
|
|
67045
|
+
LOG = 'LOG'
|
|
67046
|
+
'''LOG'''
|
|
66935
67047
|
UNKNOWN = 'UNKNOWN'
|
|
66936
67048
|
'''UNKNOWN'''
|
|
66937
67049
|
|
|
@@ -3,6 +3,8 @@ from .._impl import (
|
|
|
3
3
|
storage_writer_api_DirectNominalChannelWriterService as DirectNominalChannelWriterService,
|
|
4
4
|
storage_writer_api_DoublePoint as DoublePoint,
|
|
5
5
|
storage_writer_api_Field as Field,
|
|
6
|
+
storage_writer_api_LogPoint as LogPoint,
|
|
7
|
+
storage_writer_api_LogValue as LogValue,
|
|
6
8
|
storage_writer_api_MeasurementName as MeasurementName,
|
|
7
9
|
storage_writer_api_NominalChannelWriterService as NominalChannelWriterService,
|
|
8
10
|
storage_writer_api_Points as Points,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=PgTMWZrSjdtP3Ira9hG2bMy7Qdz6N5XzwHZSc3xDXuc,1762
|
|
2
|
+
nominal_api/_impl.py,sha256=6DO_xexkB3gQLyqfog5kXBFedWdBdddSQkC7H1cI8fE,2647850
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=CaUmWhW0zcP8jVWFQEgj-lpoBi-Unm0wBd2s9dPeWmo,656
|
|
5
5
|
nominal_api/api_rids/__init__.py,sha256=p7dKiMV692oGtYStr5FZJEJNg3YbF7scJK1WFMpBiW0,298
|
|
@@ -56,7 +56,7 @@ nominal_api/scout_workbookcommon_api/__init__.py,sha256=yXWeUKKqU_e08ZfkMZ4gKNUV
|
|
|
56
56
|
nominal_api/secrets_api/__init__.py,sha256=cHYclGHqwCiu42M3grXjeoxLG4FLC0pIqZfx_ZsiB40,950
|
|
57
57
|
nominal_api/storage_datasource_api/__init__.py,sha256=rPs4MPAqfdzQVatoTmebjBLvsFfpl2eKW0oLvXmkkOc,352
|
|
58
58
|
nominal_api/storage_series_api/__init__.py,sha256=HapfYMCap8kDYXh7_kjsdywLqwterOB0OdVUyU3QZz8,829
|
|
59
|
-
nominal_api/storage_writer_api/__init__.py,sha256=
|
|
59
|
+
nominal_api/storage_writer_api/__init__.py,sha256=_yiTu5SKCx7VQBRMDmF_K8O3a4Pp_sgD1wZQeRtg_Zg,864
|
|
60
60
|
nominal_api/themes_api/__init__.py,sha256=w-G93T5f6_2zSSUi-ffyUHxH8QA_2oI9jM7YBSMFpwY,924
|
|
61
61
|
nominal_api/timeseries_archetype/__init__.py,sha256=eKdgdZoOcZg_9pmec6J86NlgQdhxhi1282WUAFxghJ8,115
|
|
62
62
|
nominal_api/timeseries_archetype_api/__init__.py,sha256=IREibRlChT9ugCAkeMKm7RiAChsKV4KJZ-DcKkVLC_U,1396
|
|
@@ -65,7 +65,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=wr83ByQTVVPOGvbB_KWL
|
|
|
65
65
|
nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
|
|
66
66
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=YLixotb-W-adYR6t_RBsJDwoHttppkOBesoaXERwhVs,1240
|
|
67
67
|
nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
|
|
68
|
-
nominal_api-0.
|
|
69
|
-
nominal_api-0.
|
|
70
|
-
nominal_api-0.
|
|
71
|
-
nominal_api-0.
|
|
68
|
+
nominal_api-0.540.0.dist-info/METADATA,sha256=BuGm9tNrGHFj_0__l8Igv8Mplwf6qeoMx2GNETWLX38,199
|
|
69
|
+
nominal_api-0.540.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
70
|
+
nominal_api-0.540.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
71
|
+
nominal_api-0.540.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|