nominal-api 0.916.1__py3-none-any.whl → 0.916.3__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
@@ -81,5 +81,5 @@ __all__ = [
81
81
 
82
82
  __conjure_generator_version__ = "4.17.0"
83
83
 
84
- __version__ = "0.916.1"
84
+ __version__ = "0.916.3"
85
85
 
nominal_api/_impl.py CHANGED
@@ -16804,6 +16804,7 @@ when accounting for out-of-order points.
16804
16804
  _range: Optional[List["scout_compute_api_Range"]] = None
16805
16805
  _enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None
16806
16806
  _numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None
16807
+ _single_point: Optional[Optional["scout_compute_api_SinglePoint"]] = None
16807
16808
  _log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None
16808
16809
  _range_value: Optional[Optional["scout_compute_api_Range"]] = None
16809
16810
  _numeric: Optional["scout_compute_api_NumericPlot"] = None
@@ -16822,6 +16823,7 @@ when accounting for out-of-order points.
16822
16823
  'range': ConjureFieldDefinition('range', List[scout_compute_api_Range]),
16823
16824
  'enum_point': ConjureFieldDefinition('enumPoint', OptionalTypeWrapper[scout_compute_api_EnumPoint]),
16824
16825
  'numeric_point': ConjureFieldDefinition('numericPoint', OptionalTypeWrapper[scout_compute_api_NumericPoint]),
16826
+ 'single_point': ConjureFieldDefinition('singlePoint', OptionalTypeWrapper[scout_compute_api_SinglePoint]),
16825
16827
  'log_point': ConjureFieldDefinition('logPoint', OptionalTypeWrapper[scout_compute_api_LogPoint]),
16826
16828
  'range_value': ConjureFieldDefinition('rangeValue', OptionalTypeWrapper[scout_compute_api_Range]),
16827
16829
  'numeric': ConjureFieldDefinition('numeric', scout_compute_api_NumericPlot),
@@ -16840,6 +16842,7 @@ when accounting for out-of-order points.
16840
16842
  range: Optional[List["scout_compute_api_Range"]] = None,
16841
16843
  enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None,
16842
16844
  numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None,
16845
+ single_point: Optional[Optional["scout_compute_api_SinglePoint"]] = None,
16843
16846
  log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None,
16844
16847
  range_value: Optional[Optional["scout_compute_api_Range"]] = None,
16845
16848
  numeric: Optional["scout_compute_api_NumericPlot"] = None,
@@ -16854,7 +16857,7 @@ when accounting for out-of-order points.
16854
16857
  type_of_union: Optional[str] = None
16855
16858
  ) -> None:
16856
16859
  if type_of_union is None:
16857
- if (range is not None) + (enum_point is not None) + (numeric_point is not None) + (log_point is not None) + (range_value is not None) + (numeric is not None) + (enum is not None) + (bucketed_numeric is not None) + (bucketed_enum is not None) + (arrow_numeric is not None) + (arrow_enum is not None) + (arrow_bucketed_numeric is not None) + (arrow_bucketed_enum is not None) + (grouped is not None) != 1:
16860
+ if (range is not None) + (enum_point is not None) + (numeric_point is not None) + (single_point is not None) + (log_point is not None) + (range_value is not None) + (numeric is not None) + (enum is not None) + (bucketed_numeric is not None) + (bucketed_enum is not None) + (arrow_numeric is not None) + (arrow_enum is not None) + (arrow_bucketed_numeric is not None) + (arrow_bucketed_enum is not None) + (grouped is not None) != 1:
16858
16861
  raise ValueError('a union must contain a single member')
16859
16862
 
16860
16863
  if range is not None:
@@ -16866,6 +16869,9 @@ when accounting for out-of-order points.
16866
16869
  if numeric_point is not None:
16867
16870
  self._numeric_point = numeric_point
16868
16871
  self._type = 'numericPoint'
16872
+ if single_point is not None:
16873
+ self._single_point = single_point
16874
+ self._type = 'singlePoint'
16869
16875
  if log_point is not None:
16870
16876
  self._log_point = log_point
16871
16877
  self._type = 'logPoint'
@@ -16915,6 +16921,11 @@ when accounting for out-of-order points.
16915
16921
  raise ValueError('a union value must not be None')
16916
16922
  self._numeric_point = numeric_point
16917
16923
  self._type = 'numericPoint'
16924
+ elif type_of_union == 'singlePoint':
16925
+ if single_point is None:
16926
+ raise ValueError('a union value must not be None')
16927
+ self._single_point = single_point
16928
+ self._type = 'singlePoint'
16918
16929
  elif type_of_union == 'logPoint':
16919
16930
  if log_point is None:
16920
16931
  raise ValueError('a union value must not be None')
@@ -16990,6 +17001,12 @@ ranges, possibly merging them if they overlap or are adjacent.
16990
17001
  """
16991
17002
  return self._numeric_point
16992
17003
 
17004
+ @builtins.property
17005
+ def single_point(self) -> Optional[Optional["scout_compute_api_SinglePoint"]]:
17006
+ """Merging can be done by keeping track of the applicable point present within the current window
17007
+ """
17008
+ return self._single_point
17009
+
16993
17010
  @builtins.property
16994
17011
  def log_point(self) -> Optional[Optional["scout_compute_api_LogPoint"]]:
16995
17012
  """Merging can be done by keeping track of the applicable point present within the current window
@@ -17074,6 +17091,8 @@ with the newer ones.
17074
17091
  return visitor._enum_point(self.enum_point)
17075
17092
  if self._type == 'numericPoint' and self.numeric_point is not None:
17076
17093
  return visitor._numeric_point(self.numeric_point)
17094
+ if self._type == 'singlePoint' and self.single_point is not None:
17095
+ return visitor._single_point(self.single_point)
17077
17096
  if self._type == 'logPoint' and self.log_point is not None:
17078
17097
  return visitor._log_point(self.log_point)
17079
17098
  if self._type == 'rangeValue' and self.range_value is not None:
@@ -17117,6 +17136,10 @@ class persistent_compute_api_ComputeNodeAppendResponseVisitor:
17117
17136
  def _numeric_point(self, numeric_point: Optional["scout_compute_api_NumericPoint"]) -> Any:
17118
17137
  pass
17119
17138
 
17139
+ @abstractmethod
17140
+ def _single_point(self, single_point: Optional["scout_compute_api_SinglePoint"]) -> Any:
17141
+ pass
17142
+
17120
17143
  @abstractmethod
17121
17144
  def _log_point(self, log_point: Optional["scout_compute_api_LogPoint"]) -> Any:
17122
17145
  pass
@@ -53959,9 +53982,7 @@ scout_compute_api_SignalFilterSeries.__module__ = "nominal_api.scout_compute_api
53959
53982
 
53960
53983
 
53961
53984
  class scout_compute_api_SinglePoint(ConjureBeanType):
53962
- """A return type used for sending generic point value returns. Uses strings to pass Int64.
53963
- Precision loss is a warning that will be true if any of the referenced series are Int series and
53964
- the result is computed with casting values to doubles due to lack of ability to be done in clickhouse.
53985
+ """Return type representing a single point value.
53965
53986
  """
53966
53987
 
53967
53988
  @builtins.classmethod
@@ -53989,6 +54010,9 @@ the result is computed with casting values to doubles due to lack of ability to
53989
54010
 
53990
54011
  @builtins.property
53991
54012
  def precision_loss(self) -> bool:
54013
+ """Returns true if the result required downcasting to a type with less precision,
54014
+ for example if the input series was Int64 and the result is a Float64.
54015
+ """
53992
54016
  return self._precision_loss
53993
54017
 
53994
54018
 
@@ -55642,13 +55666,13 @@ scout_compute_api_UnitsMissing.__module__ = "nominal_api.scout_compute_api"
55642
55666
 
55643
55667
 
55644
55668
  class scout_compute_api_Value(ConjureUnionType):
55645
- """A way to represent any general return value. Supports numeric, string, array, and struct returns.
55669
+ """A single value. The type is dictated by the returned variant
55646
55670
  """
55647
55671
  _string_value: Optional[str] = None
55648
55672
  _float64_value: Optional[float] = None
55649
55673
  _int64_value: Optional[str] = None
55650
55674
  _array_value: Optional[List[Optional["scout_compute_api_Value"]]] = None
55651
- _object_value: Optional[Dict[str, Optional["scout_compute_api_Value"]]] = None
55675
+ _struct_value: Optional[Dict[str, Optional["scout_compute_api_Value"]]] = None
55652
55676
 
55653
55677
  @builtins.classmethod
55654
55678
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -55657,7 +55681,7 @@ class scout_compute_api_Value(ConjureUnionType):
55657
55681
  'float64_value': ConjureFieldDefinition('float64Value', float),
55658
55682
  'int64_value': ConjureFieldDefinition('int64Value', str),
55659
55683
  'array_value': ConjureFieldDefinition('arrayValue', List[OptionalTypeWrapper[scout_compute_api_Value]]),
55660
- 'object_value': ConjureFieldDefinition('objectValue', Dict[str, OptionalTypeWrapper[scout_compute_api_Value]])
55684
+ 'struct_value': ConjureFieldDefinition('structValue', Dict[str, OptionalTypeWrapper[scout_compute_api_Value]])
55661
55685
  }
55662
55686
 
55663
55687
  def __init__(
@@ -55666,11 +55690,11 @@ class scout_compute_api_Value(ConjureUnionType):
55666
55690
  float64_value: Optional[float] = None,
55667
55691
  int64_value: Optional[str] = None,
55668
55692
  array_value: Optional[List[Optional["scout_compute_api_Value"]]] = None,
55669
- object_value: Optional[Dict[str, Optional["scout_compute_api_Value"]]] = None,
55693
+ struct_value: Optional[Dict[str, Optional["scout_compute_api_Value"]]] = None,
55670
55694
  type_of_union: Optional[str] = None
55671
55695
  ) -> None:
55672
55696
  if type_of_union is None:
55673
- if (string_value is not None) + (float64_value is not None) + (int64_value is not None) + (array_value is not None) + (object_value is not None) != 1:
55697
+ if (string_value is not None) + (float64_value is not None) + (int64_value is not None) + (array_value is not None) + (struct_value is not None) != 1:
55674
55698
  raise ValueError('a union must contain a single member')
55675
55699
 
55676
55700
  if string_value is not None:
@@ -55685,9 +55709,9 @@ class scout_compute_api_Value(ConjureUnionType):
55685
55709
  if array_value is not None:
55686
55710
  self._array_value = array_value
55687
55711
  self._type = 'arrayValue'
55688
- if object_value is not None:
55689
- self._object_value = object_value
55690
- self._type = 'objectValue'
55712
+ if struct_value is not None:
55713
+ self._struct_value = struct_value
55714
+ self._type = 'structValue'
55691
55715
 
55692
55716
  elif type_of_union == 'stringValue':
55693
55717
  if string_value is None:
@@ -55709,11 +55733,11 @@ class scout_compute_api_Value(ConjureUnionType):
55709
55733
  raise ValueError('a union value must not be None')
55710
55734
  self._array_value = array_value
55711
55735
  self._type = 'arrayValue'
55712
- elif type_of_union == 'objectValue':
55713
- if object_value is None:
55736
+ elif type_of_union == 'structValue':
55737
+ if struct_value is None:
55714
55738
  raise ValueError('a union value must not be None')
55715
- self._object_value = object_value
55716
- self._type = 'objectValue'
55739
+ self._struct_value = struct_value
55740
+ self._type = 'structValue'
55717
55741
 
55718
55742
  @builtins.property
55719
55743
  def string_value(self) -> Optional[str]:
@@ -55732,8 +55756,8 @@ class scout_compute_api_Value(ConjureUnionType):
55732
55756
  return self._array_value
55733
55757
 
55734
55758
  @builtins.property
55735
- def object_value(self) -> Optional[Dict[str, Optional["scout_compute_api_Value"]]]:
55736
- return self._object_value
55759
+ def struct_value(self) -> Optional[Dict[str, Optional["scout_compute_api_Value"]]]:
55760
+ return self._struct_value
55737
55761
 
55738
55762
  def accept(self, visitor) -> Any:
55739
55763
  if not isinstance(visitor, scout_compute_api_ValueVisitor):
@@ -55746,8 +55770,8 @@ class scout_compute_api_Value(ConjureUnionType):
55746
55770
  return visitor._int64_value(self.int64_value)
55747
55771
  if self._type == 'arrayValue' and self.array_value is not None:
55748
55772
  return visitor._array_value(self.array_value)
55749
- if self._type == 'objectValue' and self.object_value is not None:
55750
- return visitor._object_value(self.object_value)
55773
+ if self._type == 'structValue' and self.struct_value is not None:
55774
+ return visitor._struct_value(self.struct_value)
55751
55775
 
55752
55776
 
55753
55777
  scout_compute_api_Value.__name__ = "Value"
@@ -55774,7 +55798,7 @@ class scout_compute_api_ValueVisitor:
55774
55798
  pass
55775
55799
 
55776
55800
  @abstractmethod
55777
- def _object_value(self, object_value: Dict[str, Optional["scout_compute_api_Value"]]) -> Any:
55801
+ def _struct_value(self, struct_value: Dict[str, Optional["scout_compute_api_Value"]]) -> Any:
55778
55802
  pass
55779
55803
 
55780
55804
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.916.1
3
+ Version: 0.916.3
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=Yl06g57Lr6RswRXLfT2tUc2TuDmyI90oJmPEwegrJHQ,2088
2
- nominal_api/_impl.py,sha256=_Rwp5_n1RfizdyUrTyeclxV-TSGMl8zdPzWupc9OFv4,3807968
1
+ nominal_api/__init__.py,sha256=xaBoW6WYu84zF84XWmONL_6eCNH9Bh-Vl4XvrzZp8Zk,2088
2
+ nominal_api/_impl.py,sha256=DLWPU3G3yDeSUf397TWGZp32B4ZxGkv25swia5uoDMA,3809062
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=GqRLE9wwPPQgALVHFJViG8E4JJ2t3yfHedeXRLu1L70,2226
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -78,7 +78,7 @@ nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrR
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
80
  nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
81
- nominal_api-0.916.1.dist-info/METADATA,sha256=Ri4kZGIVLdr_FazP8yQ_mX-FUbbhHPSuvpaLWsmwGsM,199
82
- nominal_api-0.916.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- nominal_api-0.916.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
- nominal_api-0.916.1.dist-info/RECORD,,
81
+ nominal_api-0.916.3.dist-info/METADATA,sha256=vLc_j3AVR7DMwhQgZ8zizETRC2gUhjLtVMt4j91zopg,199
82
+ nominal_api-0.916.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ nominal_api-0.916.3.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
+ nominal_api-0.916.3.dist-info/RECORD,,