nominal-api 0.982.0__py3-none-any.whl → 0.989.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 CHANGED
@@ -82,5 +82,5 @@ __all__ = [
82
82
 
83
83
  __conjure_generator_version__ = "4.17.0"
84
84
 
85
- __version__ = "0.982.0"
85
+ __version__ = "0.989.0"
86
86
 
nominal_api/_impl.py CHANGED
@@ -18942,7 +18942,7 @@ a RunNotFound error will be thrown.
18942
18942
  _decoder = ConjureDecoder()
18943
18943
  return _decoder.decode(_response.json(), scout_notebook_api_Notebook, self._return_none_for_unknown_union_types)
18944
18944
 
18945
- def get(self, auth_header: str, rid: str) -> "scout_notebook_api_Notebook":
18945
+ def get(self, auth_header: str, rid: str, snapshot: Optional[str] = None) -> "scout_notebook_api_Notebook":
18946
18946
  _conjure_encoder = ConjureEncoder()
18947
18947
 
18948
18948
  _headers: Dict[str, Any] = {
@@ -18951,6 +18951,7 @@ a RunNotFound error will be thrown.
18951
18951
  }
18952
18952
 
18953
18953
  _params: Dict[str, Any] = {
18954
+ 'snapshot': _conjure_encoder.default(snapshot),
18954
18955
  }
18955
18956
 
18956
18957
  _path_params: Dict[str, str] = {
@@ -31948,6 +31949,103 @@ scout_chartdefinition_api_StalenessVisualisationVisitor.__qualname__ = "Stalenes
31948
31949
  scout_chartdefinition_api_StalenessVisualisationVisitor.__module__ = "nominal_api.scout_chartdefinition_api"
31949
31950
 
31950
31951
 
31952
+ class scout_chartdefinition_api_StructCellConfig(ConjureBeanType):
31953
+
31954
+ @builtins.classmethod
31955
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
31956
+ return {
31957
+ 'visualisation': ConjureFieldDefinition('visualisation', OptionalTypeWrapper[scout_chartdefinition_api_StructVisualisation])
31958
+ }
31959
+
31960
+ __slots__: List[str] = ['_visualisation']
31961
+
31962
+ def __init__(self, visualisation: Optional["scout_chartdefinition_api_StructVisualisation"] = None) -> None:
31963
+ self._visualisation = visualisation
31964
+
31965
+ @builtins.property
31966
+ def visualisation(self) -> Optional["scout_chartdefinition_api_StructVisualisation"]:
31967
+ return self._visualisation
31968
+
31969
+
31970
+ scout_chartdefinition_api_StructCellConfig.__name__ = "StructCellConfig"
31971
+ scout_chartdefinition_api_StructCellConfig.__qualname__ = "StructCellConfig"
31972
+ scout_chartdefinition_api_StructCellConfig.__module__ = "nominal_api.scout_chartdefinition_api"
31973
+
31974
+
31975
+ class scout_chartdefinition_api_StructRawVisualisation(ConjureBeanType):
31976
+ """A raw struct visualisation (renders the JSON as-is)
31977
+ """
31978
+
31979
+ @builtins.classmethod
31980
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
31981
+ return {
31982
+ }
31983
+
31984
+ __slots__: List[str] = []
31985
+
31986
+
31987
+
31988
+ scout_chartdefinition_api_StructRawVisualisation.__name__ = "StructRawVisualisation"
31989
+ scout_chartdefinition_api_StructRawVisualisation.__qualname__ = "StructRawVisualisation"
31990
+ scout_chartdefinition_api_StructRawVisualisation.__module__ = "nominal_api.scout_chartdefinition_api"
31991
+
31992
+
31993
+ class scout_chartdefinition_api_StructVisualisation(ConjureUnionType):
31994
+ _raw: Optional["scout_chartdefinition_api_StructRawVisualisation"] = None
31995
+
31996
+ @builtins.classmethod
31997
+ def _options(cls) -> Dict[str, ConjureFieldDefinition]:
31998
+ return {
31999
+ 'raw': ConjureFieldDefinition('raw', scout_chartdefinition_api_StructRawVisualisation)
32000
+ }
32001
+
32002
+ def __init__(
32003
+ self,
32004
+ raw: Optional["scout_chartdefinition_api_StructRawVisualisation"] = None,
32005
+ type_of_union: Optional[str] = None
32006
+ ) -> None:
32007
+ if type_of_union is None:
32008
+ if (raw is not None) != 1:
32009
+ raise ValueError('a union must contain a single member')
32010
+
32011
+ if raw is not None:
32012
+ self._raw = raw
32013
+ self._type = 'raw'
32014
+
32015
+ elif type_of_union == 'raw':
32016
+ if raw is None:
32017
+ raise ValueError('a union value must not be None')
32018
+ self._raw = raw
32019
+ self._type = 'raw'
32020
+
32021
+ @builtins.property
32022
+ def raw(self) -> Optional["scout_chartdefinition_api_StructRawVisualisation"]:
32023
+ return self._raw
32024
+
32025
+ def accept(self, visitor) -> Any:
32026
+ if not isinstance(visitor, scout_chartdefinition_api_StructVisualisationVisitor):
32027
+ raise ValueError('{} is not an instance of scout_chartdefinition_api_StructVisualisationVisitor'.format(visitor.__class__.__name__))
32028
+ if self._type == 'raw' and self.raw is not None:
32029
+ return visitor._raw(self.raw)
32030
+
32031
+
32032
+ scout_chartdefinition_api_StructVisualisation.__name__ = "StructVisualisation"
32033
+ scout_chartdefinition_api_StructVisualisation.__qualname__ = "StructVisualisation"
32034
+ scout_chartdefinition_api_StructVisualisation.__module__ = "nominal_api.scout_chartdefinition_api"
32035
+
32036
+
32037
+ class scout_chartdefinition_api_StructVisualisationVisitor:
32038
+
32039
+ @abstractmethod
32040
+ def _raw(self, raw: "scout_chartdefinition_api_StructRawVisualisation") -> Any:
32041
+ pass
32042
+
32043
+
32044
+ scout_chartdefinition_api_StructVisualisationVisitor.__name__ = "StructVisualisationVisitor"
32045
+ scout_chartdefinition_api_StructVisualisationVisitor.__qualname__ = "StructVisualisationVisitor"
32046
+ scout_chartdefinition_api_StructVisualisationVisitor.__module__ = "nominal_api.scout_chartdefinition_api"
32047
+
32048
+
31951
32049
  class scout_chartdefinition_api_Threshold(ConjureBeanType):
31952
32050
 
31953
32051
  @builtins.classmethod
@@ -39344,6 +39442,7 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39344
39442
  _mean: Optional["scout_comparisonnotebook_api_Mean"] = None
39345
39443
  _standard_deviation: Optional["scout_comparisonnotebook_api_StandardDeviation"] = None
39346
39444
  _count: Optional["scout_comparisonnotebook_api_Count"] = None
39445
+ _root_mean_square: Optional["scout_comparisonnotebook_api_RootMeanSquare"] = None
39347
39446
 
39348
39447
  @builtins.classmethod
39349
39448
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -39352,7 +39451,8 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39352
39451
  'min': ConjureFieldDefinition('min', scout_comparisonnotebook_api_Min),
39353
39452
  'mean': ConjureFieldDefinition('mean', scout_comparisonnotebook_api_Mean),
39354
39453
  'standard_deviation': ConjureFieldDefinition('standardDeviation', scout_comparisonnotebook_api_StandardDeviation),
39355
- 'count': ConjureFieldDefinition('count', scout_comparisonnotebook_api_Count)
39454
+ 'count': ConjureFieldDefinition('count', scout_comparisonnotebook_api_Count),
39455
+ 'root_mean_square': ConjureFieldDefinition('rootMeanSquare', scout_comparisonnotebook_api_RootMeanSquare)
39356
39456
  }
39357
39457
 
39358
39458
  def __init__(
@@ -39362,10 +39462,11 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39362
39462
  mean: Optional["scout_comparisonnotebook_api_Mean"] = None,
39363
39463
  standard_deviation: Optional["scout_comparisonnotebook_api_StandardDeviation"] = None,
39364
39464
  count: Optional["scout_comparisonnotebook_api_Count"] = None,
39465
+ root_mean_square: Optional["scout_comparisonnotebook_api_RootMeanSquare"] = None,
39365
39466
  type_of_union: Optional[str] = None
39366
39467
  ) -> None:
39367
39468
  if type_of_union is None:
39368
- if (max is not None) + (min is not None) + (mean is not None) + (standard_deviation is not None) + (count is not None) != 1:
39469
+ if (max is not None) + (min is not None) + (mean is not None) + (standard_deviation is not None) + (count is not None) + (root_mean_square is not None) != 1:
39369
39470
  raise ValueError('a union must contain a single member')
39370
39471
 
39371
39472
  if max is not None:
@@ -39383,6 +39484,9 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39383
39484
  if count is not None:
39384
39485
  self._count = count
39385
39486
  self._type = 'count'
39487
+ if root_mean_square is not None:
39488
+ self._root_mean_square = root_mean_square
39489
+ self._type = 'rootMeanSquare'
39386
39490
 
39387
39491
  elif type_of_union == 'max':
39388
39492
  if max is None:
@@ -39409,6 +39513,11 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39409
39513
  raise ValueError('a union value must not be None')
39410
39514
  self._count = count
39411
39515
  self._type = 'count'
39516
+ elif type_of_union == 'rootMeanSquare':
39517
+ if root_mean_square is None:
39518
+ raise ValueError('a union value must not be None')
39519
+ self._root_mean_square = root_mean_square
39520
+ self._type = 'rootMeanSquare'
39412
39521
 
39413
39522
  @builtins.property
39414
39523
  def max(self) -> Optional["scout_comparisonnotebook_api_Max"]:
@@ -39430,6 +39539,10 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39430
39539
  def count(self) -> Optional["scout_comparisonnotebook_api_Count"]:
39431
39540
  return self._count
39432
39541
 
39542
+ @builtins.property
39543
+ def root_mean_square(self) -> Optional["scout_comparisonnotebook_api_RootMeanSquare"]:
39544
+ return self._root_mean_square
39545
+
39433
39546
  def accept(self, visitor) -> Any:
39434
39547
  if not isinstance(visitor, scout_comparisonnotebook_api_AggregationTypeVisitor):
39435
39548
  raise ValueError('{} is not an instance of scout_comparisonnotebook_api_AggregationTypeVisitor'.format(visitor.__class__.__name__))
@@ -39443,6 +39556,8 @@ class scout_comparisonnotebook_api_AggregationType(ConjureUnionType):
39443
39556
  return visitor._standard_deviation(self.standard_deviation)
39444
39557
  if self._type == 'count' and self.count is not None:
39445
39558
  return visitor._count(self.count)
39559
+ if self._type == 'rootMeanSquare' and self.root_mean_square is not None:
39560
+ return visitor._root_mean_square(self.root_mean_square)
39446
39561
 
39447
39562
 
39448
39563
  scout_comparisonnotebook_api_AggregationType.__name__ = "AggregationType"
@@ -39472,6 +39587,10 @@ class scout_comparisonnotebook_api_AggregationTypeVisitor:
39472
39587
  def _count(self, count: "scout_comparisonnotebook_api_Count") -> Any:
39473
39588
  pass
39474
39589
 
39590
+ @abstractmethod
39591
+ def _root_mean_square(self, root_mean_square: "scout_comparisonnotebook_api_RootMeanSquare") -> Any:
39592
+ pass
39593
+
39475
39594
 
39476
39595
  scout_comparisonnotebook_api_AggregationTypeVisitor.__name__ = "AggregationTypeVisitor"
39477
39596
  scout_comparisonnotebook_api_AggregationTypeVisitor.__qualname__ = "AggregationTypeVisitor"
@@ -40533,6 +40652,22 @@ scout_comparisonnotebook_api_RangeAggregationDefinition.__qualname__ = "RangeAgg
40533
40652
  scout_comparisonnotebook_api_RangeAggregationDefinition.__module__ = "nominal_api.scout_comparisonnotebook_api"
40534
40653
 
40535
40654
 
40655
+ class scout_comparisonnotebook_api_RootMeanSquare(ConjureBeanType):
40656
+
40657
+ @builtins.classmethod
40658
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
40659
+ return {
40660
+ }
40661
+
40662
+ __slots__: List[str] = []
40663
+
40664
+
40665
+
40666
+ scout_comparisonnotebook_api_RootMeanSquare.__name__ = "RootMeanSquare"
40667
+ scout_comparisonnotebook_api_RootMeanSquare.__qualname__ = "RootMeanSquare"
40668
+ scout_comparisonnotebook_api_RootMeanSquare.__module__ = "nominal_api.scout_comparisonnotebook_api"
40669
+
40670
+
40536
40671
  class scout_comparisonnotebook_api_ScatterPlotValueAxes(ConjureBeanType):
40537
40672
  """specifies the axes configurations for a given x and y axis.
40538
40673
  """
@@ -47820,6 +47955,38 @@ scout_compute_api_ExponentialResultDetails.__qualname__ = "ExponentialResultDeta
47820
47955
  scout_compute_api_ExponentialResultDetails.__module__ = "nominal_api.scout_compute_api"
47821
47956
 
47822
47957
 
47958
+ class scout_compute_api_ExtractStructFromStructSeries(ConjureBeanType):
47959
+
47960
+ @builtins.classmethod
47961
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47962
+ return {
47963
+ 'input': ConjureFieldDefinition('input', scout_compute_api_StructSeries),
47964
+ 'field_path': ConjureFieldDefinition('fieldPath', scout_compute_api_StringConstant)
47965
+ }
47966
+
47967
+ __slots__: List[str] = ['_input', '_field_path']
47968
+
47969
+ def __init__(self, field_path: "scout_compute_api_StringConstant", input: "scout_compute_api_StructSeries") -> None:
47970
+ self._input = input
47971
+ self._field_path = field_path
47972
+
47973
+ @builtins.property
47974
+ def input(self) -> "scout_compute_api_StructSeries":
47975
+ return self._input
47976
+
47977
+ @builtins.property
47978
+ def field_path(self) -> "scout_compute_api_StringConstant":
47979
+ """Path to the field to extract as a struct. Nested fields are separated by periods and field names cannot contain periods.
47980
+ Returns an empty struct if the path is invalid or does not resolve to a valid JSON struct.
47981
+ """
47982
+ return self._field_path
47983
+
47984
+
47985
+ scout_compute_api_ExtractStructFromStructSeries.__name__ = "ExtractStructFromStructSeries"
47986
+ scout_compute_api_ExtractStructFromStructSeries.__qualname__ = "ExtractStructFromStructSeries"
47987
+ scout_compute_api_ExtractStructFromStructSeries.__module__ = "nominal_api.scout_compute_api"
47988
+
47989
+
47823
47990
  class scout_compute_api_Fft(ConjureBeanType):
47824
47991
  """Returns the single sided amplitude spectrum of the input series.
47825
47992
  """
@@ -55637,13 +55804,15 @@ class scout_compute_api_StructSeries(ConjureUnionType):
55637
55804
  _channel: Optional["scout_compute_api_ChannelSeries"] = None
55638
55805
  _raw: Optional["scout_compute_api_Reference"] = None
55639
55806
  _derived: Optional["scout_compute_api_DerivedSeries"] = None
55807
+ _extract_from_struct: Optional["scout_compute_api_ExtractStructFromStructSeries"] = None
55640
55808
 
55641
55809
  @builtins.classmethod
55642
55810
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
55643
55811
  return {
55644
55812
  'channel': ConjureFieldDefinition('channel', scout_compute_api_ChannelSeries),
55645
55813
  'raw': ConjureFieldDefinition('raw', scout_compute_api_Reference),
55646
- 'derived': ConjureFieldDefinition('derived', scout_compute_api_DerivedSeries)
55814
+ 'derived': ConjureFieldDefinition('derived', scout_compute_api_DerivedSeries),
55815
+ 'extract_from_struct': ConjureFieldDefinition('extractFromStruct', scout_compute_api_ExtractStructFromStructSeries)
55647
55816
  }
55648
55817
 
55649
55818
  def __init__(
@@ -55651,10 +55820,11 @@ class scout_compute_api_StructSeries(ConjureUnionType):
55651
55820
  channel: Optional["scout_compute_api_ChannelSeries"] = None,
55652
55821
  raw: Optional["scout_compute_api_Reference"] = None,
55653
55822
  derived: Optional["scout_compute_api_DerivedSeries"] = None,
55823
+ extract_from_struct: Optional["scout_compute_api_ExtractStructFromStructSeries"] = None,
55654
55824
  type_of_union: Optional[str] = None
55655
55825
  ) -> None:
55656
55826
  if type_of_union is None:
55657
- if (channel is not None) + (raw is not None) + (derived is not None) != 1:
55827
+ if (channel is not None) + (raw is not None) + (derived is not None) + (extract_from_struct is not None) != 1:
55658
55828
  raise ValueError('a union must contain a single member')
55659
55829
 
55660
55830
  if channel is not None:
@@ -55666,6 +55836,9 @@ class scout_compute_api_StructSeries(ConjureUnionType):
55666
55836
  if derived is not None:
55667
55837
  self._derived = derived
55668
55838
  self._type = 'derived'
55839
+ if extract_from_struct is not None:
55840
+ self._extract_from_struct = extract_from_struct
55841
+ self._type = 'extractFromStruct'
55669
55842
 
55670
55843
  elif type_of_union == 'channel':
55671
55844
  if channel is None:
@@ -55682,6 +55855,11 @@ class scout_compute_api_StructSeries(ConjureUnionType):
55682
55855
  raise ValueError('a union value must not be None')
55683
55856
  self._derived = derived
55684
55857
  self._type = 'derived'
55858
+ elif type_of_union == 'extractFromStruct':
55859
+ if extract_from_struct is None:
55860
+ raise ValueError('a union value must not be None')
55861
+ self._extract_from_struct = extract_from_struct
55862
+ self._type = 'extractFromStruct'
55685
55863
 
55686
55864
  @builtins.property
55687
55865
  def channel(self) -> Optional["scout_compute_api_ChannelSeries"]:
@@ -55695,6 +55873,10 @@ class scout_compute_api_StructSeries(ConjureUnionType):
55695
55873
  def derived(self) -> Optional["scout_compute_api_DerivedSeries"]:
55696
55874
  return self._derived
55697
55875
 
55876
+ @builtins.property
55877
+ def extract_from_struct(self) -> Optional["scout_compute_api_ExtractStructFromStructSeries"]:
55878
+ return self._extract_from_struct
55879
+
55698
55880
  def accept(self, visitor) -> Any:
55699
55881
  if not isinstance(visitor, scout_compute_api_StructSeriesVisitor):
55700
55882
  raise ValueError('{} is not an instance of scout_compute_api_StructSeriesVisitor'.format(visitor.__class__.__name__))
@@ -55704,6 +55886,8 @@ class scout_compute_api_StructSeries(ConjureUnionType):
55704
55886
  return visitor._raw(self.raw)
55705
55887
  if self._type == 'derived' and self.derived is not None:
55706
55888
  return visitor._derived(self.derived)
55889
+ if self._type == 'extractFromStruct' and self.extract_from_struct is not None:
55890
+ return visitor._extract_from_struct(self.extract_from_struct)
55707
55891
 
55708
55892
 
55709
55893
  scout_compute_api_StructSeries.__name__ = "StructSeries"
@@ -55725,6 +55909,10 @@ class scout_compute_api_StructSeriesVisitor:
55725
55909
  def _derived(self, derived: "scout_compute_api_DerivedSeries") -> Any:
55726
55910
  pass
55727
55911
 
55912
+ @abstractmethod
55913
+ def _extract_from_struct(self, extract_from_struct: "scout_compute_api_ExtractStructFromStructSeries") -> Any:
55914
+ pass
55915
+
55728
55916
 
55729
55917
  scout_compute_api_StructSeriesVisitor.__name__ = "StructSeriesVisitor"
55730
55918
  scout_compute_api_StructSeriesVisitor.__qualname__ = "StructSeriesVisitor"
@@ -61328,6 +61516,35 @@ scout_compute_resolved_api_ExponentialCurve.__qualname__ = "ExponentialCurve"
61328
61516
  scout_compute_resolved_api_ExponentialCurve.__module__ = "nominal_api.scout_compute_resolved_api"
61329
61517
 
61330
61518
 
61519
+ class scout_compute_resolved_api_ExtractStructFromStructSeriesNode(ConjureBeanType):
61520
+
61521
+ @builtins.classmethod
61522
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
61523
+ return {
61524
+ 'input': ConjureFieldDefinition('input', scout_compute_resolved_api_StructSeriesNode),
61525
+ 'field_path': ConjureFieldDefinition('fieldPath', str)
61526
+ }
61527
+
61528
+ __slots__: List[str] = ['_input', '_field_path']
61529
+
61530
+ def __init__(self, field_path: str, input: "scout_compute_resolved_api_StructSeriesNode") -> None:
61531
+ self._input = input
61532
+ self._field_path = field_path
61533
+
61534
+ @builtins.property
61535
+ def input(self) -> "scout_compute_resolved_api_StructSeriesNode":
61536
+ return self._input
61537
+
61538
+ @builtins.property
61539
+ def field_path(self) -> str:
61540
+ return self._field_path
61541
+
61542
+
61543
+ scout_compute_resolved_api_ExtractStructFromStructSeriesNode.__name__ = "ExtractStructFromStructSeriesNode"
61544
+ scout_compute_resolved_api_ExtractStructFromStructSeriesNode.__qualname__ = "ExtractStructFromStructSeriesNode"
61545
+ scout_compute_resolved_api_ExtractStructFromStructSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
61546
+
61547
+
61331
61548
  class scout_compute_resolved_api_ExtremaRangesNode(ConjureBeanType):
61332
61549
 
61333
61550
  @builtins.classmethod
@@ -65920,41 +66137,58 @@ scout_compute_resolved_api_StorageLocatorVisitor.__module__ = "nominal_api.scout
65920
66137
 
65921
66138
  class scout_compute_resolved_api_StructSeriesNode(ConjureUnionType):
65922
66139
  _raw: Optional["scout_compute_resolved_api_ResolvedSeries"] = None
66140
+ _extract_from_struct: Optional["scout_compute_resolved_api_ExtractStructFromStructSeriesNode"] = None
65923
66141
 
65924
66142
  @builtins.classmethod
65925
66143
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
65926
66144
  return {
65927
- 'raw': ConjureFieldDefinition('raw', scout_compute_resolved_api_ResolvedSeries)
66145
+ 'raw': ConjureFieldDefinition('raw', scout_compute_resolved_api_ResolvedSeries),
66146
+ 'extract_from_struct': ConjureFieldDefinition('extractFromStruct', scout_compute_resolved_api_ExtractStructFromStructSeriesNode)
65928
66147
  }
65929
66148
 
65930
66149
  def __init__(
65931
66150
  self,
65932
66151
  raw: Optional["scout_compute_resolved_api_ResolvedSeries"] = None,
66152
+ extract_from_struct: Optional["scout_compute_resolved_api_ExtractStructFromStructSeriesNode"] = None,
65933
66153
  type_of_union: Optional[str] = None
65934
66154
  ) -> None:
65935
66155
  if type_of_union is None:
65936
- if (raw is not None) != 1:
66156
+ if (raw is not None) + (extract_from_struct is not None) != 1:
65937
66157
  raise ValueError('a union must contain a single member')
65938
66158
 
65939
66159
  if raw is not None:
65940
66160
  self._raw = raw
65941
66161
  self._type = 'raw'
66162
+ if extract_from_struct is not None:
66163
+ self._extract_from_struct = extract_from_struct
66164
+ self._type = 'extractFromStruct'
65942
66165
 
65943
66166
  elif type_of_union == 'raw':
65944
66167
  if raw is None:
65945
66168
  raise ValueError('a union value must not be None')
65946
66169
  self._raw = raw
65947
66170
  self._type = 'raw'
66171
+ elif type_of_union == 'extractFromStruct':
66172
+ if extract_from_struct is None:
66173
+ raise ValueError('a union value must not be None')
66174
+ self._extract_from_struct = extract_from_struct
66175
+ self._type = 'extractFromStruct'
65948
66176
 
65949
66177
  @builtins.property
65950
66178
  def raw(self) -> Optional["scout_compute_resolved_api_ResolvedSeries"]:
65951
66179
  return self._raw
65952
66180
 
66181
+ @builtins.property
66182
+ def extract_from_struct(self) -> Optional["scout_compute_resolved_api_ExtractStructFromStructSeriesNode"]:
66183
+ return self._extract_from_struct
66184
+
65953
66185
  def accept(self, visitor) -> Any:
65954
66186
  if not isinstance(visitor, scout_compute_resolved_api_StructSeriesNodeVisitor):
65955
66187
  raise ValueError('{} is not an instance of scout_compute_resolved_api_StructSeriesNodeVisitor'.format(visitor.__class__.__name__))
65956
66188
  if self._type == 'raw' and self.raw is not None:
65957
66189
  return visitor._raw(self.raw)
66190
+ if self._type == 'extractFromStruct' and self.extract_from_struct is not None:
66191
+ return visitor._extract_from_struct(self.extract_from_struct)
65958
66192
 
65959
66193
 
65960
66194
  scout_compute_resolved_api_StructSeriesNode.__name__ = "StructSeriesNode"
@@ -65968,6 +66202,10 @@ class scout_compute_resolved_api_StructSeriesNodeVisitor:
65968
66202
  def _raw(self, raw: "scout_compute_resolved_api_ResolvedSeries") -> Any:
65969
66203
  pass
65970
66204
 
66205
+ @abstractmethod
66206
+ def _extract_from_struct(self, extract_from_struct: "scout_compute_resolved_api_ExtractStructFromStructSeriesNode") -> Any:
66207
+ pass
66208
+
65971
66209
 
65972
66210
  scout_compute_resolved_api_StructSeriesNodeVisitor.__name__ = "StructSeriesNodeVisitor"
65973
66211
  scout_compute_resolved_api_StructSeriesNodeVisitor.__qualname__ = "StructSeriesNodeVisitor"
@@ -87008,6 +87246,40 @@ at the segment-level.
87008
87246
  _decoder = ConjureDecoder()
87009
87247
  return _decoder.decode(_response.json(), scout_video_api_CreateSegmentsResponse, self._return_none_for_unknown_union_types)
87010
87248
 
87249
+ def create_video_stream_segments(self, auth_header: str, request: "scout_video_api_CreateSegmentsRequest", stream_uuid: str, video_rid: str) -> "scout_video_api_CreateSegmentsResponse":
87250
+ """Creates segments for a video stream. Similar to createVideoFileSegments but for streaming video.
87251
+ """
87252
+ _conjure_encoder = ConjureEncoder()
87253
+
87254
+ _headers: Dict[str, Any] = {
87255
+ 'Accept': 'application/json',
87256
+ 'Content-Type': 'application/json',
87257
+ 'Authorization': auth_header,
87258
+ }
87259
+
87260
+ _params: Dict[str, Any] = {
87261
+ }
87262
+
87263
+ _path_params: Dict[str, str] = {
87264
+ 'videoRid': quote(str(_conjure_encoder.default(video_rid)), safe=''),
87265
+ 'streamUuid': quote(str(_conjure_encoder.default(stream_uuid)), safe=''),
87266
+ }
87267
+
87268
+ _json: Any = _conjure_encoder.default(request)
87269
+
87270
+ _path = '/video/v1/videos/{videoRid}/streams/{streamUuid}/create-segments'
87271
+ _path = _path.format(**_path_params)
87272
+
87273
+ _response: Response = self._request(
87274
+ 'POST',
87275
+ self._uri + _path,
87276
+ params=_params,
87277
+ headers=_headers,
87278
+ json=_json)
87279
+
87280
+ _decoder = ConjureDecoder()
87281
+ return _decoder.decode(_response.json(), scout_video_api_CreateSegmentsResponse, self._return_none_for_unknown_union_types)
87282
+
87011
87283
  def get_segment_by_timestamp(self, auth_header: str, request: "scout_video_api_GetSegmentByTimestampRequest", video_rid: str) -> Optional["scout_video_api_Segment"]:
87012
87284
  """Returns metadata for the segment within a video containing the requested absolute timestamp.
87013
87285
  """
@@ -148,6 +148,10 @@ from .._impl import (
148
148
  scout_chartdefinition_api_StalenessConfiguration as StalenessConfiguration,
149
149
  scout_chartdefinition_api_StalenessVisualisation as StalenessVisualisation,
150
150
  scout_chartdefinition_api_StalenessVisualisationVisitor as StalenessVisualisationVisitor,
151
+ scout_chartdefinition_api_StructCellConfig as StructCellConfig,
152
+ scout_chartdefinition_api_StructRawVisualisation as StructRawVisualisation,
153
+ scout_chartdefinition_api_StructVisualisation as StructVisualisation,
154
+ scout_chartdefinition_api_StructVisualisationVisitor as StructVisualisationVisitor,
151
155
  scout_chartdefinition_api_Threshold as Threshold,
152
156
  scout_chartdefinition_api_ThresholdDisconnectedValues as ThresholdDisconnectedValues,
153
157
  scout_chartdefinition_api_ThresholdLatch as ThresholdLatch,
@@ -346,6 +350,10 @@ __all__ = [
346
350
  'StalenessConfiguration',
347
351
  'StalenessVisualisation',
348
352
  'StalenessVisualisationVisitor',
353
+ 'StructCellConfig',
354
+ 'StructRawVisualisation',
355
+ 'StructVisualisation',
356
+ 'StructVisualisationVisitor',
349
357
  'Threshold',
350
358
  'ThresholdDisconnectedValues',
351
359
  'ThresholdLatch',
@@ -38,6 +38,7 @@ from .._impl import (
38
38
  scout_comparisonnotebook_api_Min as Min,
39
39
  scout_comparisonnotebook_api_RangeAggregationContext as RangeAggregationContext,
40
40
  scout_comparisonnotebook_api_RangeAggregationDefinition as RangeAggregationDefinition,
41
+ scout_comparisonnotebook_api_RootMeanSquare as RootMeanSquare,
41
42
  scout_comparisonnotebook_api_ScatterPlotValueAxes as ScatterPlotValueAxes,
42
43
  scout_comparisonnotebook_api_StandardDeviation as StandardDeviation,
43
44
  scout_comparisonnotebook_api_SupplementalComparisonWorkbookContext as SupplementalComparisonWorkbookContext,
@@ -92,6 +93,7 @@ __all__ = [
92
93
  'Min',
93
94
  'RangeAggregationContext',
94
95
  'RangeAggregationDefinition',
96
+ 'RootMeanSquare',
95
97
  'ScatterPlotValueAxes',
96
98
  'StandardDeviation',
97
99
  'SupplementalComparisonWorkbookContext',
@@ -145,6 +145,7 @@ from .._impl import (
145
145
  scout_compute_api_ExcludeNegativeValues as ExcludeNegativeValues,
146
146
  scout_compute_api_ExponentialCurve as ExponentialCurve,
147
147
  scout_compute_api_ExponentialResultDetails as ExponentialResultDetails,
148
+ scout_compute_api_ExtractStructFromStructSeries as ExtractStructFromStructSeries,
148
149
  scout_compute_api_Fft as Fft,
149
150
  scout_compute_api_FftWindow as FftWindow,
150
151
  scout_compute_api_FilterByExpressionSeries as FilterByExpressionSeries,
@@ -529,6 +530,7 @@ __all__ = [
529
530
  'ExcludeNegativeValues',
530
531
  'ExponentialCurve',
531
532
  'ExponentialResultDetails',
533
+ 'ExtractStructFromStructSeries',
532
534
  'Fft',
533
535
  'FftWindow',
534
536
  'FilterByExpressionSeries',
@@ -44,6 +44,7 @@ from .._impl import (
44
44
  scout_compute_resolved_api_EnumUnionSeriesNode as EnumUnionSeriesNode,
45
45
  scout_compute_resolved_api_EventSearchNode as EventSearchNode,
46
46
  scout_compute_resolved_api_ExponentialCurve as ExponentialCurve,
47
+ scout_compute_resolved_api_ExtractStructFromStructSeriesNode as ExtractStructFromStructSeriesNode,
47
48
  scout_compute_resolved_api_ExtremaRangesNode as ExtremaRangesNode,
48
49
  scout_compute_resolved_api_FftNode as FftNode,
49
50
  scout_compute_resolved_api_FilterByExpressionSeriesNode as FilterByExpressionSeriesNode,
@@ -213,6 +214,7 @@ __all__ = [
213
214
  'EnumUnionSeriesNode',
214
215
  'EventSearchNode',
215
216
  'ExponentialCurve',
217
+ 'ExtractStructFromStructSeriesNode',
216
218
  'ExtremaRangesNode',
217
219
  'FftNode',
218
220
  'FilterByExpressionSeriesNode',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.982.0
3
+ Version: 0.989.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<4,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=zHAOHl_uy8Zw_3a180qnxPUbNAlKoNVFNk5X4Ul6jBU,2109
2
- nominal_api/_impl.py,sha256=LN1Q8ydPbctKl7AIfpSri1VOUITBUoOC_vpKMdfLScA,3910400
1
+ nominal_api/__init__.py,sha256=S-y1GY99YexgDSnLHPtr5OyMyvY3FMA0eXY-ATjmvu4,2109
2
+ nominal_api/_impl.py,sha256=sUnAhEWzaTfgXm-4Wqd40_wstyFMXRxAMOyfKsrXHGo,3922271
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=OHAEgaRoUX60742H_U3q_pBoPGpLspsL5XERHQ-rjMs,2299
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -29,14 +29,14 @@ nominal_api/scout_assets/__init__.py,sha256=1ZyiolDjhxnrhyeUxW_KyeQ_q-6stlqd1I2d
29
29
  nominal_api/scout_catalog/__init__.py,sha256=1EnyVFs0chW7ne4yECCPvNC_Lzb9SIGtYlb2RzSc0KE,4988
30
30
  nominal_api/scout_channelvariables_api/__init__.py,sha256=Wahkyy-m3gEcaRFYU5ZV3beW-W4OeYnOs9Y4eirQO38,1033
31
31
  nominal_api/scout_chart_api/__init__.py,sha256=hkNhoFOmPYnLFeINiQXqya78wbAsx65DoKU0TpUwhQo,261
32
- nominal_api/scout_chartdefinition_api/__init__.py,sha256=V-2GJax0Bp0krb7x_yJPCi-wcLClg-IX3SriVCXLczo,20524
32
+ nominal_api/scout_chartdefinition_api/__init__.py,sha256=n4c6WNG2X8xzmOUDRCfrOx5jKA7OvjjwEqU7z0dyBNk,20949
33
33
  nominal_api/scout_checklistexecution_api/__init__.py,sha256=iVeUjPTlbpQ3vlQkQjHrNDiFdqaWaQeGb6TQxuox-1c,4892
34
34
  nominal_api/scout_checks_api/__init__.py,sha256=uCmiNrVwLDlkg8YnpP-uZr9nFFFN52sM644Qo6YNy3k,6972
35
- nominal_api/scout_comparisonnotebook_api/__init__.py,sha256=F5cQo_KqeTpFwqKBDV-iEjrND7xQgkycC1yocpxq1Qk,6277
35
+ nominal_api/scout_comparisonnotebook_api/__init__.py,sha256=vophFUuP34axQfrmZjHIlkD2kt3BEtFEj6OJumxzcW0,6366
36
36
  nominal_api/scout_comparisonrun_api/__init__.py,sha256=y5SlDoXvskyTKjg2O8o3cBhGSN-KA7iVlVjyy3vb3Co,652
37
- nominal_api/scout_compute_api/__init__.py,sha256=s_bUtDx-wDmAnPzR03mgu05BHtqOCCqXOg-oEpGeMnM,34978
37
+ nominal_api/scout_compute_api/__init__.py,sha256=nrOS2cANPw52LnsnA9xIPNQ4O0W8QpY2GV7Xexv_iJE,35101
38
38
  nominal_api/scout_compute_api_deprecated/__init__.py,sha256=JrZKbt1ulYECTdUSkXn6On22Alu_cPUBjCRWTN3ctxk,5041
39
- nominal_api/scout_compute_resolved_api/__init__.py,sha256=ZqSOw4usjKsRs-HR1WbZTO4vJ7M_6UzhbSu5oza_KSk,18013
39
+ nominal_api/scout_compute_resolved_api/__init__.py,sha256=2zsHjJGV7_QK7qRvrExaB5qDEibB2riyrDqVC1jX42Y,18157
40
40
  nominal_api/scout_dataexport_api/__init__.py,sha256=jl409RGy7Mxhjqja8wa-abLnXrhL2FEYZrA1GcaAJh0,2182
41
41
  nominal_api/scout_datareview_api/__init__.py,sha256=ITQR6pdPseU9vS2bKDeleafiBhurtHmcHeKz_6J8Ab8,12229
42
42
  nominal_api/scout_datasource/__init__.py,sha256=Z1Msu1Daf8GlLuM3w5imyB-6DhTNZojxI6xpH1sSvhM,141
@@ -79,7 +79,7 @@ nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrR
79
79
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=i21vITWBn-6ruVuFZg491TDpx6WcIhJBoF3oNw3w338,1186
80
80
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
81
81
  nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
82
- nominal_api-0.982.0.dist-info/METADATA,sha256=jNf5prw9JS7Df7kdnJXAxrM_fIF-vTNIWEA1GefmhIM,199
83
- nominal_api-0.982.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- nominal_api-0.982.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
85
- nominal_api-0.982.0.dist-info/RECORD,,
82
+ nominal_api-0.989.0.dist-info/METADATA,sha256=r2z5B09QGjInJH0AsTBQVdWDtvPA8Wy1ZTyDeDhSbk0,199
83
+ nominal_api-0.989.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ nominal_api-0.989.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
85
+ nominal_api-0.989.0.dist-info/RECORD,,