nominal-api 0.542.0__py3-none-any.whl → 0.546.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
@@ -68,5 +68,5 @@ __all__ = [
68
68
 
69
69
  __conjure_generator_version__ = "4.9.0"
70
70
 
71
- __version__ = "0.542.0"
71
+ __version__ = "0.546.0"
72
72
 
nominal_api/_impl.py CHANGED
@@ -3578,6 +3578,52 @@ datasource_api_BatchGetChannelPrefixTreeResponse.__qualname__ = "BatchGetChannel
3578
3578
  datasource_api_BatchGetChannelPrefixTreeResponse.__module__ = "nominal_api.datasource_api"
3579
3579
 
3580
3580
 
3581
+ class datasource_api_BatchGetDataScopeBoundsRequest(ConjureBeanType):
3582
+
3583
+ @builtins.classmethod
3584
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
3585
+ return {
3586
+ 'requests': ConjureFieldDefinition('requests', List[datasource_api_GetDataScopeBoundsRequest])
3587
+ }
3588
+
3589
+ __slots__: List[str] = ['_requests']
3590
+
3591
+ def __init__(self, requests: List["datasource_api_GetDataScopeBoundsRequest"]) -> None:
3592
+ self._requests = requests
3593
+
3594
+ @builtins.property
3595
+ def requests(self) -> List["datasource_api_GetDataScopeBoundsRequest"]:
3596
+ return self._requests
3597
+
3598
+
3599
+ datasource_api_BatchGetDataScopeBoundsRequest.__name__ = "BatchGetDataScopeBoundsRequest"
3600
+ datasource_api_BatchGetDataScopeBoundsRequest.__qualname__ = "BatchGetDataScopeBoundsRequest"
3601
+ datasource_api_BatchGetDataScopeBoundsRequest.__module__ = "nominal_api.datasource_api"
3602
+
3603
+
3604
+ class datasource_api_BatchGetDataScopeBoundsResponse(ConjureBeanType):
3605
+
3606
+ @builtins.classmethod
3607
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
3608
+ return {
3609
+ 'responses': ConjureFieldDefinition('responses', List[datasource_api_GetDataScopeBoundsResponse])
3610
+ }
3611
+
3612
+ __slots__: List[str] = ['_responses']
3613
+
3614
+ def __init__(self, responses: List["datasource_api_GetDataScopeBoundsResponse"]) -> None:
3615
+ self._responses = responses
3616
+
3617
+ @builtins.property
3618
+ def responses(self) -> List["datasource_api_GetDataScopeBoundsResponse"]:
3619
+ return self._responses
3620
+
3621
+
3622
+ datasource_api_BatchGetDataScopeBoundsResponse.__name__ = "BatchGetDataScopeBoundsResponse"
3623
+ datasource_api_BatchGetDataScopeBoundsResponse.__qualname__ = "BatchGetDataScopeBoundsResponse"
3624
+ datasource_api_BatchGetDataScopeBoundsResponse.__module__ = "nominal_api.datasource_api"
3625
+
3626
+
3581
3627
  class datasource_api_ChannelMetadata(ConjureBeanType):
3582
3628
 
3583
3629
  @builtins.classmethod
@@ -3978,6 +4024,62 @@ datasource_api_GetAvailableTagsForChannelResponse.__qualname__ = "GetAvailableTa
3978
4024
  datasource_api_GetAvailableTagsForChannelResponse.__module__ = "nominal_api.datasource_api"
3979
4025
 
3980
4026
 
4027
+ class datasource_api_GetDataScopeBoundsRequest(ConjureBeanType):
4028
+
4029
+ @builtins.classmethod
4030
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
4031
+ return {
4032
+ 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_DataSourceRid),
4033
+ 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, api_TagValue])
4034
+ }
4035
+
4036
+ __slots__: List[str] = ['_data_source_rid', '_tags']
4037
+
4038
+ def __init__(self, data_source_rid: str, tags: Dict[str, str]) -> None:
4039
+ self._data_source_rid = data_source_rid
4040
+ self._tags = tags
4041
+
4042
+ @builtins.property
4043
+ def data_source_rid(self) -> str:
4044
+ return self._data_source_rid
4045
+
4046
+ @builtins.property
4047
+ def tags(self) -> Dict[str, str]:
4048
+ return self._tags
4049
+
4050
+
4051
+ datasource_api_GetDataScopeBoundsRequest.__name__ = "GetDataScopeBoundsRequest"
4052
+ datasource_api_GetDataScopeBoundsRequest.__qualname__ = "GetDataScopeBoundsRequest"
4053
+ datasource_api_GetDataScopeBoundsRequest.__module__ = "nominal_api.datasource_api"
4054
+
4055
+
4056
+ class datasource_api_GetDataScopeBoundsResponse(ConjureBeanType):
4057
+
4058
+ @builtins.classmethod
4059
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
4060
+ return {
4061
+ 'end_time': ConjureFieldDefinition('endTime', OptionalTypeWrapper[api_Timestamp])
4062
+ }
4063
+
4064
+ __slots__: List[str] = ['_end_time']
4065
+
4066
+ def __init__(self, end_time: Optional["api_Timestamp"] = None) -> None:
4067
+ self._end_time = end_time
4068
+
4069
+ @builtins.property
4070
+ def end_time(self) -> Optional["api_Timestamp"]:
4071
+ """
4072
+ If missing, the end bound is not known definitively. This can happen if the
4073
+ data scope corresponds to an external database or its data was not updated in the last month.
4074
+ """
4075
+ return self._end_time
4076
+
4077
+
4078
+ datasource_api_GetDataScopeBoundsResponse.__name__ = "GetDataScopeBoundsResponse"
4079
+ datasource_api_GetDataScopeBoundsResponse.__qualname__ = "GetDataScopeBoundsResponse"
4080
+ datasource_api_GetDataScopeBoundsResponse.__module__ = "nominal_api.datasource_api"
4081
+
4082
+
3981
4083
  class datasource_api_IndexChannelPrefixTreeRequest(ConjureBeanType):
3982
4084
 
3983
4085
  @builtins.classmethod
@@ -8124,16 +8226,14 @@ class ingest_api_JournalJsonOpts(ConjureBeanType):
8124
8226
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
8125
8227
  return {
8126
8228
  'source': ConjureFieldDefinition('source', ingest_api_IngestSource),
8127
- 'target': ConjureFieldDefinition('target', ingest_api_DatasetIngestTarget),
8128
- 'timestamp_metadata': ConjureFieldDefinition('timestampMetadata', ingest_api_JournalTimestampMetadata)
8229
+ 'target': ConjureFieldDefinition('target', ingest_api_DatasetIngestTarget)
8129
8230
  }
8130
8231
 
8131
- __slots__: List[str] = ['_source', '_target', '_timestamp_metadata']
8232
+ __slots__: List[str] = ['_source', '_target']
8132
8233
 
8133
- def __init__(self, source: "ingest_api_IngestSource", target: "ingest_api_DatasetIngestTarget", timestamp_metadata: "ingest_api_JournalTimestampMetadata") -> None:
8234
+ def __init__(self, source: "ingest_api_IngestSource", target: "ingest_api_DatasetIngestTarget") -> None:
8134
8235
  self._source = source
8135
8236
  self._target = target
8136
- self._timestamp_metadata = timestamp_metadata
8137
8237
 
8138
8238
  @builtins.property
8139
8239
  def source(self) -> "ingest_api_IngestSource":
@@ -8143,10 +8243,6 @@ class ingest_api_JournalJsonOpts(ConjureBeanType):
8143
8243
  def target(self) -> "ingest_api_DatasetIngestTarget":
8144
8244
  return self._target
8145
8245
 
8146
- @builtins.property
8147
- def timestamp_metadata(self) -> "ingest_api_JournalTimestampMetadata":
8148
- return self._timestamp_metadata
8149
-
8150
8246
 
8151
8247
  ingest_api_JournalJsonOpts.__name__ = "JournalJsonOpts"
8152
8248
  ingest_api_JournalJsonOpts.__qualname__ = "JournalJsonOpts"
@@ -50453,6 +50549,39 @@ initial set of filters.
50453
50549
  _decoder = ConjureDecoder()
50454
50550
  return _decoder.decode(_response.json(), datasource_api_GetAvailableTagsForChannelResponse, self._return_none_for_unknown_union_types)
50455
50551
 
50552
+ def get_data_scope_bounds(self, auth_header: str, request: "datasource_api_BatchGetDataScopeBoundsRequest") -> "datasource_api_BatchGetDataScopeBoundsResponse":
50553
+ """
50554
+ Returns the maximum data timestamps for the specified data scopes. Responses are returned
50555
+ in the same order as requests.
50556
+ """
50557
+
50558
+ _headers: Dict[str, Any] = {
50559
+ 'Accept': 'application/json',
50560
+ 'Content-Type': 'application/json',
50561
+ 'Authorization': auth_header,
50562
+ }
50563
+
50564
+ _params: Dict[str, Any] = {
50565
+ }
50566
+
50567
+ _path_params: Dict[str, Any] = {
50568
+ }
50569
+
50570
+ _json: Any = ConjureEncoder().default(request)
50571
+
50572
+ _path = '/data-source/v1/data-sources/get-data-scope-bounds'
50573
+ _path = _path.format(**_path_params)
50574
+
50575
+ _response: Response = self._request(
50576
+ 'POST',
50577
+ self._uri + _path,
50578
+ params=_params,
50579
+ headers=_headers,
50580
+ json=_json)
50581
+
50582
+ _decoder = ConjureDecoder()
50583
+ return _decoder.decode(_response.json(), datasource_api_BatchGetDataScopeBoundsResponse, self._return_none_for_unknown_union_types)
50584
+
50456
50585
 
50457
50586
  scout_datasource_DataSourceService.__name__ = "DataSourceService"
50458
50587
  scout_datasource_DataSourceService.__qualname__ = "DataSourceService"
@@ -64305,6 +64434,10 @@ message Series {
64305
64434
  Points points = 3; // Contains either double or string points
64306
64435
  }
64307
64436
 
64437
+ message Channel {
64438
+ string name = 1;
64439
+ }
64440
+
64308
64441
  message Points {
64309
64442
  oneof points_type {
64310
64443
  DoublePoints double_points = 1;
@@ -2,6 +2,8 @@
2
2
  from .._impl import (
3
3
  datasource_api_BatchGetChannelPrefixTreeRequest as BatchGetChannelPrefixTreeRequest,
4
4
  datasource_api_BatchGetChannelPrefixTreeResponse as BatchGetChannelPrefixTreeResponse,
5
+ datasource_api_BatchGetDataScopeBoundsRequest as BatchGetDataScopeBoundsRequest,
6
+ datasource_api_BatchGetDataScopeBoundsResponse as BatchGetDataScopeBoundsResponse,
5
7
  datasource_api_ChannelMetadata as ChannelMetadata,
6
8
  datasource_api_ChannelOrPrefix as ChannelOrPrefix,
7
9
  datasource_api_ChannelOrPrefixVisitor as ChannelOrPrefixVisitor,
@@ -13,6 +15,8 @@ from .._impl import (
13
15
  datasource_api_DataSourcePrefixNode as DataSourcePrefixNode,
14
16
  datasource_api_GetAvailableTagsForChannelRequest as GetAvailableTagsForChannelRequest,
15
17
  datasource_api_GetAvailableTagsForChannelResponse as GetAvailableTagsForChannelResponse,
18
+ datasource_api_GetDataScopeBoundsRequest as GetDataScopeBoundsRequest,
19
+ datasource_api_GetDataScopeBoundsResponse as GetDataScopeBoundsResponse,
16
20
  datasource_api_IndexChannelPrefixTreeRequest as IndexChannelPrefixTreeRequest,
17
21
  datasource_api_SearchChannelsRequest as SearchChannelsRequest,
18
22
  datasource_api_SearchChannelsResponse as SearchChannelsResponse,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.542.0
3
+ Version: 0.546.0
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=tgPIYff0te_heVsuvP1wlyIU96_sJ-XxMyLy7OFt40k,1762
2
- nominal_api/_impl.py,sha256=xbSMhtJPLIpCAdW9XHho2FiywiDPeUNLX-q2Ux8Pi34,2667562
1
+ nominal_api/__init__.py,sha256=kyxrxfOwW18Kh9JW18iinobkEBK2z7-p1ywaOAgwIDc,1762
2
+ nominal_api/_impl.py,sha256=yhNgnCZj3aQAe0pOLukKMccqszqMfnpZRTcoQo7up-Q,2672080
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=CaUmWhW0zcP8jVWFQEgj-lpoBi-Unm0wBd2s9dPeWmo,656
5
5
  nominal_api/api_rids/__init__.py,sha256=p7dKiMV692oGtYStr5FZJEJNg3YbF7scJK1WFMpBiW0,298
@@ -9,7 +9,7 @@ nominal_api/authentication_api/__init__.py,sha256=HBQrldagoqcvYES_kjB1Eh8oZTZ8SJ
9
9
  nominal_api/authorization/__init__.py,sha256=dCAUHfh4BMgGp4RW0-2b_Xrtfz5BDcljwRVaShKhFI4,972
10
10
  nominal_api/comments_api/__init__.py,sha256=bt24EdmTY513nKMrWMCsfYV0XmX7VKQgOFH4I4tKWy4,860
11
11
  nominal_api/datasource/__init__.py,sha256=kmImuULeFMu34yFli4_OsZSsYvVROfQQVYCMkcaaV1o,325
12
- nominal_api/datasource_api/__init__.py,sha256=aEC6jdCM8G2fLwxYfOZiQ_mjCq_lwDHqBfxISp5H1tI,1750
12
+ nominal_api/datasource_api/__init__.py,sha256=5TddGrr5x6bZdVun00Zb_BwwcQtP35Yvn1DSxZ6QZmI,2074
13
13
  nominal_api/datasource_logset/__init__.py,sha256=H3fNxqyYC490MwvdWbt5BwhgWQUev7uieaLz5hUbZDc,94
14
14
  nominal_api/datasource_logset_api/__init__.py,sha256=oaCU4hTiUXPnJbivlCUoPPYRw7prpZtxbv-hgUaiOWQ,1048
15
15
  nominal_api/datasource_pagination_api/__init__.py,sha256=3GO8TAUavOe6dUEitOhje74aSZHjTKVI5N1MNuct1lI,212
@@ -65,7 +65,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=wr83ByQTVVPOGvbB_KWL
65
65
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
66
66
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=YLixotb-W-adYR6t_RBsJDwoHttppkOBesoaXERwhVs,1240
67
67
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
68
- nominal_api-0.542.0.dist-info/METADATA,sha256=T16AvGpRUYjiTMmQvKcblXDnsktb6Vbhlv7s7WoVTTE,199
69
- nominal_api-0.542.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
70
- nominal_api-0.542.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
71
- nominal_api-0.542.0.dist-info/RECORD,,
68
+ nominal_api-0.546.0.dist-info/METADATA,sha256=RSnV-kUIVhHcYlXBiyo85_CDxwR7G93B3ec7pjzBL7A,199
69
+ nominal_api-0.546.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
70
+ nominal_api-0.546.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
71
+ nominal_api-0.546.0.dist-info/RECORD,,