nominal-api 0.852.0__py3-none-any.whl → 0.853.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.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +25 -2
- {nominal_api-0.852.0.dist-info → nominal_api-0.853.0.dist-info}/METADATA +1 -1
- {nominal_api-0.852.0.dist-info → nominal_api-0.853.0.dist-info}/RECORD +6 -6
- {nominal_api-0.852.0.dist-info → nominal_api-0.853.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.852.0.dist-info → nominal_api-0.853.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
@@ -72388,6 +72388,7 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72388
72388
|
_notebook: Optional[str] = None
|
72389
72389
|
_notebook_template: Optional[str] = None
|
72390
72390
|
_checklist: Optional[str] = None
|
72391
|
+
_saved_view: Optional[str] = None
|
72391
72392
|
|
72392
72393
|
@builtins.classmethod
|
72393
72394
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
@@ -72396,7 +72397,8 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72396
72397
|
'run': ConjureFieldDefinition('run', scout_run_api_RunRid),
|
72397
72398
|
'notebook': ConjureFieldDefinition('notebook', scout_rids_api_NotebookRid),
|
72398
72399
|
'notebook_template': ConjureFieldDefinition('notebookTemplate', scout_rids_api_TemplateRid),
|
72399
|
-
'checklist': ConjureFieldDefinition('checklist', scout_rids_api_ChecklistRid)
|
72400
|
+
'checklist': ConjureFieldDefinition('checklist', scout_rids_api_ChecklistRid),
|
72401
|
+
'saved_view': ConjureFieldDefinition('savedView', scout_rids_api_SavedViewRid)
|
72400
72402
|
}
|
72401
72403
|
|
72402
72404
|
def __init__(
|
@@ -72406,10 +72408,11 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72406
72408
|
notebook: Optional[str] = None,
|
72407
72409
|
notebook_template: Optional[str] = None,
|
72408
72410
|
checklist: Optional[str] = None,
|
72411
|
+
saved_view: Optional[str] = None,
|
72409
72412
|
type_of_union: Optional[str] = None
|
72410
72413
|
) -> None:
|
72411
72414
|
if type_of_union is None:
|
72412
|
-
if (asset is not None) + (run is not None) + (notebook is not None) + (notebook_template is not None) + (checklist is not None) != 1:
|
72415
|
+
if (asset is not None) + (run is not None) + (notebook is not None) + (notebook_template is not None) + (checklist is not None) + (saved_view is not None) != 1:
|
72413
72416
|
raise ValueError('a union must contain a single member')
|
72414
72417
|
|
72415
72418
|
if asset is not None:
|
@@ -72427,6 +72430,9 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72427
72430
|
if checklist is not None:
|
72428
72431
|
self._checklist = checklist
|
72429
72432
|
self._type = 'checklist'
|
72433
|
+
if saved_view is not None:
|
72434
|
+
self._saved_view = saved_view
|
72435
|
+
self._type = 'savedView'
|
72430
72436
|
|
72431
72437
|
elif type_of_union == 'asset':
|
72432
72438
|
if asset is None:
|
@@ -72453,6 +72459,11 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72453
72459
|
raise ValueError('a union value must not be None')
|
72454
72460
|
self._checklist = checklist
|
72455
72461
|
self._type = 'checklist'
|
72462
|
+
elif type_of_union == 'savedView':
|
72463
|
+
if saved_view is None:
|
72464
|
+
raise ValueError('a union value must not be None')
|
72465
|
+
self._saved_view = saved_view
|
72466
|
+
self._type = 'savedView'
|
72456
72467
|
|
72457
72468
|
@builtins.property
|
72458
72469
|
def asset(self) -> Optional[str]:
|
@@ -72474,6 +72485,10 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72474
72485
|
def checklist(self) -> Optional[str]:
|
72475
72486
|
return self._checklist
|
72476
72487
|
|
72488
|
+
@builtins.property
|
72489
|
+
def saved_view(self) -> Optional[str]:
|
72490
|
+
return self._saved_view
|
72491
|
+
|
72477
72492
|
def accept(self, visitor) -> Any:
|
72478
72493
|
if not isinstance(visitor, scout_favorites_api_FavoriteResourceVisitor):
|
72479
72494
|
raise ValueError('{} is not an instance of scout_favorites_api_FavoriteResourceVisitor'.format(visitor.__class__.__name__))
|
@@ -72487,6 +72502,8 @@ class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
72487
72502
|
return visitor._notebook_template(self.notebook_template)
|
72488
72503
|
if self._type == 'checklist' and self.checklist is not None:
|
72489
72504
|
return visitor._checklist(self.checklist)
|
72505
|
+
if self._type == 'savedView' and self.saved_view is not None:
|
72506
|
+
return visitor._saved_view(self.saved_view)
|
72490
72507
|
|
72491
72508
|
|
72492
72509
|
scout_favorites_api_FavoriteResource.__name__ = "FavoriteResource"
|
@@ -72516,6 +72533,10 @@ class scout_favorites_api_FavoriteResourceVisitor:
|
|
72516
72533
|
def _checklist(self, checklist: str) -> Any:
|
72517
72534
|
pass
|
72518
72535
|
|
72536
|
+
@abstractmethod
|
72537
|
+
def _saved_view(self, saved_view: str) -> Any:
|
72538
|
+
pass
|
72539
|
+
|
72519
72540
|
|
72520
72541
|
scout_favorites_api_FavoriteResourceVisitor.__name__ = "FavoriteResourceVisitor"
|
72521
72542
|
scout_favorites_api_FavoriteResourceVisitor.__qualname__ = "FavoriteResourceVisitor"
|
@@ -72557,6 +72578,8 @@ class scout_favorites_api_ResourceType(ConjureEnumType):
|
|
72557
72578
|
'''NOTEBOOK_TEMPLATE'''
|
72558
72579
|
CHECKLIST = 'CHECKLIST'
|
72559
72580
|
'''CHECKLIST'''
|
72581
|
+
SAVED_VIEW = 'SAVED_VIEW'
|
72582
|
+
'''SAVED_VIEW'''
|
72560
72583
|
UNKNOWN = 'UNKNOWN'
|
72561
72584
|
'''UNKNOWN'''
|
72562
72585
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
2
|
-
nominal_api/_impl.py,sha256=
|
1
|
+
nominal_api/__init__.py,sha256=qhqTUUFKQ_8FM70D2_jvyQsyYGVcuHNQWfTBCseF7zU,2064
|
2
|
+
nominal_api/_impl.py,sha256=NTXTP80X8Jk-qIPH-m6nebX4kOJpE4ub7rWynOwRpxg,3704879
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
4
4
|
nominal_api/api/__init__.py,sha256=ZiGjcYwIBCrZR5pPqyqX2ggRJmVcSlOCazMtF2xCZzw,2171
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
|
@@ -77,7 +77,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=lDuOWyLpdVBI9aoN6ujw
|
|
77
77
|
nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
|
78
78
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
|
79
79
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
80
|
-
nominal_api-0.
|
81
|
-
nominal_api-0.
|
82
|
-
nominal_api-0.
|
83
|
-
nominal_api-0.
|
80
|
+
nominal_api-0.853.0.dist-info/METADATA,sha256=taz1AfP5c7KTM-zAhWTDitgMEZLd_4-Aq_H6IyXa1tA,199
|
81
|
+
nominal_api-0.853.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
82
|
+
nominal_api-0.853.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
83
|
+
nominal_api-0.853.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|