nominal-api 0.573.2__py3-none-any.whl → 0.574.1__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
@@ -70,5 +70,5 @@ __all__ = [
70
70
 
71
71
  __conjure_generator_version__ = "4.9.0"
72
72
 
73
- __version__ = "0.573.2"
73
+ __version__ = "0.574.1"
74
74
 
nominal_api/_impl.py CHANGED
@@ -3539,58 +3539,12 @@ comments_api_ResourceType.__qualname__ = "ResourceType"
3539
3539
  comments_api_ResourceType.__module__ = "nominal_api.comments_api"
3540
3540
 
3541
3541
 
3542
- class connect_download_ConnectDownloadService(Service):
3543
- """
3544
- Service to download the Connect app for a given platform.
3545
- A valid authentication token is required. May not be enabled on all stacks.
3546
- """
3547
-
3548
- def download_latest(self, auth_header: str, platform: "connect_download_Platform") -> Any:
3549
- """
3550
- Download the latest version of the Connect app for the given platform.
3551
- """
3552
-
3553
- _headers: Dict[str, Any] = {
3554
- 'Accept': 'application/octet-stream',
3555
- 'Authorization': auth_header,
3556
- }
3557
-
3558
- _params: Dict[str, Any] = {
3559
- }
3560
-
3561
- _path_params: Dict[str, Any] = {
3562
- 'platform': platform,
3563
- }
3564
-
3565
- _json: Any = None
3566
-
3567
- _path = '/connect/download/{platform}'
3568
- _path = _path.format(**_path_params)
3569
-
3570
- _response: Response = self._request(
3571
- 'GET',
3572
- self._uri + _path,
3573
- params=_params,
3574
- headers=_headers,
3575
- stream=True,
3576
- json=_json)
3577
-
3578
- _raw = _response.raw
3579
- _raw.decode_content = True
3580
- return _raw
3581
-
3582
-
3583
- connect_download_ConnectDownloadService.__name__ = "ConnectDownloadService"
3584
- connect_download_ConnectDownloadService.__qualname__ = "ConnectDownloadService"
3585
- connect_download_ConnectDownloadService.__module__ = "nominal_api.connect_download"
3586
-
3587
-
3588
3542
  class connect_download_Platform(ConjureEnumType):
3589
3543
 
3590
3544
  WINDOWS = 'WINDOWS'
3591
3545
  '''WINDOWS'''
3592
- LINUX = 'LINUX'
3593
- '''LINUX'''
3546
+ UBUNTU = 'UBUNTU'
3547
+ '''UBUNTU'''
3594
3548
  MACOS = 'MACOS'
3595
3549
  '''MACOS'''
3596
3550
  UNKNOWN = 'UNKNOWN'
@@ -56863,6 +56817,8 @@ class scout_internal_search_api_Operator(ConjureEnumType):
56863
56817
  '''GEQ'''
56864
56818
  GT = 'GT'
56865
56819
  '''GT'''
56820
+ EQ = 'EQ'
56821
+ '''EQ'''
56866
56822
  UNKNOWN = 'UNKNOWN'
56867
56823
  '''UNKNOWN'''
56868
56824
 
@@ -60601,6 +60557,8 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60601
60557
  _data_source_series_tag: Optional["scout_run_api_DataSourceSeriesTag"] = None
60602
60558
  _data_source_ref_name: Optional[str] = None
60603
60559
  _data_source: Optional["scout_run_api_DataSource"] = None
60560
+ _run_number: Optional[int] = None
60561
+ _run_prefix: Optional[str] = None
60604
60562
  _check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None
60605
60563
  _and_: Optional[List["scout_run_api_SearchQuery"]] = None
60606
60564
  _or_: Optional[List["scout_run_api_SearchQuery"]] = None
@@ -60618,6 +60576,8 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60618
60576
  'data_source_series_tag': ConjureFieldDefinition('dataSourceSeriesTag', scout_run_api_DataSourceSeriesTag),
60619
60577
  'data_source_ref_name': ConjureFieldDefinition('dataSourceRefName', scout_api_DataSourceRefName),
60620
60578
  'data_source': ConjureFieldDefinition('dataSource', scout_run_api_DataSource),
60579
+ 'run_number': ConjureFieldDefinition('runNumber', int),
60580
+ 'run_prefix': ConjureFieldDefinition('runPrefix', str),
60621
60581
  'check_alert_states_filter': ConjureFieldDefinition('checkAlertStatesFilter', scout_run_api_CheckAlertStatesFilter),
60622
60582
  'and_': ConjureFieldDefinition('and', List[scout_run_api_SearchQuery]),
60623
60583
  'or_': ConjureFieldDefinition('or', List[scout_run_api_SearchQuery])
@@ -60635,13 +60595,15 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60635
60595
  data_source_series_tag: Optional["scout_run_api_DataSourceSeriesTag"] = None,
60636
60596
  data_source_ref_name: Optional[str] = None,
60637
60597
  data_source: Optional["scout_run_api_DataSource"] = None,
60598
+ run_number: Optional[int] = None,
60599
+ run_prefix: Optional[str] = None,
60638
60600
  check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None,
60639
60601
  and_: Optional[List["scout_run_api_SearchQuery"]] = None,
60640
60602
  or_: Optional[List["scout_run_api_SearchQuery"]] = None,
60641
60603
  type_of_union: Optional[str] = None
60642
60604
  ) -> None:
60643
60605
  if type_of_union is None:
60644
- if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (exact_match is not None) + (search_text is not None) + (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) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) != 1:
60606
+ if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (exact_match is not None) + (search_text is not None) + (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) != 1:
60645
60607
  raise ValueError('a union must contain a single member')
60646
60608
 
60647
60609
  if start_time_inclusive is not None:
@@ -60674,6 +60636,12 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60674
60636
  if data_source is not None:
60675
60637
  self._data_source = data_source
60676
60638
  self._type = 'dataSource'
60639
+ if run_number is not None:
60640
+ self._run_number = run_number
60641
+ self._type = 'runNumber'
60642
+ if run_prefix is not None:
60643
+ self._run_prefix = run_prefix
60644
+ self._type = 'runPrefix'
60677
60645
  if check_alert_states_filter is not None:
60678
60646
  self._check_alert_states_filter = check_alert_states_filter
60679
60647
  self._type = 'checkAlertStatesFilter'
@@ -60734,6 +60702,16 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60734
60702
  raise ValueError('a union value must not be None')
60735
60703
  self._data_source = data_source
60736
60704
  self._type = 'dataSource'
60705
+ elif type_of_union == 'runNumber':
60706
+ if run_number is None:
60707
+ raise ValueError('a union value must not be None')
60708
+ self._run_number = run_number
60709
+ self._type = 'runNumber'
60710
+ elif type_of_union == 'runPrefix':
60711
+ if run_prefix is None:
60712
+ raise ValueError('a union value must not be None')
60713
+ self._run_prefix = run_prefix
60714
+ self._type = 'runPrefix'
60737
60715
  elif type_of_union == 'checkAlertStatesFilter':
60738
60716
  if check_alert_states_filter is None:
60739
60717
  raise ValueError('a union value must not be None')
@@ -60761,7 +60739,7 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60761
60739
  @builtins.property
60762
60740
  def exact_match(self) -> Optional[str]:
60763
60741
  """
60764
- Performs case insensitive exact match search on the title.
60742
+ Performs case insensitive exact substring match search on the title.
60765
60743
  """
60766
60744
  return self._exact_match
60767
60745
 
@@ -60793,6 +60771,14 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60793
60771
  def data_source(self) -> Optional["scout_run_api_DataSource"]:
60794
60772
  return self._data_source
60795
60773
 
60774
+ @builtins.property
60775
+ def run_number(self) -> Optional[int]:
60776
+ return self._run_number
60777
+
60778
+ @builtins.property
60779
+ def run_prefix(self) -> Optional[str]:
60780
+ return self._run_prefix
60781
+
60796
60782
  @builtins.property
60797
60783
  def check_alert_states_filter(self) -> Optional["scout_run_api_CheckAlertStatesFilter"]:
60798
60784
  """
@@ -60831,6 +60817,10 @@ class scout_run_api_SearchQuery(ConjureUnionType):
60831
60817
  return visitor._data_source_ref_name(self.data_source_ref_name)
60832
60818
  if self._type == 'dataSource' and self.data_source is not None:
60833
60819
  return visitor._data_source(self.data_source)
60820
+ if self._type == 'runNumber' and self.run_number is not None:
60821
+ return visitor._run_number(self.run_number)
60822
+ if self._type == 'runPrefix' and self.run_prefix is not None:
60823
+ return visitor._run_prefix(self.run_prefix)
60834
60824
  if self._type == 'checkAlertStatesFilter' and self.check_alert_states_filter is not None:
60835
60825
  return visitor._check_alert_states_filter(self.check_alert_states_filter)
60836
60826
  if self._type == 'and' and self.and_ is not None:
@@ -60886,6 +60876,14 @@ class scout_run_api_SearchQueryVisitor:
60886
60876
  def _data_source(self, data_source: "scout_run_api_DataSource") -> Any:
60887
60877
  pass
60888
60878
 
60879
+ @abstractmethod
60880
+ def _run_number(self, run_number: int) -> Any:
60881
+ pass
60882
+
60883
+ @abstractmethod
60884
+ def _run_prefix(self, run_prefix: str) -> Any:
60885
+ pass
60886
+
60889
60887
  @abstractmethod
60890
60888
  def _check_alert_states_filter(self, check_alert_states_filter: "scout_run_api_CheckAlertStatesFilter") -> Any:
60891
60889
  pass
@@ -64768,13 +64766,13 @@ timestamps will be empty.
64768
64766
  return {
64769
64767
  'min_absolute_timestamp': ConjureFieldDefinition('minAbsoluteTimestamp', api_Timestamp),
64770
64768
  'max_absolute_timestamp': ConjureFieldDefinition('maxAbsoluteTimestamp', api_Timestamp),
64771
- 'min_media_timestamp': ConjureFieldDefinition('minMediaTimestamp', OptionalTypeWrapper[float]),
64772
- 'max_media_timestamp': ConjureFieldDefinition('maxMediaTimestamp', OptionalTypeWrapper[float])
64769
+ 'min_media_timestamp': ConjureFieldDefinition('minMediaTimestamp', float),
64770
+ 'max_media_timestamp': ConjureFieldDefinition('maxMediaTimestamp', float)
64773
64771
  }
64774
64772
 
64775
64773
  __slots__: List[str] = ['_min_absolute_timestamp', '_max_absolute_timestamp', '_min_media_timestamp', '_max_media_timestamp']
64776
64774
 
64777
- def __init__(self, max_absolute_timestamp: "api_Timestamp", min_absolute_timestamp: "api_Timestamp", max_media_timestamp: Optional[float] = None, min_media_timestamp: Optional[float] = None) -> None:
64775
+ def __init__(self, max_absolute_timestamp: "api_Timestamp", max_media_timestamp: float, min_absolute_timestamp: "api_Timestamp", min_media_timestamp: float) -> None:
64778
64776
  self._min_absolute_timestamp = min_absolute_timestamp
64779
64777
  self._max_absolute_timestamp = max_absolute_timestamp
64780
64778
  self._min_media_timestamp = min_media_timestamp
@@ -64789,11 +64787,11 @@ timestamps will be empty.
64789
64787
  return self._max_absolute_timestamp
64790
64788
 
64791
64789
  @builtins.property
64792
- def min_media_timestamp(self) -> Optional[float]:
64790
+ def min_media_timestamp(self) -> float:
64793
64791
  return self._min_media_timestamp
64794
64792
 
64795
64793
  @builtins.property
64796
- def max_media_timestamp(self) -> Optional[float]:
64794
+ def max_media_timestamp(self) -> float:
64797
64795
  return self._max_media_timestamp
64798
64796
 
64799
64797
 
@@ -1,6 +1,5 @@
1
1
  # coding=utf-8
2
2
  from .._impl import (
3
- connect_download_ConnectDownloadService as ConnectDownloadService,
4
3
  connect_download_Platform as Platform,
5
4
  )
6
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.573.2
3
+ Version: 0.574.1
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<3,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=f3-Fx2si6GPli7cYBZ_rtw7JrTuMIC01MILm8w-wHJ4,1823
2
- nominal_api/_impl.py,sha256=Hgz_NFxRega0YQqdSdgTjnoV6pJkV4tC7z0T0_peY6k,2811316
1
+ nominal_api/__init__.py,sha256=kE0S57w5piolL_YTEbmvkZrAxcxXFhm_Vp6Y-_UkUVc,1823
2
+ nominal_api/_impl.py,sha256=Ye9L0Lthu-V_-mT978kP9gD9dfdwoWDSCD5LWbA-6-Y,2811604
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_rids/__init__.py,sha256=Bu-pKUh3aS9_f5m-DZf6W_BUlVo9qYE7EDvaT-rvWQ0,423
@@ -7,7 +7,7 @@ nominal_api/attachments_api/__init__.py,sha256=eQBE8xVTFDaTItCZv-WJSZqSStpgdai19
7
7
  nominal_api/authentication_api/__init__.py,sha256=HBQrldagoqcvYES_kjB1Eh8oZTZ8SJdX85UZySJB9z0,986
8
8
  nominal_api/authorization/__init__.py,sha256=dCAUHfh4BMgGp4RW0-2b_Xrtfz5BDcljwRVaShKhFI4,972
9
9
  nominal_api/comments_api/__init__.py,sha256=bt24EdmTY513nKMrWMCsfYV0XmX7VKQgOFH4I4tKWy4,860
10
- nominal_api/connect_download/__init__.py,sha256=PbNf7JD5wyz5R32hP03tIrALu6OxWFO0-XH7MT90TBE,154
10
+ nominal_api/connect_download/__init__.py,sha256=kYpjIjuFHA3uix70bJ5gV9-7BmDcJZAcm_e3MeMVSSQ,83
11
11
  nominal_api/datasource/__init__.py,sha256=C2lvxiWYnZRjaMKL2sY9_bfgZezBpK39A3VtgSASgRI,134
12
12
  nominal_api/datasource_api/__init__.py,sha256=5TddGrr5x6bZdVun00Zb_BwwcQtP35Yvn1DSxZ6QZmI,2074
13
13
  nominal_api/datasource_logset/__init__.py,sha256=H3fNxqyYC490MwvdWbt5BwhgWQUev7uieaLz5hUbZDc,94
@@ -67,7 +67,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=7NlQhIzOKOcjwMNUI89f
67
67
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
68
68
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
69
69
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
70
- nominal_api-0.573.2.dist-info/METADATA,sha256=lhqFpH1f4YCGb7WwGeI3PO36OH4AhC9bL6vXIyWxbls,199
71
- nominal_api-0.573.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
72
- nominal_api-0.573.2.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
73
- nominal_api-0.573.2.dist-info/RECORD,,
70
+ nominal_api-0.574.1.dist-info/METADATA,sha256=2xtnTEJwAV5suBY-RqCJgn1v2DUqD8VzmqfphcIaZwI,199
71
+ nominal_api-0.574.1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
72
+ nominal_api-0.574.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
73
+ nominal_api-0.574.1.dist-info/RECORD,,