nominal-api 0.618.0__py3-none-any.whl → 0.619.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 +144 -6
- nominal_api/scout_channelvariables_api/__init__.py +4 -0
- {nominal_api-0.618.0.dist-info → nominal_api-0.619.0.dist-info}/METADATA +1 -1
- {nominal_api-0.618.0.dist-info → nominal_api-0.619.0.dist-info}/RECORD +7 -7
- {nominal_api-0.618.0.dist-info → nominal_api-0.619.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.618.0.dist-info → nominal_api-0.619.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -18668,15 +18668,17 @@ class scout_channelvariables_api_ChannelVariable(ConjureBeanType):
|
|
|
18668
18668
|
return {
|
|
18669
18669
|
'display_name': ConjureFieldDefinition('displayName', OptionalTypeWrapper[str]),
|
|
18670
18670
|
'variable_name': ConjureFieldDefinition('variableName', scout_channelvariables_api_ChannelVariableName),
|
|
18671
|
-
'compute_spec': ConjureFieldDefinition('computeSpec', scout_channelvariables_api_ComputeSpec)
|
|
18671
|
+
'compute_spec': ConjureFieldDefinition('computeSpec', scout_channelvariables_api_ComputeSpec),
|
|
18672
|
+
'compute_spec_v2': ConjureFieldDefinition('computeSpecV2', OptionalTypeWrapper[scout_channelvariables_api_ComputeNodeWithContext])
|
|
18672
18673
|
}
|
|
18673
18674
|
|
|
18674
|
-
__slots__: List[str] = ['_display_name', '_variable_name', '_compute_spec']
|
|
18675
|
+
__slots__: List[str] = ['_display_name', '_variable_name', '_compute_spec', '_compute_spec_v2']
|
|
18675
18676
|
|
|
18676
|
-
def __init__(self, compute_spec: "scout_channelvariables_api_ComputeSpec", variable_name: str, display_name: Optional[str] = None) -> None:
|
|
18677
|
+
def __init__(self, compute_spec: "scout_channelvariables_api_ComputeSpec", variable_name: str, compute_spec_v2: Optional["scout_channelvariables_api_ComputeNodeWithContext"] = None, display_name: Optional[str] = None) -> None:
|
|
18677
18678
|
self._display_name = display_name
|
|
18678
18679
|
self._variable_name = variable_name
|
|
18679
18680
|
self._compute_spec = compute_spec
|
|
18681
|
+
self._compute_spec_v2 = compute_spec_v2
|
|
18680
18682
|
|
|
18681
18683
|
@builtins.property
|
|
18682
18684
|
def display_name(self) -> Optional[str]:
|
|
@@ -18690,12 +18692,48 @@ class scout_channelvariables_api_ChannelVariable(ConjureBeanType):
|
|
|
18690
18692
|
def compute_spec(self) -> "scout_channelvariables_api_ComputeSpec":
|
|
18691
18693
|
return self._compute_spec
|
|
18692
18694
|
|
|
18695
|
+
@builtins.property
|
|
18696
|
+
def compute_spec_v2(self) -> Optional["scout_channelvariables_api_ComputeNodeWithContext"]:
|
|
18697
|
+
"""
|
|
18698
|
+
optional for backcompatibility. If empty, fall back to computeSpec.
|
|
18699
|
+
"""
|
|
18700
|
+
return self._compute_spec_v2
|
|
18701
|
+
|
|
18693
18702
|
|
|
18694
18703
|
scout_channelvariables_api_ChannelVariable.__name__ = "ChannelVariable"
|
|
18695
18704
|
scout_channelvariables_api_ChannelVariable.__qualname__ = "ChannelVariable"
|
|
18696
18705
|
scout_channelvariables_api_ChannelVariable.__module__ = "nominal_api.scout_channelvariables_api"
|
|
18697
18706
|
|
|
18698
18707
|
|
|
18708
|
+
class scout_channelvariables_api_ComputeNodeWithContext(ConjureBeanType):
|
|
18709
|
+
|
|
18710
|
+
@builtins.classmethod
|
|
18711
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
18712
|
+
return {
|
|
18713
|
+
'compute_node': ConjureFieldDefinition('computeNode', scout_compute_api_ComputeNode),
|
|
18714
|
+
'context': ConjureFieldDefinition('context', scout_channelvariables_api_WorkbookContext)
|
|
18715
|
+
}
|
|
18716
|
+
|
|
18717
|
+
__slots__: List[str] = ['_compute_node', '_context']
|
|
18718
|
+
|
|
18719
|
+
def __init__(self, compute_node: "scout_compute_api_ComputeNode", context: "scout_channelvariables_api_WorkbookContext") -> None:
|
|
18720
|
+
self._compute_node = compute_node
|
|
18721
|
+
self._context = context
|
|
18722
|
+
|
|
18723
|
+
@builtins.property
|
|
18724
|
+
def compute_node(self) -> "scout_compute_api_ComputeNode":
|
|
18725
|
+
return self._compute_node
|
|
18726
|
+
|
|
18727
|
+
@builtins.property
|
|
18728
|
+
def context(self) -> "scout_channelvariables_api_WorkbookContext":
|
|
18729
|
+
return self._context
|
|
18730
|
+
|
|
18731
|
+
|
|
18732
|
+
scout_channelvariables_api_ComputeNodeWithContext.__name__ = "ComputeNodeWithContext"
|
|
18733
|
+
scout_channelvariables_api_ComputeNodeWithContext.__qualname__ = "ComputeNodeWithContext"
|
|
18734
|
+
scout_channelvariables_api_ComputeNodeWithContext.__module__ = "nominal_api.scout_channelvariables_api"
|
|
18735
|
+
|
|
18736
|
+
|
|
18699
18737
|
class scout_channelvariables_api_ComputeSpec(ConjureUnionType):
|
|
18700
18738
|
_v1: Optional[str] = None
|
|
18701
18739
|
|
|
@@ -18752,6 +18790,106 @@ scout_channelvariables_api_ComputeSpecVisitor.__qualname__ = "ComputeSpecVisitor
|
|
|
18752
18790
|
scout_channelvariables_api_ComputeSpecVisitor.__module__ = "nominal_api.scout_channelvariables_api"
|
|
18753
18791
|
|
|
18754
18792
|
|
|
18793
|
+
class scout_channelvariables_api_VariableLocator(ConjureUnionType):
|
|
18794
|
+
_variable: Optional[str] = None
|
|
18795
|
+
_series: Optional["scout_api_ChannelLocator"] = None
|
|
18796
|
+
|
|
18797
|
+
@builtins.classmethod
|
|
18798
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
18799
|
+
return {
|
|
18800
|
+
'variable': ConjureFieldDefinition('variable', scout_compute_api_VariableName),
|
|
18801
|
+
'series': ConjureFieldDefinition('series', scout_api_ChannelLocator)
|
|
18802
|
+
}
|
|
18803
|
+
|
|
18804
|
+
def __init__(
|
|
18805
|
+
self,
|
|
18806
|
+
variable: Optional[str] = None,
|
|
18807
|
+
series: Optional["scout_api_ChannelLocator"] = None,
|
|
18808
|
+
type_of_union: Optional[str] = None
|
|
18809
|
+
) -> None:
|
|
18810
|
+
if type_of_union is None:
|
|
18811
|
+
if (variable is not None) + (series is not None) != 1:
|
|
18812
|
+
raise ValueError('a union must contain a single member')
|
|
18813
|
+
|
|
18814
|
+
if variable is not None:
|
|
18815
|
+
self._variable = variable
|
|
18816
|
+
self._type = 'variable'
|
|
18817
|
+
if series is not None:
|
|
18818
|
+
self._series = series
|
|
18819
|
+
self._type = 'series'
|
|
18820
|
+
|
|
18821
|
+
elif type_of_union == 'variable':
|
|
18822
|
+
if variable is None:
|
|
18823
|
+
raise ValueError('a union value must not be None')
|
|
18824
|
+
self._variable = variable
|
|
18825
|
+
self._type = 'variable'
|
|
18826
|
+
elif type_of_union == 'series':
|
|
18827
|
+
if series is None:
|
|
18828
|
+
raise ValueError('a union value must not be None')
|
|
18829
|
+
self._series = series
|
|
18830
|
+
self._type = 'series'
|
|
18831
|
+
|
|
18832
|
+
@builtins.property
|
|
18833
|
+
def variable(self) -> Optional[str]:
|
|
18834
|
+
return self._variable
|
|
18835
|
+
|
|
18836
|
+
@builtins.property
|
|
18837
|
+
def series(self) -> Optional["scout_api_ChannelLocator"]:
|
|
18838
|
+
return self._series
|
|
18839
|
+
|
|
18840
|
+
def accept(self, visitor) -> Any:
|
|
18841
|
+
if not isinstance(visitor, scout_channelvariables_api_VariableLocatorVisitor):
|
|
18842
|
+
raise ValueError('{} is not an instance of scout_channelvariables_api_VariableLocatorVisitor'.format(visitor.__class__.__name__))
|
|
18843
|
+
if self._type == 'variable' and self.variable is not None:
|
|
18844
|
+
return visitor._variable(self.variable)
|
|
18845
|
+
if self._type == 'series' and self.series is not None:
|
|
18846
|
+
return visitor._series(self.series)
|
|
18847
|
+
|
|
18848
|
+
|
|
18849
|
+
scout_channelvariables_api_VariableLocator.__name__ = "VariableLocator"
|
|
18850
|
+
scout_channelvariables_api_VariableLocator.__qualname__ = "VariableLocator"
|
|
18851
|
+
scout_channelvariables_api_VariableLocator.__module__ = "nominal_api.scout_channelvariables_api"
|
|
18852
|
+
|
|
18853
|
+
|
|
18854
|
+
class scout_channelvariables_api_VariableLocatorVisitor:
|
|
18855
|
+
|
|
18856
|
+
@abstractmethod
|
|
18857
|
+
def _variable(self, variable: str) -> Any:
|
|
18858
|
+
pass
|
|
18859
|
+
|
|
18860
|
+
@abstractmethod
|
|
18861
|
+
def _series(self, series: "scout_api_ChannelLocator") -> Any:
|
|
18862
|
+
pass
|
|
18863
|
+
|
|
18864
|
+
|
|
18865
|
+
scout_channelvariables_api_VariableLocatorVisitor.__name__ = "VariableLocatorVisitor"
|
|
18866
|
+
scout_channelvariables_api_VariableLocatorVisitor.__qualname__ = "VariableLocatorVisitor"
|
|
18867
|
+
scout_channelvariables_api_VariableLocatorVisitor.__module__ = "nominal_api.scout_channelvariables_api"
|
|
18868
|
+
|
|
18869
|
+
|
|
18870
|
+
class scout_channelvariables_api_WorkbookContext(ConjureBeanType):
|
|
18871
|
+
|
|
18872
|
+
@builtins.classmethod
|
|
18873
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
18874
|
+
return {
|
|
18875
|
+
'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_channelvariables_api_VariableLocator])
|
|
18876
|
+
}
|
|
18877
|
+
|
|
18878
|
+
__slots__: List[str] = ['_variables']
|
|
18879
|
+
|
|
18880
|
+
def __init__(self, variables: Dict[str, "scout_channelvariables_api_VariableLocator"]) -> None:
|
|
18881
|
+
self._variables = variables
|
|
18882
|
+
|
|
18883
|
+
@builtins.property
|
|
18884
|
+
def variables(self) -> Dict[str, "scout_channelvariables_api_VariableLocator"]:
|
|
18885
|
+
return self._variables
|
|
18886
|
+
|
|
18887
|
+
|
|
18888
|
+
scout_channelvariables_api_WorkbookContext.__name__ = "WorkbookContext"
|
|
18889
|
+
scout_channelvariables_api_WorkbookContext.__qualname__ = "WorkbookContext"
|
|
18890
|
+
scout_channelvariables_api_WorkbookContext.__module__ = "nominal_api.scout_channelvariables_api"
|
|
18891
|
+
|
|
18892
|
+
|
|
18755
18893
|
class scout_chart_api_DeprecatedDefinitionAndSchemaVersion(ConjureBeanType):
|
|
18756
18894
|
|
|
18757
18895
|
@builtins.classmethod
|
|
@@ -68273,14 +68411,14 @@ class scout_video_api_UpdateVideoMetadataRequest(ConjureBeanType):
|
|
|
68273
68411
|
'title': ConjureFieldDefinition('title', OptionalTypeWrapper[str]),
|
|
68274
68412
|
'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
|
|
68275
68413
|
'labels': ConjureFieldDefinition('labels', OptionalTypeWrapper[List[api_Label]]),
|
|
68276
|
-
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
68414
|
+
'properties': ConjureFieldDefinition('properties', OptionalTypeWrapper[Dict[api_PropertyName, api_PropertyValue]]),
|
|
68277
68415
|
'starting_timestamp': ConjureFieldDefinition('startingTimestamp', OptionalTypeWrapper[api_Timestamp]),
|
|
68278
68416
|
'scale_parameter': ConjureFieldDefinition('scaleParameter', OptionalTypeWrapper[scout_video_api_ScaleParameter])
|
|
68279
68417
|
}
|
|
68280
68418
|
|
|
68281
68419
|
__slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_starting_timestamp', '_scale_parameter']
|
|
68282
68420
|
|
|
68283
|
-
def __init__(self,
|
|
68421
|
+
def __init__(self, description: Optional[str] = None, labels: Optional[List[str]] = None, properties: Optional[Dict[str, str]] = None, scale_parameter: Optional["scout_video_api_ScaleParameter"] = None, starting_timestamp: Optional["api_Timestamp"] = None, title: Optional[str] = None) -> None:
|
|
68284
68422
|
self._title = title
|
|
68285
68423
|
self._description = description
|
|
68286
68424
|
self._labels = labels
|
|
@@ -68301,7 +68439,7 @@ class scout_video_api_UpdateVideoMetadataRequest(ConjureBeanType):
|
|
|
68301
68439
|
return self._labels
|
|
68302
68440
|
|
|
68303
68441
|
@builtins.property
|
|
68304
|
-
def properties(self) -> Dict[str, str]:
|
|
68442
|
+
def properties(self) -> Optional[Dict[str, str]]:
|
|
68305
68443
|
return self._properties
|
|
68306
68444
|
|
|
68307
68445
|
@builtins.property
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
from .._impl import (
|
|
3
3
|
scout_channelvariables_api_ChannelVariable as ChannelVariable,
|
|
4
4
|
scout_channelvariables_api_ChannelVariableName as ChannelVariableName,
|
|
5
|
+
scout_channelvariables_api_ComputeNodeWithContext as ComputeNodeWithContext,
|
|
5
6
|
scout_channelvariables_api_ComputeSpec as ComputeSpec,
|
|
6
7
|
scout_channelvariables_api_ComputeSpecV1 as ComputeSpecV1,
|
|
7
8
|
scout_channelvariables_api_ComputeSpecVisitor as ComputeSpecVisitor,
|
|
9
|
+
scout_channelvariables_api_VariableLocator as VariableLocator,
|
|
10
|
+
scout_channelvariables_api_VariableLocatorVisitor as VariableLocatorVisitor,
|
|
8
11
|
scout_channelvariables_api_WorkbookChannelVariableMap as WorkbookChannelVariableMap,
|
|
12
|
+
scout_channelvariables_api_WorkbookContext as WorkbookContext,
|
|
9
13
|
)
|
|
10
14
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=u_ZrXG_JJGKgq-OF0shwsVFYYMTghAV9mEvYY0vZRRw,1968
|
|
2
|
+
nominal_api/_impl.py,sha256=zlDQ7J6iD72URBDDvWRAX5Vx2ByNTSX_qNdKghsapkA,2954970
|
|
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
|
|
@@ -22,7 +22,7 @@ nominal_api/scout_api/__init__.py,sha256=biO4DEygbGcLwM6Dg2VuvMra3A5EW6NBjukbIem
|
|
|
22
22
|
nominal_api/scout_asset_api/__init__.py,sha256=Ph-KlW-ki0JRejYQZDvbZ2jRzNAttVBux27lcEj7--Q,1910
|
|
23
23
|
nominal_api/scout_assets/__init__.py,sha256=dT-b9HnbwVbI-fEalfskKSMGzhGRwZDZ2cdzWul1daY,87
|
|
24
24
|
nominal_api/scout_catalog/__init__.py,sha256=dZeiBEaLbhHAYaOuwhheUsLPZVJuJrh7XCX8vVIgSJQ,3110
|
|
25
|
-
nominal_api/scout_channelvariables_api/__init__.py,sha256=
|
|
25
|
+
nominal_api/scout_channelvariables_api/__init__.py,sha256=39HhqONasq2MWrbEXvYwap4BqpOP9Q0Mg07-J2Zenqs,762
|
|
26
26
|
nominal_api/scout_chart_api/__init__.py,sha256=sw7WSYs6SarSW7x-3IBkSIrVea1cVFnQnpYiNKbCWnQ,184
|
|
27
27
|
nominal_api/scout_chartdefinition_api/__init__.py,sha256=pXGFjL1eYAJXOxYXzRF6FvI6-uwRcscbF52uR1UqG_A,9486
|
|
28
28
|
nominal_api/scout_checklistexecution_api/__init__.py,sha256=1_nOnCSWn7bniSvTfskQ9LSJq5U2SRAKICZY9qipOJc,3579
|
|
@@ -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.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.619.0.dist-info/METADATA,sha256=4S3HUiZGsigOgPYxlZiVWj2UK6LLxXiwOYBOKZV6wtk,199
|
|
76
|
+
nominal_api-0.619.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
77
|
+
nominal_api-0.619.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.619.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|