nominal-api 0.596.1__py3-none-any.whl → 0.597.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.596.1"
78
+ __version__ = "0.597.0"
79
79
 
nominal_api/_impl.py CHANGED
@@ -5441,19 +5441,21 @@ class event_CreateEvent(ConjureBeanType):
5441
5441
  'timestamp': ConjureFieldDefinition('timestamp', api_Timestamp),
5442
5442
  'duration': ConjureFieldDefinition('duration', scout_run_api_Duration),
5443
5443
  'name': ConjureFieldDefinition('name', str),
5444
+ 'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
5444
5445
  'type': ConjureFieldDefinition('type', event_EventType),
5445
5446
  'labels': ConjureFieldDefinition('labels', List[api_Label]),
5446
5447
  'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue])
5447
5448
  }
5448
5449
 
5449
- __slots__: List[str] = ['_asset_rids', '_origins', '_timestamp', '_duration', '_name', '_type', '_labels', '_properties']
5450
+ __slots__: List[str] = ['_asset_rids', '_origins', '_timestamp', '_duration', '_name', '_description', '_type', '_labels', '_properties']
5450
5451
 
5451
- def __init__(self, asset_rids: List[str], duration: "scout_run_api_Duration", labels: List[str], name: str, origins: List["event_EventOrigin"], properties: Dict[str, str], timestamp: "api_Timestamp", type: "event_EventType") -> None:
5452
+ def __init__(self, asset_rids: List[str], duration: "scout_run_api_Duration", labels: List[str], name: str, origins: List["event_EventOrigin"], properties: Dict[str, str], timestamp: "api_Timestamp", type: "event_EventType", description: Optional[str] = None) -> None:
5452
5453
  self._asset_rids = asset_rids
5453
5454
  self._origins = origins
5454
5455
  self._timestamp = timestamp
5455
5456
  self._duration = duration
5456
5457
  self._name = name
5458
+ self._description = description
5457
5459
  self._type = type
5458
5460
  self._labels = labels
5459
5461
  self._properties = properties
@@ -5484,6 +5486,13 @@ class event_CreateEvent(ConjureBeanType):
5484
5486
  def name(self) -> str:
5485
5487
  return self._name
5486
5488
 
5489
+ @builtins.property
5490
+ def description(self) -> Optional[str]:
5491
+ """
5492
+ If not provided, will default to an empty string.
5493
+ """
5494
+ return self._description
5495
+
5487
5496
  @builtins.property
5488
5497
  def type(self) -> "event_EventType":
5489
5498
  return self._type
@@ -5513,6 +5522,7 @@ class event_Event(ConjureBeanType):
5513
5522
  'timestamp': ConjureFieldDefinition('timestamp', api_Timestamp),
5514
5523
  'duration': ConjureFieldDefinition('duration', scout_run_api_Duration),
5515
5524
  'name': ConjureFieldDefinition('name', str),
5525
+ 'description': ConjureFieldDefinition('description', str),
5516
5526
  'type': ConjureFieldDefinition('type', event_EventType),
5517
5527
  'labels': ConjureFieldDefinition('labels', List[api_Label]),
5518
5528
  'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
@@ -5520,15 +5530,16 @@ class event_Event(ConjureBeanType):
5520
5530
  'created_by': ConjureFieldDefinition('createdBy', OptionalTypeWrapper[scout_rids_api_UserRid])
5521
5531
  }
5522
5532
 
5523
- __slots__: List[str] = ['_uuid', '_asset_rids', '_origins', '_timestamp', '_duration', '_name', '_type', '_labels', '_properties', '_is_archived', '_created_by']
5533
+ __slots__: List[str] = ['_uuid', '_asset_rids', '_origins', '_timestamp', '_duration', '_name', '_description', '_type', '_labels', '_properties', '_is_archived', '_created_by']
5524
5534
 
5525
- def __init__(self, asset_rids: List[str], duration: "scout_run_api_Duration", is_archived: bool, labels: List[str], name: str, origins: List["event_EventOrigin"], properties: Dict[str, str], timestamp: "api_Timestamp", type: "event_EventType", uuid: str, created_by: Optional[str] = None) -> None:
5535
+ def __init__(self, asset_rids: List[str], description: str, duration: "scout_run_api_Duration", is_archived: bool, labels: List[str], name: str, origins: List["event_EventOrigin"], properties: Dict[str, str], timestamp: "api_Timestamp", type: "event_EventType", uuid: str, created_by: Optional[str] = None) -> None:
5526
5536
  self._uuid = uuid
5527
5537
  self._asset_rids = asset_rids
5528
5538
  self._origins = origins
5529
5539
  self._timestamp = timestamp
5530
5540
  self._duration = duration
5531
5541
  self._name = name
5542
+ self._description = description
5532
5543
  self._type = type
5533
5544
  self._labels = labels
5534
5545
  self._properties = properties
@@ -5570,6 +5581,10 @@ associated assets. Thus an event RID would not identify a valid authorized resou
5570
5581
  def name(self) -> str:
5571
5582
  return self._name
5572
5583
 
5584
+ @builtins.property
5585
+ def description(self) -> str:
5586
+ return self._description
5587
+
5573
5588
  @builtins.property
5574
5589
  def type(self) -> "event_EventType":
5575
5590
  return self._type
@@ -6314,19 +6329,21 @@ class event_UpdateEvent(ConjureBeanType):
6314
6329
  'timestamp': ConjureFieldDefinition('timestamp', OptionalTypeWrapper[api_Timestamp]),
6315
6330
  'duration': ConjureFieldDefinition('duration', OptionalTypeWrapper[scout_run_api_Duration]),
6316
6331
  'name': ConjureFieldDefinition('name', OptionalTypeWrapper[str]),
6332
+ 'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
6317
6333
  'type': ConjureFieldDefinition('type', OptionalTypeWrapper[event_EventType]),
6318
6334
  'labels': ConjureFieldDefinition('labels', OptionalTypeWrapper[List[api_Label]]),
6319
6335
  'properties': ConjureFieldDefinition('properties', OptionalTypeWrapper[Dict[api_PropertyName, api_PropertyValue]])
6320
6336
  }
6321
6337
 
6322
- __slots__: List[str] = ['_uuid', '_asset_rids', '_timestamp', '_duration', '_name', '_type', '_labels', '_properties']
6338
+ __slots__: List[str] = ['_uuid', '_asset_rids', '_timestamp', '_duration', '_name', '_description', '_type', '_labels', '_properties']
6323
6339
 
6324
- def __init__(self, uuid: str, asset_rids: Optional[List[str]] = None, duration: Optional["scout_run_api_Duration"] = None, labels: Optional[List[str]] = None, name: Optional[str] = None, properties: Optional[Dict[str, str]] = None, timestamp: Optional["api_Timestamp"] = None, type: Optional["event_EventType"] = None) -> None:
6340
+ def __init__(self, uuid: str, asset_rids: Optional[List[str]] = None, description: Optional[str] = None, duration: Optional["scout_run_api_Duration"] = None, labels: Optional[List[str]] = None, name: Optional[str] = None, properties: Optional[Dict[str, str]] = None, timestamp: Optional["api_Timestamp"] = None, type: Optional["event_EventType"] = None) -> None:
6325
6341
  self._uuid = uuid
6326
6342
  self._asset_rids = asset_rids
6327
6343
  self._timestamp = timestamp
6328
6344
  self._duration = duration
6329
6345
  self._name = name
6346
+ self._description = description
6330
6347
  self._type = type
6331
6348
  self._labels = labels
6332
6349
  self._properties = properties
@@ -6355,6 +6372,10 @@ If provided, must contain at least one asset rid.
6355
6372
  def name(self) -> Optional[str]:
6356
6373
  return self._name
6357
6374
 
6375
+ @builtins.property
6376
+ def description(self) -> Optional[str]:
6377
+ return self._description
6378
+
6358
6379
  @builtins.property
6359
6380
  def type(self) -> Optional["event_EventType"]:
6360
6381
  return self._type
@@ -10153,12 +10174,12 @@ class persistent_compute_api_FullResult(ConjureBeanType):
10153
10174
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
10154
10175
  return {
10155
10176
  'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
10156
- 'result': ConjureFieldDefinition('result', scout_compute_api_ComputeWithUnitsResult)
10177
+ 'result': ConjureFieldDefinition('result', scout_compute_api_ComputeWithUnitsResponse)
10157
10178
  }
10158
10179
 
10159
10180
  __slots__: List[str] = ['_subscription_id', '_result']
10160
10181
 
10161
- def __init__(self, result: "scout_compute_api_ComputeWithUnitsResult", subscription_id: str) -> None:
10182
+ def __init__(self, result: "scout_compute_api_ComputeWithUnitsResponse", subscription_id: str) -> None:
10162
10183
  self._subscription_id = subscription_id
10163
10184
  self._result = result
10164
10185
 
@@ -10167,7 +10188,7 @@ class persistent_compute_api_FullResult(ConjureBeanType):
10167
10188
  return self._subscription_id
10168
10189
 
10169
10190
  @builtins.property
10170
- def result(self) -> "scout_compute_api_ComputeWithUnitsResult":
10191
+ def result(self) -> "scout_compute_api_ComputeWithUnitsResponse":
10171
10192
  return self._result
10172
10193
 
10173
10194
 
@@ -10323,8 +10344,9 @@ persistent_compute_api_StreamingComputeNodeSubscription.__module__ = "nominal_ap
10323
10344
 
10324
10345
  class persistent_compute_api_SubscriptionError(ConjureBeanType):
10325
10346
  """
10326
- This will be sent if there is an error creating a subscription specified in `ClientMessage::subscribe`.
10327
- Equivalent to throwing a 400 in a REST endpoint.
10347
+ This will be sent if there is an error while creating or updating a subscription. Note: This won't
10348
+ automatically cancel the subscription. The client will have to call `ClientMessage::unsubscribe` to do that
10349
+ if warranted.
10328
10350
  """
10329
10351
 
10330
10352
  @builtins.classmethod
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.596.1
3
+ Version: 0.597.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=KsL8mfnlOjuyoxECocOHpFwZbxNAzFqAq3M24KD4YOY,1968
2
- nominal_api/_impl.py,sha256=1fVkPMCKHsGTcuZIuZewuo-aDn_jmnX73Bt5h8NMEQc,2860814
1
+ nominal_api/__init__.py,sha256=wRpSi2TkyBVWtGA-zVdsCZT1kfqNjf74O0wNMD5nUAw,1968
2
+ nominal_api/_impl.py,sha256=OUISjYiUd6XHLo10aMI9Sr4ZTSwj0X3A4xSODsT8HW8,2861775
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
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
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.596.1.dist-info/METADATA,sha256=er0GVrkG1KsZKdf-uKA_17FZNmpYKz8mHsmG6AFadXo,199
76
- nominal_api-0.596.1.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
77
- nominal_api-0.596.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
- nominal_api-0.596.1.dist-info/RECORD,,
75
+ nominal_api-0.597.0.dist-info/METADATA,sha256=aQHe3qXEZT2iZYrNg29lleIztMlh1curZKGwMNbrS24,199
76
+ nominal_api-0.597.0.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
77
+ nominal_api-0.597.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
+ nominal_api-0.597.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.1.0)
2
+ Generator: setuptools (77.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5