nominal-api 0.874.0__py3-none-any.whl → 0.876.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.
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.874.0"
84
+ __version__ = "0.876.0"
85
85
 
nominal_api/_impl.py CHANGED
@@ -78124,6 +78124,28 @@ scout_run_api_GetRunsByAssetResponse.__qualname__ = "GetRunsByAssetResponse"
78124
78124
  scout_run_api_GetRunsByAssetResponse.__module__ = "nominal_api.scout_run_api"
78125
78125
 
78126
78126
 
78127
+ class scout_run_api_InequalityOperator(ConjureEnumType):
78128
+
78129
+ GT = 'GT'
78130
+ '''GT'''
78131
+ GTE = 'GTE'
78132
+ '''GTE'''
78133
+ LT = 'LT'
78134
+ '''LT'''
78135
+ LTE = 'LTE'
78136
+ '''LTE'''
78137
+ UNKNOWN = 'UNKNOWN'
78138
+ '''UNKNOWN'''
78139
+
78140
+ def __reduce_ex__(self, proto):
78141
+ return self.__class__, (self.name,)
78142
+
78143
+
78144
+ scout_run_api_InequalityOperator.__name__ = "InequalityOperator"
78145
+ scout_run_api_InequalityOperator.__qualname__ = "InequalityOperator"
78146
+ scout_run_api_InequalityOperator.__module__ = "nominal_api.scout_run_api"
78147
+
78148
+
78127
78149
  class scout_run_api_Link(ConjureBeanType):
78128
78150
 
78129
78151
  @builtins.classmethod
@@ -78186,6 +78208,86 @@ scout_run_api_RefNameAndType.__qualname__ = "RefNameAndType"
78186
78208
  scout_run_api_RefNameAndType.__module__ = "nominal_api.scout_run_api"
78187
78209
 
78188
78210
 
78211
+ class scout_run_api_RelativeOrAbsoluteTimestamp(ConjureUnionType):
78212
+ _absolute: Optional["api_Timestamp"] = None
78213
+ _relative: Optional["scout_run_api_Duration"] = None
78214
+
78215
+ @builtins.classmethod
78216
+ def _options(cls) -> Dict[str, ConjureFieldDefinition]:
78217
+ return {
78218
+ 'absolute': ConjureFieldDefinition('absolute', api_Timestamp),
78219
+ 'relative': ConjureFieldDefinition('relative', scout_run_api_Duration)
78220
+ }
78221
+
78222
+ def __init__(
78223
+ self,
78224
+ absolute: Optional["api_Timestamp"] = None,
78225
+ relative: Optional["scout_run_api_Duration"] = None,
78226
+ type_of_union: Optional[str] = None
78227
+ ) -> None:
78228
+ if type_of_union is None:
78229
+ if (absolute is not None) + (relative is not None) != 1:
78230
+ raise ValueError('a union must contain a single member')
78231
+
78232
+ if absolute is not None:
78233
+ self._absolute = absolute
78234
+ self._type = 'absolute'
78235
+ if relative is not None:
78236
+ self._relative = relative
78237
+ self._type = 'relative'
78238
+
78239
+ elif type_of_union == 'absolute':
78240
+ if absolute is None:
78241
+ raise ValueError('a union value must not be None')
78242
+ self._absolute = absolute
78243
+ self._type = 'absolute'
78244
+ elif type_of_union == 'relative':
78245
+ if relative is None:
78246
+ raise ValueError('a union value must not be None')
78247
+ self._relative = relative
78248
+ self._type = 'relative'
78249
+
78250
+ @builtins.property
78251
+ def absolute(self) -> Optional["api_Timestamp"]:
78252
+ return self._absolute
78253
+
78254
+ @builtins.property
78255
+ def relative(self) -> Optional["scout_run_api_Duration"]:
78256
+ """Relative timestamps are relative from the current time use a negative lookback period from the current date.
78257
+ A relative timestamp of 7 days implies "7 days ago from current time".
78258
+ """
78259
+ return self._relative
78260
+
78261
+ def accept(self, visitor) -> Any:
78262
+ if not isinstance(visitor, scout_run_api_RelativeOrAbsoluteTimestampVisitor):
78263
+ raise ValueError('{} is not an instance of scout_run_api_RelativeOrAbsoluteTimestampVisitor'.format(visitor.__class__.__name__))
78264
+ if self._type == 'absolute' and self.absolute is not None:
78265
+ return visitor._absolute(self.absolute)
78266
+ if self._type == 'relative' and self.relative is not None:
78267
+ return visitor._relative(self.relative)
78268
+
78269
+
78270
+ scout_run_api_RelativeOrAbsoluteTimestamp.__name__ = "RelativeOrAbsoluteTimestamp"
78271
+ scout_run_api_RelativeOrAbsoluteTimestamp.__qualname__ = "RelativeOrAbsoluteTimestamp"
78272
+ scout_run_api_RelativeOrAbsoluteTimestamp.__module__ = "nominal_api.scout_run_api"
78273
+
78274
+
78275
+ class scout_run_api_RelativeOrAbsoluteTimestampVisitor:
78276
+
78277
+ @abstractmethod
78278
+ def _absolute(self, absolute: "api_Timestamp") -> Any:
78279
+ pass
78280
+
78281
+ @abstractmethod
78282
+ def _relative(self, relative: "scout_run_api_Duration") -> Any:
78283
+ pass
78284
+
78285
+
78286
+ scout_run_api_RelativeOrAbsoluteTimestampVisitor.__name__ = "RelativeOrAbsoluteTimestampVisitor"
78287
+ scout_run_api_RelativeOrAbsoluteTimestampVisitor.__qualname__ = "RelativeOrAbsoluteTimestampVisitor"
78288
+ scout_run_api_RelativeOrAbsoluteTimestampVisitor.__module__ = "nominal_api.scout_run_api"
78289
+
78290
+
78189
78291
  class scout_run_api_Run(ConjureBeanType):
78190
78292
 
78191
78293
  @builtins.classmethod
@@ -78520,7 +78622,9 @@ scout_run_api_RunWithDataReviewSummary.__module__ = "nominal_api.scout_run_api"
78520
78622
 
78521
78623
  class scout_run_api_SearchQuery(ConjureUnionType):
78522
78624
  _start_time_inclusive: Optional["scout_run_api_UtcTimestamp"] = None
78625
+ _start_time: Optional["scout_run_api_TimestampCondition"] = None
78523
78626
  _end_time_inclusive: Optional["scout_run_api_UtcTimestamp"] = None
78627
+ _end_time: Optional["scout_run_api_TimestampCondition"] = None
78524
78628
  _time_range: Optional["scout_run_api_TimeRangeFilter"] = None
78525
78629
  _exact_match: Optional[str] = None
78526
78630
  _search_text: Optional[str] = None
@@ -78543,7 +78647,9 @@ class scout_run_api_SearchQuery(ConjureUnionType):
78543
78647
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
78544
78648
  return {
78545
78649
  'start_time_inclusive': ConjureFieldDefinition('startTimeInclusive', scout_run_api_UtcTimestamp),
78650
+ 'start_time': ConjureFieldDefinition('startTime', scout_run_api_TimestampCondition),
78546
78651
  'end_time_inclusive': ConjureFieldDefinition('endTimeInclusive', scout_run_api_UtcTimestamp),
78652
+ 'end_time': ConjureFieldDefinition('endTime', scout_run_api_TimestampCondition),
78547
78653
  'time_range': ConjureFieldDefinition('timeRange', scout_run_api_TimeRangeFilter),
78548
78654
  'exact_match': ConjureFieldDefinition('exactMatch', str),
78549
78655
  'search_text': ConjureFieldDefinition('searchText', str),
@@ -78566,7 +78672,9 @@ class scout_run_api_SearchQuery(ConjureUnionType):
78566
78672
  def __init__(
78567
78673
  self,
78568
78674
  start_time_inclusive: Optional["scout_run_api_UtcTimestamp"] = None,
78675
+ start_time: Optional["scout_run_api_TimestampCondition"] = None,
78569
78676
  end_time_inclusive: Optional["scout_run_api_UtcTimestamp"] = None,
78677
+ end_time: Optional["scout_run_api_TimestampCondition"] = None,
78570
78678
  time_range: Optional["scout_run_api_TimeRangeFilter"] = None,
78571
78679
  exact_match: Optional[str] = None,
78572
78680
  search_text: Optional[str] = None,
@@ -78587,15 +78695,21 @@ class scout_run_api_SearchQuery(ConjureUnionType):
78587
78695
  type_of_union: Optional[str] = None
78588
78696
  ) -> None:
78589
78697
  if type_of_union is None:
78590
- if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (time_range is not None) + (exact_match is not None) + (search_text is not None) + (asset is not None) + (is_single_asset is not None) + (label is not None) + (property is not None) + (data_source_series_tag is not None) + (data_source_ref_name is not None) + (data_source is not None) + (run_number is not None) + (run_prefix is not None) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) != 1:
78698
+ if (start_time_inclusive is not None) + (start_time is not None) + (end_time_inclusive is not None) + (end_time is not None) + (time_range is not None) + (exact_match is not None) + (search_text is not None) + (asset is not None) + (is_single_asset is not None) + (label is not None) + (property is not None) + (data_source_series_tag is not None) + (data_source_ref_name is not None) + (data_source is not None) + (run_number is not None) + (run_prefix is not None) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) != 1:
78591
78699
  raise ValueError('a union must contain a single member')
78592
78700
 
78593
78701
  if start_time_inclusive is not None:
78594
78702
  self._start_time_inclusive = start_time_inclusive
78595
78703
  self._type = 'startTimeInclusive'
78704
+ if start_time is not None:
78705
+ self._start_time = start_time
78706
+ self._type = 'startTime'
78596
78707
  if end_time_inclusive is not None:
78597
78708
  self._end_time_inclusive = end_time_inclusive
78598
78709
  self._type = 'endTimeInclusive'
78710
+ if end_time is not None:
78711
+ self._end_time = end_time
78712
+ self._type = 'endTime'
78599
78713
  if time_range is not None:
78600
78714
  self._time_range = time_range
78601
78715
  self._type = 'timeRange'
@@ -78653,11 +78767,21 @@ class scout_run_api_SearchQuery(ConjureUnionType):
78653
78767
  raise ValueError('a union value must not be None')
78654
78768
  self._start_time_inclusive = start_time_inclusive
78655
78769
  self._type = 'startTimeInclusive'
78770
+ elif type_of_union == 'startTime':
78771
+ if start_time is None:
78772
+ raise ValueError('a union value must not be None')
78773
+ self._start_time = start_time
78774
+ self._type = 'startTime'
78656
78775
  elif type_of_union == 'endTimeInclusive':
78657
78776
  if end_time_inclusive is None:
78658
78777
  raise ValueError('a union value must not be None')
78659
78778
  self._end_time_inclusive = end_time_inclusive
78660
78779
  self._type = 'endTimeInclusive'
78780
+ elif type_of_union == 'endTime':
78781
+ if end_time is None:
78782
+ raise ValueError('a union value must not be None')
78783
+ self._end_time = end_time
78784
+ self._type = 'endTime'
78661
78785
  elif type_of_union == 'timeRange':
78662
78786
  if time_range is None:
78663
78787
  raise ValueError('a union value must not be None')
@@ -78748,10 +78872,18 @@ class scout_run_api_SearchQuery(ConjureUnionType):
78748
78872
  def start_time_inclusive(self) -> Optional["scout_run_api_UtcTimestamp"]:
78749
78873
  return self._start_time_inclusive
78750
78874
 
78875
+ @builtins.property
78876
+ def start_time(self) -> Optional["scout_run_api_TimestampCondition"]:
78877
+ return self._start_time
78878
+
78751
78879
  @builtins.property
78752
78880
  def end_time_inclusive(self) -> Optional["scout_run_api_UtcTimestamp"]:
78753
78881
  return self._end_time_inclusive
78754
78882
 
78883
+ @builtins.property
78884
+ def end_time(self) -> Optional["scout_run_api_TimestampCondition"]:
78885
+ return self._end_time
78886
+
78755
78887
  @builtins.property
78756
78888
  def time_range(self) -> Optional["scout_run_api_TimeRangeFilter"]:
78757
78889
  return self._time_range
@@ -78831,8 +78963,12 @@ class scout_run_api_SearchQuery(ConjureUnionType):
78831
78963
  raise ValueError('{} is not an instance of scout_run_api_SearchQueryVisitor'.format(visitor.__class__.__name__))
78832
78964
  if self._type == 'startTimeInclusive' and self.start_time_inclusive is not None:
78833
78965
  return visitor._start_time_inclusive(self.start_time_inclusive)
78966
+ if self._type == 'startTime' and self.start_time is not None:
78967
+ return visitor._start_time(self.start_time)
78834
78968
  if self._type == 'endTimeInclusive' and self.end_time_inclusive is not None:
78835
78969
  return visitor._end_time_inclusive(self.end_time_inclusive)
78970
+ if self._type == 'endTime' and self.end_time is not None:
78971
+ return visitor._end_time(self.end_time)
78836
78972
  if self._type == 'timeRange' and self.time_range is not None:
78837
78973
  return visitor._time_range(self.time_range)
78838
78974
  if self._type == 'exactMatch' and self.exact_match is not None:
@@ -78880,10 +79016,18 @@ class scout_run_api_SearchQueryVisitor:
78880
79016
  def _start_time_inclusive(self, start_time_inclusive: "scout_run_api_UtcTimestamp") -> Any:
78881
79017
  pass
78882
79018
 
79019
+ @abstractmethod
79020
+ def _start_time(self, start_time: "scout_run_api_TimestampCondition") -> Any:
79021
+ pass
79022
+
78883
79023
  @abstractmethod
78884
79024
  def _end_time_inclusive(self, end_time_inclusive: "scout_run_api_UtcTimestamp") -> Any:
78885
79025
  pass
78886
79026
 
79027
+ @abstractmethod
79028
+ def _end_time(self, end_time: "scout_run_api_TimestampCondition") -> Any:
79029
+ pass
79030
+
78887
79031
  @abstractmethod
78888
79032
  def _time_range(self, time_range: "scout_run_api_TimeRangeFilter") -> Any:
78889
79033
  pass
@@ -79372,6 +79516,35 @@ scout_run_api_TimeRangeFilter.__qualname__ = "TimeRangeFilter"
79372
79516
  scout_run_api_TimeRangeFilter.__module__ = "nominal_api.scout_run_api"
79373
79517
 
79374
79518
 
79519
+ class scout_run_api_TimestampCondition(ConjureBeanType):
79520
+
79521
+ @builtins.classmethod
79522
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
79523
+ return {
79524
+ 'operator': ConjureFieldDefinition('operator', scout_run_api_InequalityOperator),
79525
+ 'threshold': ConjureFieldDefinition('threshold', scout_run_api_RelativeOrAbsoluteTimestamp)
79526
+ }
79527
+
79528
+ __slots__: List[str] = ['_operator', '_threshold']
79529
+
79530
+ def __init__(self, operator: "scout_run_api_InequalityOperator", threshold: "scout_run_api_RelativeOrAbsoluteTimestamp") -> None:
79531
+ self._operator = operator
79532
+ self._threshold = threshold
79533
+
79534
+ @builtins.property
79535
+ def operator(self) -> "scout_run_api_InequalityOperator":
79536
+ return self._operator
79537
+
79538
+ @builtins.property
79539
+ def threshold(self) -> "scout_run_api_RelativeOrAbsoluteTimestamp":
79540
+ return self._threshold
79541
+
79542
+
79543
+ scout_run_api_TimestampCondition.__name__ = "TimestampCondition"
79544
+ scout_run_api_TimestampCondition.__qualname__ = "TimestampCondition"
79545
+ scout_run_api_TimestampCondition.__module__ = "nominal_api.scout_run_api"
79546
+
79547
+
79375
79548
  class scout_run_api_UnarchiveRunsRequest(ConjureBeanType):
79376
79549
 
79377
79550
  @builtins.classmethod
@@ -20,9 +20,12 @@ from .._impl import (
20
20
  scout_run_api_GetRunByIdRequest as GetRunByIdRequest,
21
21
  scout_run_api_GetRunsByAssetRequest as GetRunsByAssetRequest,
22
22
  scout_run_api_GetRunsByAssetResponse as GetRunsByAssetResponse,
23
+ scout_run_api_InequalityOperator as InequalityOperator,
23
24
  scout_run_api_Link as Link,
24
25
  scout_run_api_LogSetRid as LogSetRid,
25
26
  scout_run_api_RefNameAndType as RefNameAndType,
27
+ scout_run_api_RelativeOrAbsoluteTimestamp as RelativeOrAbsoluteTimestamp,
28
+ scout_run_api_RelativeOrAbsoluteTimestampVisitor as RelativeOrAbsoluteTimestampVisitor,
26
29
  scout_run_api_Run as Run,
27
30
  scout_run_api_RunDataReviewEvaluationStatus as RunDataReviewEvaluationStatus,
28
31
  scout_run_api_RunDataReviewSummary as RunDataReviewSummary,
@@ -44,6 +47,7 @@ from .._impl import (
44
47
  scout_run_api_SortOptions as SortOptions,
45
48
  scout_run_api_SortProperty as SortProperty,
46
49
  scout_run_api_TimeRangeFilter as TimeRangeFilter,
50
+ scout_run_api_TimestampCondition as TimestampCondition,
47
51
  scout_run_api_UnarchiveRunsRequest as UnarchiveRunsRequest,
48
52
  scout_run_api_Unit as Unit,
49
53
  scout_run_api_UpdateAttachmentsRequest as UpdateAttachmentsRequest,
@@ -73,9 +77,12 @@ __all__ = [
73
77
  'GetRunByIdRequest',
74
78
  'GetRunsByAssetRequest',
75
79
  'GetRunsByAssetResponse',
80
+ 'InequalityOperator',
76
81
  'Link',
77
82
  'LogSetRid',
78
83
  'RefNameAndType',
84
+ 'RelativeOrAbsoluteTimestamp',
85
+ 'RelativeOrAbsoluteTimestampVisitor',
79
86
  'Run',
80
87
  'RunDataReviewEvaluationStatus',
81
88
  'RunDataReviewSummary',
@@ -97,6 +104,7 @@ __all__ = [
97
104
  'SortOptions',
98
105
  'SortProperty',
99
106
  'TimeRangeFilter',
107
+ 'TimestampCondition',
100
108
  'UnarchiveRunsRequest',
101
109
  'Unit',
102
110
  'UpdateAttachmentsRequest',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.874.0
3
+ Version: 0.876.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=NIwxj1Uy85xU80tRzAOl-OdUgB6NVv6Fe8go_lgWA80,2088
2
- nominal_api/_impl.py,sha256=QzKpBqgjPDGW59vsGjXoh_n7HFPr-2pgDWR9EokUkTQ,3742639
1
+ nominal_api/__init__.py,sha256=4uR26MAA4rYn2MXQ23IkgQ88OBVUH6bBpU0XHFr0400,2088
2
+ nominal_api/_impl.py,sha256=xh0CDo0F1f4ijC9E6qCQC2DOz39lWkqgRCfDbi13YFE,3749421
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=ZiGjcYwIBCrZR5pPqyqX2ggRJmVcSlOCazMtF2xCZzw,2171
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -52,7 +52,7 @@ nominal_api/scout_metadata/__init__.py,sha256=tfnzE6dlVBki1ZSy276mkDQQeKehmJLaG9
52
52
  nominal_api/scout_notebook_api/__init__.py,sha256=b-4ONsrgT2NziNHq8em09YxbZcQcKLWmPYkpxBFHPFA,1820
53
53
  nominal_api/scout_plotting/__init__.py,sha256=RJK9HlPmNW_dxSz7CprwjfNKke86x11rQ7BF5pwrBv4,127
54
54
  nominal_api/scout_rids_api/__init__.py,sha256=tObQlt4-bYGcBEgPDHXaadr159GlkYSDdZME1072m94,2101
55
- nominal_api/scout_run_api/__init__.py,sha256=3PANPkCkx_CIEdI22kUOQa_fe7GK8OCfMJTw-FaHGsM,4229
55
+ nominal_api/scout_run_api/__init__.py,sha256=XF5rfx-cE0O3mJQxhpNsIRJSLUJbqdUo6JBnvCP0Rrk,4648
56
56
  nominal_api/scout_savedviews/__init__.py,sha256=yky0iF6IK8U5xnDjfzvUuXOb-Tl5RF6dic6abhuX-V8,138
57
57
  nominal_api/scout_savedviews_api/__init__.py,sha256=qGCgh8Pv9N-uekuDwDCHlBu9DCflIT6MiDhtFSmtKQ4,3148
58
58
  nominal_api/scout_template_api/__init__.py,sha256=Yu7FHTypJv09dBKqnWS_dDeXdwI1hgGGZNDbMOHZKr8,1550
@@ -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.874.0.dist-info/METADATA,sha256=obuVKMBhwn-yjlWHn2KOXL9bluQqx7BtEbSDCv2CpXs,199
82
- nominal_api-0.874.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- nominal_api-0.874.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
- nominal_api-0.874.0.dist-info/RECORD,,
81
+ nominal_api-0.876.0.dist-info/METADATA,sha256=BLsQdziTJNyIlRM6yYyBDRFJFJh_t2a2O8UQrTC4uQ4,199
82
+ nominal_api-0.876.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ nominal_api-0.876.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
+ nominal_api-0.876.0.dist-info/RECORD,,