nominal-api 0.627.0__py3-none-any.whl → 0.629.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
@@ -76,5 +76,5 @@ __all__ = [
76
76
 
77
77
  __conjure_generator_version__ = "4.9.0"
78
78
 
79
- __version__ = "0.627.0"
79
+ __version__ = "0.629.0"
80
80
 
nominal_api/_impl.py CHANGED
@@ -12271,22 +12271,25 @@ persistent_compute_api_FullResult.__module__ = "nominal_api.persistent_compute_a
12271
12271
  class persistent_compute_api_HealthMessage(ConjureUnionType):
12272
12272
  _ping: Optional["persistent_compute_api_Ping"] = None
12273
12273
  _pong: Optional["persistent_compute_api_Pong"] = None
12274
+ _shutdown_notice: Optional["persistent_compute_api_ShutdownNotice"] = None
12274
12275
 
12275
12276
  @builtins.classmethod
12276
12277
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
12277
12278
  return {
12278
12279
  'ping': ConjureFieldDefinition('ping', persistent_compute_api_Ping),
12279
- 'pong': ConjureFieldDefinition('pong', persistent_compute_api_Pong)
12280
+ 'pong': ConjureFieldDefinition('pong', persistent_compute_api_Pong),
12281
+ 'shutdown_notice': ConjureFieldDefinition('shutdownNotice', persistent_compute_api_ShutdownNotice)
12280
12282
  }
12281
12283
 
12282
12284
  def __init__(
12283
12285
  self,
12284
12286
  ping: Optional["persistent_compute_api_Ping"] = None,
12285
12287
  pong: Optional["persistent_compute_api_Pong"] = None,
12288
+ shutdown_notice: Optional["persistent_compute_api_ShutdownNotice"] = None,
12286
12289
  type_of_union: Optional[str] = None
12287
12290
  ) -> None:
12288
12291
  if type_of_union is None:
12289
- if (ping is not None) + (pong is not None) != 1:
12292
+ if (ping is not None) + (pong is not None) + (shutdown_notice is not None) != 1:
12290
12293
  raise ValueError('a union must contain a single member')
12291
12294
 
12292
12295
  if ping is not None:
@@ -12295,6 +12298,9 @@ class persistent_compute_api_HealthMessage(ConjureUnionType):
12295
12298
  if pong is not None:
12296
12299
  self._pong = pong
12297
12300
  self._type = 'pong'
12301
+ if shutdown_notice is not None:
12302
+ self._shutdown_notice = shutdown_notice
12303
+ self._type = 'shutdownNotice'
12298
12304
 
12299
12305
  elif type_of_union == 'ping':
12300
12306
  if ping is None:
@@ -12306,6 +12312,11 @@ class persistent_compute_api_HealthMessage(ConjureUnionType):
12306
12312
  raise ValueError('a union value must not be None')
12307
12313
  self._pong = pong
12308
12314
  self._type = 'pong'
12315
+ elif type_of_union == 'shutdownNotice':
12316
+ if shutdown_notice is None:
12317
+ raise ValueError('a union value must not be None')
12318
+ self._shutdown_notice = shutdown_notice
12319
+ self._type = 'shutdownNotice'
12309
12320
 
12310
12321
  @builtins.property
12311
12322
  def ping(self) -> Optional["persistent_compute_api_Ping"]:
@@ -12315,6 +12326,10 @@ class persistent_compute_api_HealthMessage(ConjureUnionType):
12315
12326
  def pong(self) -> Optional["persistent_compute_api_Pong"]:
12316
12327
  return self._pong
12317
12328
 
12329
+ @builtins.property
12330
+ def shutdown_notice(self) -> Optional["persistent_compute_api_ShutdownNotice"]:
12331
+ return self._shutdown_notice
12332
+
12318
12333
  def accept(self, visitor) -> Any:
12319
12334
  if not isinstance(visitor, persistent_compute_api_HealthMessageVisitor):
12320
12335
  raise ValueError('{} is not an instance of persistent_compute_api_HealthMessageVisitor'.format(visitor.__class__.__name__))
@@ -12322,6 +12337,8 @@ class persistent_compute_api_HealthMessage(ConjureUnionType):
12322
12337
  return visitor._ping(self.ping)
12323
12338
  if self._type == 'pong' and self.pong is not None:
12324
12339
  return visitor._pong(self.pong)
12340
+ if self._type == 'shutdownNotice' and self.shutdown_notice is not None:
12341
+ return visitor._shutdown_notice(self.shutdown_notice)
12325
12342
 
12326
12343
 
12327
12344
  persistent_compute_api_HealthMessage.__name__ = "HealthMessage"
@@ -12339,6 +12356,10 @@ class persistent_compute_api_HealthMessageVisitor:
12339
12356
  def _pong(self, pong: "persistent_compute_api_Pong") -> Any:
12340
12357
  pass
12341
12358
 
12359
+ @abstractmethod
12360
+ def _shutdown_notice(self, shutdown_notice: "persistent_compute_api_ShutdownNotice") -> Any:
12361
+ pass
12362
+
12342
12363
 
12343
12364
  persistent_compute_api_HealthMessageVisitor.__name__ = "HealthMessageVisitor"
12344
12365
  persistent_compute_api_HealthMessageVisitor.__qualname__ = "HealthMessageVisitor"
@@ -12501,6 +12522,28 @@ persistent_compute_api_ServerMessageVisitor.__qualname__ = "ServerMessageVisitor
12501
12522
  persistent_compute_api_ServerMessageVisitor.__module__ = "nominal_api.persistent_compute_api"
12502
12523
 
12503
12524
 
12525
+ class persistent_compute_api_ShutdownNotice(ConjureBeanType):
12526
+ """
12527
+ Indicates that the websocket will shut down in the near future. Until it is, SubscriptionUpdates will
12528
+ still be sent to the client. Clients that want to avoid downtime or latency spikes should initiate a new
12529
+ websocket and recreate all their subscriptions there but still keep this websocket open until the new
12530
+ websockets starts sending SubscriptionUpdates.
12531
+ """
12532
+
12533
+ @builtins.classmethod
12534
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
12535
+ return {
12536
+ }
12537
+
12538
+ __slots__: List[str] = []
12539
+
12540
+
12541
+
12542
+ persistent_compute_api_ShutdownNotice.__name__ = "ShutdownNotice"
12543
+ persistent_compute_api_ShutdownNotice.__qualname__ = "ShutdownNotice"
12544
+ persistent_compute_api_ShutdownNotice.__module__ = "nominal_api.persistent_compute_api"
12545
+
12546
+
12504
12547
  class persistent_compute_api_StreamingComputeNodeRequest(ConjureBeanType):
12505
12548
  """
12506
12549
  A templatized version of `ComputeNodeRequest` where the end of the range will track the current time and
@@ -57063,6 +57106,9 @@ The Connection Service is responsible for creating, updating, and retrieving dat
57063
57106
  def add_available_tags(self, auth_header: str, rid: str, tags: Dict[str, List[str]]) -> "scout_datasource_connection_api_Connection":
57064
57107
  """
57065
57108
  Adds available tag key/value pairs to the connection. If a tag name already exists, the values will be merged.
57109
+ This is primarily an internal endpoint to update tags for external connections as they are periodically
57110
+ scraped. This endpoint should only be called by clients for Visual crossing connections. Throws if called for
57111
+ Nominal connections which have their tags automatically indexed in the underlying Database.
57066
57112
  """
57067
57113
 
57068
57114
  _headers: Dict[str, Any] = {
@@ -57487,7 +57533,7 @@ rather than strictly required.
57487
57533
  @builtins.property
57488
57534
  def available_tag_values(self) -> Optional[Dict[str, List[str]]]:
57489
57535
  """
57490
- Deprecated, use the getAvailableTagsForConnection endpoint instead
57536
+ Deprecated, use the DataSourceService#getAvailableTagsForConnection endpoint instead
57491
57537
  """
57492
57538
  return self._available_tag_values
57493
57539
 
@@ -57804,7 +57850,7 @@ class scout_datasource_connection_api_CreateConnection(ConjureBeanType):
57804
57850
  'connection_details': ConjureFieldDefinition('connectionDetails', scout_datasource_connection_api_ConnectionDetails),
57805
57851
  'metadata': ConjureFieldDefinition('metadata', Dict[str, str]),
57806
57852
  'required_tag_names': ConjureFieldDefinition('requiredTagNames', List[api_TagName]),
57807
- 'available_tag_values': ConjureFieldDefinition('availableTagValues', Dict[api_TagName, List[api_TagValue]]),
57853
+ 'available_tag_values': ConjureFieldDefinition('availableTagValues', OptionalTypeWrapper[Dict[api_TagName, List[api_TagValue]]]),
57808
57854
  'scraping': ConjureFieldDefinition('scraping', OptionalTypeWrapper[scout_datasource_connection_api_ScrapingConfig]),
57809
57855
  'should_scrape': ConjureFieldDefinition('shouldScrape', bool),
57810
57856
  'limits': ConjureFieldDefinition('limits', OptionalTypeWrapper[scout_datasource_connection_api_LimitsConfig]),
@@ -57813,7 +57859,7 @@ class scout_datasource_connection_api_CreateConnection(ConjureBeanType):
57813
57859
 
57814
57860
  __slots__: List[str] = ['_name', '_description', '_connection_details', '_metadata', '_required_tag_names', '_available_tag_values', '_scraping', '_should_scrape', '_limits', '_workspace']
57815
57861
 
57816
- def __init__(self, available_tag_values: Dict[str, List[str]], connection_details: "scout_datasource_connection_api_ConnectionDetails", metadata: Dict[str, str], name: str, required_tag_names: List[str], should_scrape: bool, description: Optional[str] = None, limits: Optional["scout_datasource_connection_api_LimitsConfig"] = None, scraping: Optional["scout_datasource_connection_api_ScrapingConfig"] = None, workspace: Optional[str] = None) -> None:
57862
+ def __init__(self, connection_details: "scout_datasource_connection_api_ConnectionDetails", metadata: Dict[str, str], name: str, required_tag_names: List[str], should_scrape: bool, available_tag_values: Optional[Dict[str, List[str]]] = None, description: Optional[str] = None, limits: Optional["scout_datasource_connection_api_LimitsConfig"] = None, scraping: Optional["scout_datasource_connection_api_ScrapingConfig"] = None, workspace: Optional[str] = None) -> None:
57817
57863
  self._name = name
57818
57864
  self._description = description
57819
57865
  self._connection_details = connection_details
@@ -57852,7 +57898,12 @@ class scout_datasource_connection_api_CreateConnection(ConjureBeanType):
57852
57898
  return self._required_tag_names
57853
57899
 
57854
57900
  @builtins.property
57855
- def available_tag_values(self) -> Dict[str, List[str]]:
57901
+ def available_tag_values(self) -> Optional[Dict[str, List[str]]]:
57902
+ """
57903
+ In most cases, this does not to be set by the user. Throws if populated for Nominal connections, which
57904
+ have their tags automatically indexed in the underlying database. Tags for external connections are
57905
+ periodically scraped. Tags should only be updated manually for Visual crossing connections.
57906
+ """
57856
57907
  return self._available_tag_values
57857
57908
 
57858
57909
  @builtins.property
@@ -59449,6 +59500,11 @@ class scout_datasource_connection_api_UpdateConnectionRequest(ConjureBeanType):
59449
59500
 
59450
59501
  @builtins.property
59451
59502
  def available_tag_values(self) -> Optional[Dict[str, List[str]]]:
59503
+ """
59504
+ In most cases, this does not to be set by the user. Throws if populated for Nominal connections, which
59505
+ have their tags automatically indexed in the underlying database. Tags for external connections are
59506
+ periodically scraped. Tags should only be updated manually for Visual crossing connections.
59507
+ """
59452
59508
  return self._available_tag_values
59453
59509
 
59454
59510
  @builtins.property
@@ -13,6 +13,7 @@ from .._impl import (
13
13
  persistent_compute_api_Pong as Pong,
14
14
  persistent_compute_api_ServerMessage as ServerMessage,
15
15
  persistent_compute_api_ServerMessageVisitor as ServerMessageVisitor,
16
+ persistent_compute_api_ShutdownNotice as ShutdownNotice,
16
17
  persistent_compute_api_StreamingComputeNodeRequest as StreamingComputeNodeRequest,
17
18
  persistent_compute_api_StreamingComputeNodeSubscription as StreamingComputeNodeSubscription,
18
19
  persistent_compute_api_SubscriptionCreation as SubscriptionCreation,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.627.0
3
+ Version: 0.629.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=P76isY4LphNTprmhBkwjeEJs0a38I0GCo3ADBMLhXUk,1995
2
- nominal_api/_impl.py,sha256=lDNolI5SxKtRXc8MtLXOz_PVWCDH6S5ZbUDtJfnRnGI,3006835
1
+ nominal_api/__init__.py,sha256=jUMY5gYsmSBUry7_f61vMwCZwxNVRpq6mdcYbaPn1Yw,1995
2
+ nominal_api/_impl.py,sha256=BvZs3xtCZi9_ItPioGLqdF46CzJIPpIIGF1FZMWE3po,3009808
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=1oJPOuAMfV2uClPUW8Ie1nj2Y6j81TDpedcc3yUFTe0,1294
5
5
  nominal_api/api_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
@@ -17,7 +17,7 @@ nominal_api/datasource_pagination_api/__init__.py,sha256=3GO8TAUavOe6dUEitOhje74
17
17
  nominal_api/event/__init__.py,sha256=pim-mIINXhntq9ZtLbCeunLUPhK7sonqI3fCRQalhRA,804
18
18
  nominal_api/ingest_api/__init__.py,sha256=jpxmJO0dzcCEIv5iM7xvziQEs1x92XLTm-LmbHxtii4,6953
19
19
  nominal_api/ingest_workflow_api/__init__.py,sha256=1oJO78YCmXFkfN5LY7x0gOJwtijrOcXD8Sl0GJCOyrk,1352
20
- nominal_api/persistent_compute_api/__init__.py,sha256=9X56Ar01aw8PUC7rVVZ2A9Vny0QIXaJPWJtjjCY4IWg,1912
20
+ nominal_api/persistent_compute_api/__init__.py,sha256=OTn2mzP57Bq4MOItkXMockPrDZmHvp6wisuZHcy2K90,1973
21
21
  nominal_api/scout/__init__.py,sha256=ip3XK_9jJKAoFiCifUVMTpDMiUE4mWIdGzMDu7LASus,324
22
22
  nominal_api/scout_api/__init__.py,sha256=biO4DEygbGcLwM6Dg2VuvMra3A5EW6NBjukbIemXoG8,178
23
23
  nominal_api/scout_asset_api/__init__.py,sha256=Ph-KlW-ki0JRejYQZDvbZ2jRzNAttVBux27lcEj7--Q,1910
@@ -73,7 +73,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
73
73
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
74
74
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
75
75
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
76
- nominal_api-0.627.0.dist-info/METADATA,sha256=6nzCaB0qCgjq-famIqm8i1200wQmA2MrLAc4vGNaBpg,199
77
- nominal_api-0.627.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
78
- nominal_api-0.627.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
79
- nominal_api-0.627.0.dist-info/RECORD,,
76
+ nominal_api-0.629.0.dist-info/METADATA,sha256=gHiwHkF5uFu_tuaZ2wXcwzjfKv99240XYekQHg8HNcU,199
77
+ nominal_api-0.629.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
78
+ nominal_api-0.629.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
79
+ nominal_api-0.629.0.dist-info/RECORD,,