nominal-api 0.591.0__py3-none-any.whl → 0.593.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
@@ -75,5 +75,5 @@ __all__ = [
75
75
 
76
76
  __conjure_generator_version__ = "4.9.0"
77
77
 
78
- __version__ = "0.591.0"
78
+ __version__ = "0.593.0"
79
79
 
nominal_api/_impl.py CHANGED
@@ -68174,586 +68174,29 @@ storage_deletion_api_TimeRange.__qualname__ = "TimeRange"
68174
68174
  storage_deletion_api_TimeRange.__module__ = "nominal_api.storage_deletion_api"
68175
68175
 
68176
68176
 
68177
- class storage_series_api_BatchCreateOrGetResponse(ConjureBeanType):
68178
-
68179
- @builtins.classmethod
68180
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68181
- return {
68182
- 'created_series': ConjureFieldDefinition('createdSeries', List[storage_series_api_NominalSeries]),
68183
- 'existing_series': ConjureFieldDefinition('existingSeries', List[storage_series_api_NominalSeries])
68184
- }
68185
-
68186
- __slots__: List[str] = ['_created_series', '_existing_series']
68187
-
68188
- def __init__(self, created_series: List["storage_series_api_NominalSeries"], existing_series: List["storage_series_api_NominalSeries"]) -> None:
68189
- self._created_series = created_series
68190
- self._existing_series = existing_series
68191
-
68192
- @builtins.property
68193
- def created_series(self) -> List["storage_series_api_NominalSeries"]:
68194
- return self._created_series
68195
-
68196
- @builtins.property
68197
- def existing_series(self) -> List["storage_series_api_NominalSeries"]:
68198
- return self._existing_series
68199
-
68200
-
68201
- storage_series_api_BatchCreateOrGetResponse.__name__ = "BatchCreateOrGetResponse"
68202
- storage_series_api_BatchCreateOrGetResponse.__qualname__ = "BatchCreateOrGetResponse"
68203
- storage_series_api_BatchCreateOrGetResponse.__module__ = "nominal_api.storage_series_api"
68204
-
68205
-
68206
- class storage_series_api_BatchUpdateLastTouchedAtRequest(ConjureBeanType):
68207
-
68208
- @builtins.classmethod
68209
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68210
- return {
68211
- 'requests': ConjureFieldDefinition('requests', List[storage_series_api_UpdateLastTouchedAtRequest]),
68212
- 'time': ConjureFieldDefinition('time', api_Timestamp)
68213
- }
68214
-
68215
- __slots__: List[str] = ['_requests', '_time']
68216
-
68217
- def __init__(self, requests: List["storage_series_api_UpdateLastTouchedAtRequest"], time: "api_Timestamp") -> None:
68218
- self._requests = requests
68219
- self._time = time
68220
-
68221
- @builtins.property
68222
- def requests(self) -> List["storage_series_api_UpdateLastTouchedAtRequest"]:
68223
- return self._requests
68224
-
68225
- @builtins.property
68226
- def time(self) -> "api_Timestamp":
68227
- return self._time
68228
-
68229
-
68230
- storage_series_api_BatchUpdateLastTouchedAtRequest.__name__ = "BatchUpdateLastTouchedAtRequest"
68231
- storage_series_api_BatchUpdateLastTouchedAtRequest.__qualname__ = "BatchUpdateLastTouchedAtRequest"
68232
- storage_series_api_BatchUpdateLastTouchedAtRequest.__module__ = "nominal_api.storage_series_api"
68233
-
68234
-
68235
- class storage_series_api_CreateSeriesRequest(ConjureBeanType):
68236
-
68237
- @builtins.classmethod
68238
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68239
- return {
68240
- 'type': ConjureFieldDefinition('type', storage_series_api_NominalDataType),
68241
- 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
68242
- 'channel': ConjureFieldDefinition('channel', api_Channel),
68243
- 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, api_TagValue])
68244
- }
68245
-
68246
- __slots__: List[str] = ['_type', '_data_source_rid', '_channel', '_tags']
68247
-
68248
- def __init__(self, channel: str, data_source_rid: str, tags: Dict[str, str], type: "storage_series_api_NominalDataType") -> None:
68249
- self._type = type
68250
- self._data_source_rid = data_source_rid
68251
- self._channel = channel
68252
- self._tags = tags
68253
-
68254
- @builtins.property
68255
- def type(self) -> "storage_series_api_NominalDataType":
68256
- return self._type
68257
-
68258
- @builtins.property
68259
- def data_source_rid(self) -> str:
68260
- return self._data_source_rid
68261
-
68262
- @builtins.property
68263
- def channel(self) -> str:
68264
- return self._channel
68265
-
68266
- @builtins.property
68267
- def tags(self) -> Dict[str, str]:
68268
- return self._tags
68269
-
68270
-
68271
- storage_series_api_CreateSeriesRequest.__name__ = "CreateSeriesRequest"
68272
- storage_series_api_CreateSeriesRequest.__qualname__ = "CreateSeriesRequest"
68273
- storage_series_api_CreateSeriesRequest.__module__ = "nominal_api.storage_series_api"
68274
-
68275
-
68276
- class storage_series_api_GetSeriesByChannelAndTagsRequest(ConjureBeanType):
68277
-
68278
- @builtins.classmethod
68279
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68280
- return {
68281
- 'channel': ConjureFieldDefinition('channel', api_Channel),
68282
- 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
68283
- 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, api_TagValue])
68284
- }
68285
-
68286
- __slots__: List[str] = ['_channel', '_data_source_rid', '_tags']
68287
-
68288
- def __init__(self, channel: str, data_source_rid: str, tags: Dict[str, str]) -> None:
68289
- self._channel = channel
68290
- self._data_source_rid = data_source_rid
68291
- self._tags = tags
68292
-
68293
- @builtins.property
68294
- def channel(self) -> str:
68295
- return self._channel
68296
-
68297
- @builtins.property
68298
- def data_source_rid(self) -> str:
68299
- return self._data_source_rid
68300
-
68301
- @builtins.property
68302
- def tags(self) -> Dict[str, str]:
68303
- """
68304
- Returns a series that match this set of tags exactly.
68305
- """
68306
- return self._tags
68307
-
68308
-
68309
- storage_series_api_GetSeriesByChannelAndTagsRequest.__name__ = "GetSeriesByChannelAndTagsRequest"
68310
- storage_series_api_GetSeriesByChannelAndTagsRequest.__qualname__ = "GetSeriesByChannelAndTagsRequest"
68311
- storage_series_api_GetSeriesByChannelAndTagsRequest.__module__ = "nominal_api.storage_series_api"
68312
-
68313
-
68314
- class storage_series_api_NominalDataType(ConjureEnumType):
68315
- """
68316
- The data types supported by Nominal's database.
68317
- """
68318
-
68319
- DOUBLE = 'DOUBLE'
68320
- '''DOUBLE'''
68321
- STRING = 'STRING'
68322
- '''STRING'''
68323
- LOG = 'LOG'
68324
- '''LOG'''
68325
- INT64 = 'INT64'
68326
- '''INT64'''
68327
- UNKNOWN = 'UNKNOWN'
68328
- '''UNKNOWN'''
68329
-
68330
- def __reduce_ex__(self, proto):
68331
- return self.__class__, (self.name,)
68332
-
68333
-
68334
- storage_series_api_NominalDataType.__name__ = "NominalDataType"
68335
- storage_series_api_NominalDataType.__qualname__ = "NominalDataType"
68336
- storage_series_api_NominalDataType.__module__ = "nominal_api.storage_series_api"
68337
-
68338
-
68339
- class storage_series_api_NominalSeries(ConjureBeanType):
68340
-
68341
- @builtins.classmethod
68342
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68343
- return {
68344
- 'rid': ConjureFieldDefinition('rid', storage_series_api_NominalSeriesRid),
68345
- 'type': ConjureFieldDefinition('type', storage_series_api_NominalDataType),
68346
- 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
68347
- 'channel': ConjureFieldDefinition('channel', api_Channel),
68348
- 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, api_TagValue])
68349
- }
68350
-
68351
- __slots__: List[str] = ['_rid', '_type', '_data_source_rid', '_channel', '_tags']
68352
-
68353
- def __init__(self, channel: str, data_source_rid: str, rid: str, tags: Dict[str, str], type: "storage_series_api_NominalDataType") -> None:
68354
- self._rid = rid
68355
- self._type = type
68356
- self._data_source_rid = data_source_rid
68357
- self._channel = channel
68358
- self._tags = tags
68359
-
68360
- @builtins.property
68361
- def rid(self) -> str:
68362
- return self._rid
68363
-
68364
- @builtins.property
68365
- def type(self) -> "storage_series_api_NominalDataType":
68366
- return self._type
68367
-
68368
- @builtins.property
68369
- def data_source_rid(self) -> str:
68370
- return self._data_source_rid
68371
-
68372
- @builtins.property
68373
- def channel(self) -> str:
68374
- return self._channel
68375
-
68376
- @builtins.property
68377
- def tags(self) -> Dict[str, str]:
68378
- return self._tags
68379
-
68380
-
68381
- storage_series_api_NominalSeries.__name__ = "NominalSeries"
68382
- storage_series_api_NominalSeries.__qualname__ = "NominalSeries"
68383
- storage_series_api_NominalSeries.__module__ = "nominal_api.storage_series_api"
68384
-
68385
-
68386
- class storage_series_api_NominalSeriesService(Service):
68387
- """
68388
- Create and fetch series stored by Nominal. This service is deprecated.
68389
- """
68390
-
68391
- def get(self, auth_header: str, rid: str) -> "storage_series_api_NominalSeries":
68392
- """
68393
- Retrieves a series for the given series RID.
68394
- """
68395
-
68396
- _headers: Dict[str, Any] = {
68397
- 'Accept': 'application/json',
68398
- 'Authorization': auth_header,
68399
- }
68400
-
68401
- _params: Dict[str, Any] = {
68402
- }
68403
-
68404
- _path_params: Dict[str, Any] = {
68405
- 'rid': rid,
68406
- }
68407
-
68408
- _json: Any = None
68409
-
68410
- _path = '/storage/series/v1/{rid}'
68411
- _path = _path.format(**_path_params)
68412
-
68413
- _response: Response = self._request(
68414
- 'GET',
68415
- self._uri + _path,
68416
- params=_params,
68417
- headers=_headers,
68418
- json=_json)
68419
-
68420
- _decoder = ConjureDecoder()
68421
- return _decoder.decode(_response.json(), storage_series_api_NominalSeries, self._return_none_for_unknown_union_types)
68422
-
68423
- def batch_get(self, auth_header: str, rids: List[str] = None) -> List["storage_series_api_NominalSeries"]:
68424
- """
68425
- Retrieves series for the given series RIDs.
68426
- Excludes series that do not exist or are unauthorized. A maximum of 1000 rids can be requested.
68427
- """
68428
- rids = rids if rids is not None else []
68429
-
68430
- _headers: Dict[str, Any] = {
68431
- 'Accept': 'application/json',
68432
- 'Content-Type': 'application/json',
68433
- 'Authorization': auth_header,
68434
- }
68435
-
68436
- _params: Dict[str, Any] = {
68437
- }
68438
-
68439
- _path_params: Dict[str, Any] = {
68440
- }
68441
-
68442
- _json: Any = ConjureEncoder().default(rids)
68443
-
68444
- _path = '/storage/series/v1/batch-get'
68445
- _path = _path.format(**_path_params)
68446
-
68447
- _response: Response = self._request(
68448
- 'POST',
68449
- self._uri + _path,
68450
- params=_params,
68451
- headers=_headers,
68452
- json=_json)
68453
-
68454
- _decoder = ConjureDecoder()
68455
- return _decoder.decode(_response.json(), List[storage_series_api_NominalSeries], self._return_none_for_unknown_union_types)
68456
-
68457
- def batch_get_by_channel_and_tags(self, auth_header: str, request: List["storage_series_api_GetSeriesByChannelAndTagsRequest"] = None) -> List["storage_series_api_NominalSeries"]:
68458
- """
68459
- Retrieves series that match the requested data source, channel name and tags exactly.
68460
- Omits series that do not exist or are unauthorized. A maximum of 1000 rids can be requested.
68461
- """
68462
- request = request if request is not None else []
68463
-
68464
- _headers: Dict[str, Any] = {
68465
- 'Accept': 'application/json',
68466
- 'Content-Type': 'application/json',
68467
- 'Authorization': auth_header,
68468
- }
68469
-
68470
- _params: Dict[str, Any] = {
68471
- }
68472
-
68473
- _path_params: Dict[str, Any] = {
68474
- }
68475
-
68476
- _json: Any = ConjureEncoder().default(request)
68477
-
68478
- _path = '/storage/series/v1/batch-get-by-channel-and-tags'
68479
- _path = _path.format(**_path_params)
68480
-
68481
- _response: Response = self._request(
68482
- 'POST',
68483
- self._uri + _path,
68484
- params=_params,
68485
- headers=_headers,
68486
- json=_json)
68487
-
68488
- _decoder = ConjureDecoder()
68489
- return _decoder.decode(_response.json(), List[storage_series_api_NominalSeries], self._return_none_for_unknown_union_types)
68490
-
68491
- def create_or_get(self, auth_header: str, request: "storage_series_api_CreateSeriesRequest") -> "storage_series_api_NominalSeries":
68492
- """
68493
- Creates a new series if it doesn't already exist.
68494
-
68495
- A series exists if there is already a series with the same channel name and tag values in the data source.
68496
- Returns the series that was created or the existing series.
68497
- """
68498
-
68499
- _headers: Dict[str, Any] = {
68500
- 'Accept': 'application/json',
68501
- 'Content-Type': 'application/json',
68502
- 'Authorization': auth_header,
68503
- }
68504
-
68505
- _params: Dict[str, Any] = {
68506
- }
68507
-
68508
- _path_params: Dict[str, Any] = {
68509
- }
68510
-
68511
- _json: Any = ConjureEncoder().default(request)
68512
-
68513
- _path = '/storage/series/v1'
68514
- _path = _path.format(**_path_params)
68515
-
68516
- _response: Response = self._request(
68517
- 'POST',
68518
- self._uri + _path,
68519
- params=_params,
68520
- headers=_headers,
68521
- json=_json)
68522
-
68523
- _decoder = ConjureDecoder()
68524
- return _decoder.decode(_response.json(), storage_series_api_NominalSeries, self._return_none_for_unknown_union_types)
68525
-
68526
- def batch_create_or_get(self, auth_header: str, request: List["storage_series_api_CreateSeriesRequest"] = None) -> List["storage_series_api_NominalSeries"]:
68527
- request = request if request is not None else []
68528
-
68529
- _headers: Dict[str, Any] = {
68530
- 'Accept': 'application/json',
68531
- 'Content-Type': 'application/json',
68532
- 'Authorization': auth_header,
68533
- }
68534
-
68535
- _params: Dict[str, Any] = {
68536
- }
68537
-
68538
- _path_params: Dict[str, Any] = {
68539
- }
68540
-
68541
- _json: Any = ConjureEncoder().default(request)
68542
-
68543
- _path = '/storage/series/v1/batch-create'
68544
- _path = _path.format(**_path_params)
68545
-
68546
- _response: Response = self._request(
68547
- 'POST',
68548
- self._uri + _path,
68549
- params=_params,
68550
- headers=_headers,
68551
- json=_json)
68552
-
68553
- _decoder = ConjureDecoder()
68554
- return _decoder.decode(_response.json(), List[storage_series_api_NominalSeries], self._return_none_for_unknown_union_types)
68555
-
68556
- def batch_create_or_get_v2(self, auth_header: str, request: List["storage_series_api_CreateSeriesRequest"] = None) -> "storage_series_api_BatchCreateOrGetResponse":
68557
- """
68558
- Creates new series if they don't already exist.
68559
-
68560
- A series exists if there is already a series with the same channel name and tag values in the data source.
68561
- Returns series that were created and any existing series.
68562
- """
68563
- request = request if request is not None else []
68564
-
68565
- _headers: Dict[str, Any] = {
68566
- 'Accept': 'application/json',
68567
- 'Content-Type': 'application/json',
68568
- 'Authorization': auth_header,
68569
- }
68570
-
68571
- _params: Dict[str, Any] = {
68572
- }
68573
-
68574
- _path_params: Dict[str, Any] = {
68575
- }
68576
-
68577
- _json: Any = ConjureEncoder().default(request)
68578
-
68579
- _path = '/storage/series/v1/batch-create-or-get'
68580
- _path = _path.format(**_path_params)
68581
-
68582
- _response: Response = self._request(
68583
- 'POST',
68584
- self._uri + _path,
68585
- params=_params,
68586
- headers=_headers,
68587
- json=_json)
68588
-
68589
- _decoder = ConjureDecoder()
68590
- return _decoder.decode(_response.json(), storage_series_api_BatchCreateOrGetResponse, self._return_none_for_unknown_union_types)
68591
-
68592
- def update_last_touched_at(self, auth_header: str, request: "storage_series_api_BatchUpdateLastTouchedAtRequest") -> None:
68593
- """
68594
- Updates the last touched at time for series. The last touched at time represents the last time a series
68595
- had data written to it.
68596
- """
68597
-
68598
- _headers: Dict[str, Any] = {
68599
- 'Accept': 'application/json',
68600
- 'Content-Type': 'application/json',
68601
- 'Authorization': auth_header,
68602
- }
68603
-
68604
- _params: Dict[str, Any] = {
68605
- }
68606
-
68607
- _path_params: Dict[str, Any] = {
68608
- }
68609
-
68610
- _json: Any = ConjureEncoder().default(request)
68611
-
68612
- _path = '/storage/series/v1/update-last-touched'
68613
- _path = _path.format(**_path_params)
68614
-
68615
- _response: Response = self._request(
68616
- 'POST',
68617
- self._uri + _path,
68618
- params=_params,
68619
- headers=_headers,
68620
- json=_json)
68621
-
68622
- return
68623
-
68624
- def search(self, auth_header: str, request: "storage_series_api_SearchSeriesRequest") -> "storage_series_api_SearchSeriesResponse":
68625
- """
68626
- Retrieves series that match the search query.
68627
- """
68628
-
68629
- _headers: Dict[str, Any] = {
68630
- 'Accept': 'application/json',
68631
- 'Content-Type': 'application/json',
68632
- 'Authorization': auth_header,
68633
- }
68634
-
68635
- _params: Dict[str, Any] = {
68636
- }
68637
-
68638
- _path_params: Dict[str, Any] = {
68639
- }
68640
-
68641
- _json: Any = ConjureEncoder().default(request)
68642
-
68643
- _path = '/storage/series/v1/search'
68644
- _path = _path.format(**_path_params)
68645
-
68646
- _response: Response = self._request(
68647
- 'POST',
68648
- self._uri + _path,
68649
- params=_params,
68650
- headers=_headers,
68651
- json=_json)
68652
-
68653
- _decoder = ConjureDecoder()
68654
- return _decoder.decode(_response.json(), storage_series_api_SearchSeriesResponse, self._return_none_for_unknown_union_types)
68655
-
68656
-
68657
- storage_series_api_NominalSeriesService.__name__ = "NominalSeriesService"
68658
- storage_series_api_NominalSeriesService.__qualname__ = "NominalSeriesService"
68659
- storage_series_api_NominalSeriesService.__module__ = "nominal_api.storage_series_api"
68660
-
68661
-
68662
- class storage_series_api_SearchSeriesRequest(ConjureBeanType):
68663
-
68664
- @builtins.classmethod
68665
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68666
- return {
68667
- 'channel': ConjureFieldDefinition('channel', api_Channel),
68668
- 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
68669
- 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, api_TagValue])
68670
- }
68671
-
68672
- __slots__: List[str] = ['_channel', '_data_source_rid', '_tags']
68673
-
68674
- def __init__(self, channel: str, data_source_rid: str, tags: Dict[str, str]) -> None:
68675
- self._channel = channel
68676
- self._data_source_rid = data_source_rid
68677
- self._tags = tags
68678
-
68679
- @builtins.property
68680
- def channel(self) -> str:
68681
- return self._channel
68682
-
68683
- @builtins.property
68684
- def data_source_rid(self) -> str:
68685
- return self._data_source_rid
68686
-
68687
- @builtins.property
68688
- def tags(self) -> Dict[str, str]:
68689
- """
68690
- Returns all series that contain this set of tags, including those
68691
- whose tags are a superset.
68692
- """
68693
- return self._tags
68694
-
68695
-
68696
- storage_series_api_SearchSeriesRequest.__name__ = "SearchSeriesRequest"
68697
- storage_series_api_SearchSeriesRequest.__qualname__ = "SearchSeriesRequest"
68698
- storage_series_api_SearchSeriesRequest.__module__ = "nominal_api.storage_series_api"
68699
-
68700
-
68701
- class storage_series_api_SearchSeriesResponse(ConjureBeanType):
68702
-
68703
- @builtins.classmethod
68704
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68705
- return {
68706
- 'series': ConjureFieldDefinition('series', List[storage_series_api_NominalSeries])
68707
- }
68708
-
68709
- __slots__: List[str] = ['_series']
68710
-
68711
- def __init__(self, series: List["storage_series_api_NominalSeries"]) -> None:
68712
- self._series = series
68713
-
68714
- @builtins.property
68715
- def series(self) -> List["storage_series_api_NominalSeries"]:
68716
- return self._series
68717
-
68718
-
68719
- storage_series_api_SearchSeriesResponse.__name__ = "SearchSeriesResponse"
68720
- storage_series_api_SearchSeriesResponse.__qualname__ = "SearchSeriesResponse"
68721
- storage_series_api_SearchSeriesResponse.__module__ = "nominal_api.storage_series_api"
68722
-
68723
-
68724
- class storage_series_api_UpdateLastTouchedAtRequest(ConjureBeanType):
68725
-
68726
- @builtins.classmethod
68727
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
68728
- return {
68729
- 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
68730
- 'channel': ConjureFieldDefinition('channel', api_Channel),
68731
- 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, api_TagValue])
68732
- }
68733
-
68734
- __slots__: List[str] = ['_data_source_rid', '_channel', '_tags']
68735
-
68736
- def __init__(self, channel: str, data_source_rid: str, tags: Dict[str, str]) -> None:
68737
- self._data_source_rid = data_source_rid
68738
- self._channel = channel
68739
- self._tags = tags
68740
-
68741
- @builtins.property
68742
- def data_source_rid(self) -> str:
68743
- return self._data_source_rid
68177
+ class storage_series_api_NominalDataType(ConjureEnumType):
68178
+ """
68179
+ The data types supported by Nominal's database.
68180
+ """
68744
68181
 
68745
- @builtins.property
68746
- def channel(self) -> str:
68747
- return self._channel
68182
+ DOUBLE = 'DOUBLE'
68183
+ '''DOUBLE'''
68184
+ STRING = 'STRING'
68185
+ '''STRING'''
68186
+ LOG = 'LOG'
68187
+ '''LOG'''
68188
+ INT64 = 'INT64'
68189
+ '''INT64'''
68190
+ UNKNOWN = 'UNKNOWN'
68191
+ '''UNKNOWN'''
68748
68192
 
68749
- @builtins.property
68750
- def tags(self) -> Dict[str, str]:
68751
- return self._tags
68193
+ def __reduce_ex__(self, proto):
68194
+ return self.__class__, (self.name,)
68752
68195
 
68753
68196
 
68754
- storage_series_api_UpdateLastTouchedAtRequest.__name__ = "UpdateLastTouchedAtRequest"
68755
- storage_series_api_UpdateLastTouchedAtRequest.__qualname__ = "UpdateLastTouchedAtRequest"
68756
- storage_series_api_UpdateLastTouchedAtRequest.__module__ = "nominal_api.storage_series_api"
68197
+ storage_series_api_NominalDataType.__name__ = "NominalDataType"
68198
+ storage_series_api_NominalDataType.__qualname__ = "NominalDataType"
68199
+ storage_series_api_NominalDataType.__module__ = "nominal_api.storage_series_api"
68757
68200
 
68758
68201
 
68759
68202
  class storage_writer_api_DirectNominalChannelWriterService(Service):
@@ -71610,39 +71053,6 @@ if the channel + datasource + tag cannot be resolved into a logical series rid.
71610
71053
  _decoder = ConjureDecoder()
71611
71054
  return _decoder.decode(_response.json(), timeseries_logicalseries_api_BatchResolveSeriesResponse, self._return_none_for_unknown_union_types)
71612
71055
 
71613
- def get_suggested_tags(self, auth_header: str, request: "timeseries_logicalseries_api_GetSuggestedTagsRequest") -> "timeseries_logicalseries_api_GetSuggestedTagsResponse":
71614
- """
71615
- Returns suggested tags given a channel, datasource, and the existing tags by reading series archetypes,
71616
- external datasources, and other tagged channels.
71617
- """
71618
-
71619
- _headers: Dict[str, Any] = {
71620
- 'Accept': 'application/json',
71621
- 'Content-Type': 'application/json',
71622
- 'Authorization': auth_header,
71623
- }
71624
-
71625
- _params: Dict[str, Any] = {
71626
- }
71627
-
71628
- _path_params: Dict[str, Any] = {
71629
- }
71630
-
71631
- _json: Any = ConjureEncoder().default(request)
71632
-
71633
- _path = '/timeseries/logical-series/v1/get-suggested-tags'
71634
- _path = _path.format(**_path_params)
71635
-
71636
- _response: Response = self._request(
71637
- 'POST',
71638
- self._uri + _path,
71639
- params=_params,
71640
- headers=_headers,
71641
- json=_json)
71642
-
71643
- _decoder = ConjureDecoder()
71644
- return _decoder.decode(_response.json(), timeseries_logicalseries_api_GetSuggestedTagsResponse, self._return_none_for_unknown_union_types)
71645
-
71646
71056
 
71647
71057
  timeseries_logicalseries_LogicalSeriesService.__name__ = "LogicalSeriesService"
71648
71058
  timeseries_logicalseries_LogicalSeriesService.__qualname__ = "LogicalSeriesService"
@@ -71855,26 +71265,6 @@ timeseries_logicalseries_api_BigQueryType.__qualname__ = "BigQueryType"
71855
71265
  timeseries_logicalseries_api_BigQueryType.__module__ = "nominal_api.timeseries_logicalseries_api"
71856
71266
 
71857
71267
 
71858
- class timeseries_logicalseries_api_Confidence(ConjureEnumType):
71859
-
71860
- LOW = 'LOW'
71861
- '''LOW'''
71862
- MEDIUM = 'MEDIUM'
71863
- '''MEDIUM'''
71864
- HIGH = 'HIGH'
71865
- '''HIGH'''
71866
- UNKNOWN = 'UNKNOWN'
71867
- '''UNKNOWN'''
71868
-
71869
- def __reduce_ex__(self, proto):
71870
- return self.__class__, (self.name,)
71871
-
71872
-
71873
- timeseries_logicalseries_api_Confidence.__name__ = "Confidence"
71874
- timeseries_logicalseries_api_Confidence.__qualname__ = "Confidence"
71875
- timeseries_logicalseries_api_Confidence.__module__ = "nominal_api.timeseries_logicalseries_api"
71876
-
71877
-
71878
71268
  class timeseries_logicalseries_api_Context(ConjureBeanType):
71879
71269
 
71880
71270
  @builtins.classmethod
@@ -72100,70 +71490,6 @@ timeseries_logicalseries_api_CsvLocatorV2.__qualname__ = "CsvLocatorV2"
72100
71490
  timeseries_logicalseries_api_CsvLocatorV2.__module__ = "nominal_api.timeseries_logicalseries_api"
72101
71491
 
72102
71492
 
72103
- class timeseries_logicalseries_api_GetSuggestedTagsRequest(ConjureBeanType):
72104
-
72105
- @builtins.classmethod
72106
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
72107
- return {
72108
- 'current_tags': ConjureFieldDefinition('currentTags', Dict[api_TagName, api_TagValue]),
72109
- 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_DataSourceRid),
72110
- 'channel': ConjureFieldDefinition('channel', api_Channel)
72111
- }
72112
-
72113
- __slots__: List[str] = ['_current_tags', '_data_source_rid', '_channel']
72114
-
72115
- def __init__(self, channel: str, current_tags: Dict[str, str], data_source_rid: str) -> None:
72116
- self._current_tags = current_tags
72117
- self._data_source_rid = data_source_rid
72118
- self._channel = channel
72119
-
72120
- @builtins.property
72121
- def current_tags(self) -> Dict[str, str]:
72122
- return self._current_tags
72123
-
72124
- @builtins.property
72125
- def data_source_rid(self) -> str:
72126
- return self._data_source_rid
72127
-
72128
- @builtins.property
72129
- def channel(self) -> str:
72130
- return self._channel
72131
-
72132
-
72133
- timeseries_logicalseries_api_GetSuggestedTagsRequest.__name__ = "GetSuggestedTagsRequest"
72134
- timeseries_logicalseries_api_GetSuggestedTagsRequest.__qualname__ = "GetSuggestedTagsRequest"
72135
- timeseries_logicalseries_api_GetSuggestedTagsRequest.__module__ = "nominal_api.timeseries_logicalseries_api"
72136
-
72137
-
72138
- class timeseries_logicalseries_api_GetSuggestedTagsResponse(ConjureBeanType):
72139
-
72140
- @builtins.classmethod
72141
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
72142
- return {
72143
- 'tags': ConjureFieldDefinition('tags', Dict[api_TagName, List[api_TagValue]]),
72144
- 'confidence': ConjureFieldDefinition('confidence', timeseries_logicalseries_api_Confidence)
72145
- }
72146
-
72147
- __slots__: List[str] = ['_tags', '_confidence']
72148
-
72149
- def __init__(self, confidence: "timeseries_logicalseries_api_Confidence", tags: Dict[str, List[str]]) -> None:
72150
- self._tags = tags
72151
- self._confidence = confidence
72152
-
72153
- @builtins.property
72154
- def tags(self) -> Dict[str, List[str]]:
72155
- return self._tags
72156
-
72157
- @builtins.property
72158
- def confidence(self) -> "timeseries_logicalseries_api_Confidence":
72159
- return self._confidence
72160
-
72161
-
72162
- timeseries_logicalseries_api_GetSuggestedTagsResponse.__name__ = "GetSuggestedTagsResponse"
72163
- timeseries_logicalseries_api_GetSuggestedTagsResponse.__qualname__ = "GetSuggestedTagsResponse"
72164
- timeseries_logicalseries_api_GetSuggestedTagsResponse.__module__ = "nominal_api.timeseries_logicalseries_api"
72165
-
72166
-
72167
71493
  class timeseries_logicalseries_api_Influx1Locator(ConjureBeanType):
72168
71494
 
72169
71495
  @builtins.classmethod
@@ -72524,12 +71850,12 @@ class timeseries_logicalseries_api_LogicalSeries(ConjureBeanType):
72524
71850
  'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
72525
71851
  'unit': ConjureFieldDefinition('unit', OptionalTypeWrapper[api_Unit]),
72526
71852
  'series_data_type': ConjureFieldDefinition('seriesDataType', OptionalTypeWrapper[api_SeriesDataType]),
72527
- 'granularity': ConjureFieldDefinition('granularity', api_Granularity)
71853
+ 'granularity': ConjureFieldDefinition('granularity', OptionalTypeWrapper[api_Granularity])
72528
71854
  }
72529
71855
 
72530
71856
  __slots__: List[str] = ['_rid', '_data_source_rid', '_locator', '_time_locator', '_channel', '_description', '_unit', '_series_data_type', '_granularity']
72531
71857
 
72532
- def __init__(self, channel: str, data_source_rid: str, granularity: "api_Granularity", locator: "timeseries_logicalseries_api_Locator", rid: str, description: Optional[str] = None, series_data_type: Optional["api_SeriesDataType"] = None, time_locator: Optional["timeseries_logicalseries_api_Locator"] = None, unit: Optional[str] = None) -> None:
71858
+ def __init__(self, channel: str, data_source_rid: str, locator: "timeseries_logicalseries_api_Locator", rid: str, description: Optional[str] = None, granularity: Optional["api_Granularity"] = None, series_data_type: Optional["api_SeriesDataType"] = None, time_locator: Optional["timeseries_logicalseries_api_Locator"] = None, unit: Optional[str] = None) -> None:
72533
71859
  self._rid = rid
72534
71860
  self._data_source_rid = data_source_rid
72535
71861
  self._locator = locator
@@ -72576,7 +71902,7 @@ class timeseries_logicalseries_api_LogicalSeries(ConjureBeanType):
72576
71902
  return self._series_data_type
72577
71903
 
72578
71904
  @builtins.property
72579
- def granularity(self) -> "api_Granularity":
71905
+ def granularity(self) -> Optional["api_Granularity"]:
72580
71906
  """
72581
71907
  Time granularity of the series. If omitted, defaults to nanoseconds.
72582
71908
  """
@@ -74209,8 +73535,6 @@ scout_rids_api_Version = int
74209
73535
 
74210
73536
  scout_versioning_api_BranchName = str
74211
73537
 
74212
- storage_series_api_NominalSeriesRid = str
74213
-
74214
73538
  storage_writer_api_MeasurementName = str
74215
73539
 
74216
73540
  storage_datasource_api_NominalDataSourceId = str
@@ -1,15 +1,5 @@
1
1
  # coding=utf-8
2
2
  from .._impl import (
3
- storage_series_api_BatchCreateOrGetResponse as BatchCreateOrGetResponse,
4
- storage_series_api_BatchUpdateLastTouchedAtRequest as BatchUpdateLastTouchedAtRequest,
5
- storage_series_api_CreateSeriesRequest as CreateSeriesRequest,
6
- storage_series_api_GetSeriesByChannelAndTagsRequest as GetSeriesByChannelAndTagsRequest,
7
3
  storage_series_api_NominalDataType as NominalDataType,
8
- storage_series_api_NominalSeries as NominalSeries,
9
- storage_series_api_NominalSeriesRid as NominalSeriesRid,
10
- storage_series_api_NominalSeriesService as NominalSeriesService,
11
- storage_series_api_SearchSeriesRequest as SearchSeriesRequest,
12
- storage_series_api_SearchSeriesResponse as SearchSeriesResponse,
13
- storage_series_api_UpdateLastTouchedAtRequest as UpdateLastTouchedAtRequest,
14
4
  )
15
5
 
@@ -11,7 +11,6 @@ from .._impl import (
11
11
  timeseries_logicalseries_api_BigQueryType as BigQueryType,
12
12
  timeseries_logicalseries_api_BucketName as BucketName,
13
13
  timeseries_logicalseries_api_ColumnName as ColumnName,
14
- timeseries_logicalseries_api_Confidence as Confidence,
15
14
  timeseries_logicalseries_api_Context as Context,
16
15
  timeseries_logicalseries_api_ContextProperty as ContextProperty,
17
16
  timeseries_logicalseries_api_ContextPropertyVisitor as ContextPropertyVisitor,
@@ -21,8 +20,6 @@ from .._impl import (
21
20
  timeseries_logicalseries_api_DatabaseName as DatabaseName,
22
21
  timeseries_logicalseries_api_DatasetName as DatasetName,
23
22
  timeseries_logicalseries_api_FieldName as FieldName,
24
- timeseries_logicalseries_api_GetSuggestedTagsRequest as GetSuggestedTagsRequest,
25
- timeseries_logicalseries_api_GetSuggestedTagsResponse as GetSuggestedTagsResponse,
26
23
  timeseries_logicalseries_api_Influx1Locator as Influx1Locator,
27
24
  timeseries_logicalseries_api_Influx2Locator as Influx2Locator,
28
25
  timeseries_logicalseries_api_InfluxType as InfluxType,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.591.0
3
+ Version: 0.593.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=FIGlzkJguCOH0Exgb8e6ZrjnnHwk7w4cNqytYa4mBlo,1968
2
- nominal_api/_impl.py,sha256=jfnHKrIbjt_94S9nkm_qE5vlV57MTC0v6ZR-J_HrPiY,2871852
1
+ nominal_api/__init__.py,sha256=ez3W7X77QuhXXkriyRrIEOMtk21VlYPbKYuYzBfaHwc,1968
2
+ nominal_api/_impl.py,sha256=L8ovlxb84rUUduxev0CjsBjRmeCCbIIlWkCV_z5NDjs,2848499
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_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
@@ -60,7 +60,7 @@ nominal_api/secrets_api/__init__.py,sha256=V5BpnbNzjdMP8kgvR2N6SEVcVyXi6Vyl_lh_5
60
60
  nominal_api/security_api_workspace/__init__.py,sha256=18MQr8sUGDfaXl50sMR7objE5rBJ9dZ1Sjwuyf997dA,156
61
61
  nominal_api/storage_datasource_api/__init__.py,sha256=jh_OZE_b4nBNAvnyenBjw8aGZOnvIXR6qvUKd31fXOk,445
62
62
  nominal_api/storage_deletion_api/__init__.py,sha256=2bIuAU0tcnT_8lqae0fcII4R45A_RzfV0y_E-vTkpSQ,267
63
- nominal_api/storage_series_api/__init__.py,sha256=HapfYMCap8kDYXh7_kjsdywLqwterOB0OdVUyU3QZz8,829
63
+ nominal_api/storage_series_api/__init__.py,sha256=F2ctWx8yqb4-JtfHkLzCq74njNEpGwr69b9fWQp9UAQ,99
64
64
  nominal_api/storage_writer_api/__init__.py,sha256=kr14YqN44wGfHJIy_7hti6KFq5caA1523i45P2GX8hM,909
65
65
  nominal_api/themes_api/__init__.py,sha256=w-G93T5f6_2zSSUi-ffyUHxH8QA_2oI9jM7YBSMFpwY,924
66
66
  nominal_api/timeseries_archetype/__init__.py,sha256=eKdgdZoOcZg_9pmec6J86NlgQdhxhi1282WUAFxghJ8,115
@@ -68,11 +68,11 @@ nominal_api/timeseries_archetype_api/__init__.py,sha256=IREibRlChT9ugCAkeMKm7RiA
68
68
  nominal_api/timeseries_channelmetadata/__init__.py,sha256=DdcwwrIydiRIFiEvxAqcTtVmhT6Wy64kAO9e2j4z4sI,121
69
69
  nominal_api/timeseries_channelmetadata_api/__init__.py,sha256=g8kC5TrYcF_jrqKec1qbYBoUrVaoTiCd8NsDO3mXGxk,794
70
70
  nominal_api/timeseries_logicalseries/__init__.py,sha256=8EkKiSUli5RbCEf6CPmkiTUOyFcdiNj292eV0WgVbrs,115
71
- nominal_api/timeseries_logicalseries_api/__init__.py,sha256=7NlQhIzOKOcjwMNUI89fn9BIEOdu3i9l6wUJWc_gcig,3638
71
+ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-EblNjtlYb8GOrnRAwtlpStNJ0,3407
72
72
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
73
73
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
74
74
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
75
- nominal_api-0.591.0.dist-info/METADATA,sha256=DUH0MDQbQtj45Ti3pIuWhvPxk-AR4U01Vw3Y2lxj5L4,199
76
- nominal_api-0.591.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
77
- nominal_api-0.591.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
- nominal_api-0.591.0.dist-info/RECORD,,
75
+ nominal_api-0.593.0.dist-info/METADATA,sha256=7_jUKBxAcX-Z94Qn3UTXW9pgas6pCc8oQf385OcxLBk,199
76
+ nominal_api-0.593.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
77
+ nominal_api-0.593.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
+ nominal_api-0.593.0.dist-info/RECORD,,