nominal-api 0.665.1__py3-none-any.whl → 0.666.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 +1 -1
- nominal_api/_impl.py +168 -6
- nominal_api/scout_run_api/__init__.py +3 -0
- {nominal_api-0.665.1.dist-info → nominal_api-0.666.0.dist-info}/METADATA +1 -1
- {nominal_api-0.665.1.dist-info → nominal_api-0.666.0.dist-info}/RECORD +7 -7
- {nominal_api-0.665.1.dist-info → nominal_api-0.666.0.dist-info}/WHEEL +1 -1
- {nominal_api-0.665.1.dist-info → nominal_api-0.666.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -17639,6 +17639,7 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17639
17639
|
_and_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None
|
|
17640
17640
|
_or_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None
|
|
17641
17641
|
_workspace: Optional[str] = None
|
|
17642
|
+
_configured_datasource: Optional[str] = None
|
|
17642
17643
|
|
|
17643
17644
|
@builtins.classmethod
|
|
17644
17645
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -17647,7 +17648,8 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17647
17648
|
'property': ConjureFieldDefinition('property', api_PropertyName),
|
|
17648
17649
|
'and_': ConjureFieldDefinition('and', List[scout_asset_api_SearchTypesQuery]),
|
|
17649
17650
|
'or_': ConjureFieldDefinition('or', List[scout_asset_api_SearchTypesQuery]),
|
|
17650
|
-
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
|
|
17651
|
+
'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid),
|
|
17652
|
+
'configured_datasource': ConjureFieldDefinition('configuredDatasource', api_rids_DataSourceRid)
|
|
17651
17653
|
}
|
|
17652
17654
|
|
|
17653
17655
|
def __init__(
|
|
@@ -17657,10 +17659,11 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17657
17659
|
and_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None,
|
|
17658
17660
|
or_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None,
|
|
17659
17661
|
workspace: Optional[str] = None,
|
|
17662
|
+
configured_datasource: Optional[str] = None,
|
|
17660
17663
|
type_of_union: Optional[str] = None
|
|
17661
17664
|
) -> None:
|
|
17662
17665
|
if type_of_union is None:
|
|
17663
|
-
if (search_text is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
17666
|
+
if (search_text is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) + (configured_datasource is not None) != 1:
|
|
17664
17667
|
raise ValueError('a union must contain a single member')
|
|
17665
17668
|
|
|
17666
17669
|
if search_text is not None:
|
|
@@ -17678,6 +17681,9 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17678
17681
|
if workspace is not None:
|
|
17679
17682
|
self._workspace = workspace
|
|
17680
17683
|
self._type = 'workspace'
|
|
17684
|
+
if configured_datasource is not None:
|
|
17685
|
+
self._configured_datasource = configured_datasource
|
|
17686
|
+
self._type = 'configuredDatasource'
|
|
17681
17687
|
|
|
17682
17688
|
elif type_of_union == 'searchText':
|
|
17683
17689
|
if search_text is None:
|
|
@@ -17704,6 +17710,11 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17704
17710
|
raise ValueError('a union value must not be None')
|
|
17705
17711
|
self._workspace = workspace
|
|
17706
17712
|
self._type = 'workspace'
|
|
17713
|
+
elif type_of_union == 'configuredDatasource':
|
|
17714
|
+
if configured_datasource is None:
|
|
17715
|
+
raise ValueError('a union value must not be None')
|
|
17716
|
+
self._configured_datasource = configured_datasource
|
|
17717
|
+
self._type = 'configuredDatasource'
|
|
17707
17718
|
|
|
17708
17719
|
@builtins.property
|
|
17709
17720
|
def search_text(self) -> Optional[str]:
|
|
@@ -17725,6 +17736,10 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17725
17736
|
def workspace(self) -> Optional[str]:
|
|
17726
17737
|
return self._workspace
|
|
17727
17738
|
|
|
17739
|
+
@builtins.property
|
|
17740
|
+
def configured_datasource(self) -> Optional[str]:
|
|
17741
|
+
return self._configured_datasource
|
|
17742
|
+
|
|
17728
17743
|
def accept(self, visitor) -> Any:
|
|
17729
17744
|
if not isinstance(visitor, scout_asset_api_SearchTypesQueryVisitor):
|
|
17730
17745
|
raise ValueError('{} is not an instance of scout_asset_api_SearchTypesQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -17738,6 +17753,8 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
17738
17753
|
return visitor._or(self.or_)
|
|
17739
17754
|
if self._type == 'workspace' and self.workspace is not None:
|
|
17740
17755
|
return visitor._workspace(self.workspace)
|
|
17756
|
+
if self._type == 'configuredDatasource' and self.configured_datasource is not None:
|
|
17757
|
+
return visitor._configured_datasource(self.configured_datasource)
|
|
17741
17758
|
|
|
17742
17759
|
|
|
17743
17760
|
scout_asset_api_SearchTypesQuery.__name__ = "SearchTypesQuery"
|
|
@@ -17767,6 +17784,10 @@ class scout_asset_api_SearchTypesQueryVisitor:
|
|
|
17767
17784
|
def _workspace(self, workspace: str) -> Any:
|
|
17768
17785
|
pass
|
|
17769
17786
|
|
|
17787
|
+
@abstractmethod
|
|
17788
|
+
def _configured_datasource(self, configured_datasource: str) -> Any:
|
|
17789
|
+
pass
|
|
17790
|
+
|
|
17770
17791
|
|
|
17771
17792
|
scout_asset_api_SearchTypesQueryVisitor.__name__ = "SearchTypesQueryVisitor"
|
|
17772
17793
|
scout_asset_api_SearchTypesQueryVisitor.__qualname__ = "SearchTypesQueryVisitor"
|
|
@@ -18683,6 +18704,35 @@ workbooks.
|
|
|
18683
18704
|
_decoder = ConjureDecoder()
|
|
18684
18705
|
return _decoder.decode(_response.json(), Dict[scout_rids_api_TypeRid, scout_asset_api_Type], self._return_none_for_unknown_union_types)
|
|
18685
18706
|
|
|
18707
|
+
def get_types_for_datasource(self, auth_header: str, datasource_rid: str) -> List["scout_asset_api_Type"]:
|
|
18708
|
+
|
|
18709
|
+
_headers: Dict[str, Any] = {
|
|
18710
|
+
'Accept': 'application/json',
|
|
18711
|
+
'Content-Type': 'application/json',
|
|
18712
|
+
'Authorization': auth_header,
|
|
18713
|
+
}
|
|
18714
|
+
|
|
18715
|
+
_params: Dict[str, Any] = {
|
|
18716
|
+
}
|
|
18717
|
+
|
|
18718
|
+
_path_params: Dict[str, Any] = {
|
|
18719
|
+
}
|
|
18720
|
+
|
|
18721
|
+
_json: Any = ConjureEncoder().default(datasource_rid)
|
|
18722
|
+
|
|
18723
|
+
_path = '/scout/v1/type/datasource'
|
|
18724
|
+
_path = _path.format(**_path_params)
|
|
18725
|
+
|
|
18726
|
+
_response: Response = self._request(
|
|
18727
|
+
'POST',
|
|
18728
|
+
self._uri + _path,
|
|
18729
|
+
params=_params,
|
|
18730
|
+
headers=_headers,
|
|
18731
|
+
json=_json)
|
|
18732
|
+
|
|
18733
|
+
_decoder = ConjureDecoder()
|
|
18734
|
+
return _decoder.decode(_response.json(), List[scout_asset_api_Type], self._return_none_for_unknown_union_types)
|
|
18735
|
+
|
|
18686
18736
|
def delete_type(self, auth_header: str, rid: str) -> None:
|
|
18687
18737
|
"""
|
|
18688
18738
|
Deletes a type. The type must not be referenced by any assets.
|
|
@@ -68383,35 +68433,147 @@ scout_run_api_SortField.__qualname__ = "SortField"
|
|
|
68383
68433
|
scout_run_api_SortField.__module__ = "nominal_api.scout_run_api"
|
|
68384
68434
|
|
|
68385
68435
|
|
|
68436
|
+
class scout_run_api_SortKey(ConjureUnionType):
|
|
68437
|
+
_field: Optional["scout_run_api_SortField"] = None
|
|
68438
|
+
_property: Optional["scout_run_api_SortProperty"] = None
|
|
68439
|
+
|
|
68440
|
+
@builtins.classmethod
|
|
68441
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
68442
|
+
return {
|
|
68443
|
+
'field': ConjureFieldDefinition('field', scout_run_api_SortField),
|
|
68444
|
+
'property': ConjureFieldDefinition('property', scout_run_api_SortProperty)
|
|
68445
|
+
}
|
|
68446
|
+
|
|
68447
|
+
def __init__(
|
|
68448
|
+
self,
|
|
68449
|
+
field: Optional["scout_run_api_SortField"] = None,
|
|
68450
|
+
property: Optional["scout_run_api_SortProperty"] = None,
|
|
68451
|
+
type_of_union: Optional[str] = None
|
|
68452
|
+
) -> None:
|
|
68453
|
+
if type_of_union is None:
|
|
68454
|
+
if (field is not None) + (property is not None) != 1:
|
|
68455
|
+
raise ValueError('a union must contain a single member')
|
|
68456
|
+
|
|
68457
|
+
if field is not None:
|
|
68458
|
+
self._field = field
|
|
68459
|
+
self._type = 'field'
|
|
68460
|
+
if property is not None:
|
|
68461
|
+
self._property = property
|
|
68462
|
+
self._type = 'property'
|
|
68463
|
+
|
|
68464
|
+
elif type_of_union == 'field':
|
|
68465
|
+
if field is None:
|
|
68466
|
+
raise ValueError('a union value must not be None')
|
|
68467
|
+
self._field = field
|
|
68468
|
+
self._type = 'field'
|
|
68469
|
+
elif type_of_union == 'property':
|
|
68470
|
+
if property is None:
|
|
68471
|
+
raise ValueError('a union value must not be None')
|
|
68472
|
+
self._property = property
|
|
68473
|
+
self._type = 'property'
|
|
68474
|
+
|
|
68475
|
+
@builtins.property
|
|
68476
|
+
def field(self) -> Optional["scout_run_api_SortField"]:
|
|
68477
|
+
return self._field
|
|
68478
|
+
|
|
68479
|
+
@builtins.property
|
|
68480
|
+
def property(self) -> Optional["scout_run_api_SortProperty"]:
|
|
68481
|
+
"""
|
|
68482
|
+
Sort by a property value. Requires a property name, and will always sort null values last.
|
|
68483
|
+
"""
|
|
68484
|
+
return self._property
|
|
68485
|
+
|
|
68486
|
+
def accept(self, visitor) -> Any:
|
|
68487
|
+
if not isinstance(visitor, scout_run_api_SortKeyVisitor):
|
|
68488
|
+
raise ValueError('{} is not an instance of scout_run_api_SortKeyVisitor'.format(visitor.__class__.__name__))
|
|
68489
|
+
if self._type == 'field' and self.field is not None:
|
|
68490
|
+
return visitor._field(self.field)
|
|
68491
|
+
if self._type == 'property' and self.property is not None:
|
|
68492
|
+
return visitor._property(self.property)
|
|
68493
|
+
|
|
68494
|
+
|
|
68495
|
+
scout_run_api_SortKey.__name__ = "SortKey"
|
|
68496
|
+
scout_run_api_SortKey.__qualname__ = "SortKey"
|
|
68497
|
+
scout_run_api_SortKey.__module__ = "nominal_api.scout_run_api"
|
|
68498
|
+
|
|
68499
|
+
|
|
68500
|
+
class scout_run_api_SortKeyVisitor:
|
|
68501
|
+
|
|
68502
|
+
@abstractmethod
|
|
68503
|
+
def _field(self, field: "scout_run_api_SortField") -> Any:
|
|
68504
|
+
pass
|
|
68505
|
+
|
|
68506
|
+
@abstractmethod
|
|
68507
|
+
def _property(self, property: "scout_run_api_SortProperty") -> Any:
|
|
68508
|
+
pass
|
|
68509
|
+
|
|
68510
|
+
|
|
68511
|
+
scout_run_api_SortKeyVisitor.__name__ = "SortKeyVisitor"
|
|
68512
|
+
scout_run_api_SortKeyVisitor.__qualname__ = "SortKeyVisitor"
|
|
68513
|
+
scout_run_api_SortKeyVisitor.__module__ = "nominal_api.scout_run_api"
|
|
68514
|
+
|
|
68515
|
+
|
|
68386
68516
|
class scout_run_api_SortOptions(ConjureBeanType):
|
|
68387
68517
|
|
|
68388
68518
|
@builtins.classmethod
|
|
68389
68519
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
68390
68520
|
return {
|
|
68391
68521
|
'is_descending': ConjureFieldDefinition('isDescending', bool),
|
|
68392
|
-
'field': ConjureFieldDefinition('field', scout_run_api_SortField)
|
|
68522
|
+
'field': ConjureFieldDefinition('field', OptionalTypeWrapper[scout_run_api_SortField]),
|
|
68523
|
+
'sort_key': ConjureFieldDefinition('sortKey', OptionalTypeWrapper[scout_run_api_SortKey])
|
|
68393
68524
|
}
|
|
68394
68525
|
|
|
68395
|
-
__slots__: List[str] = ['_is_descending', '_field']
|
|
68526
|
+
__slots__: List[str] = ['_is_descending', '_field', '_sort_key']
|
|
68396
68527
|
|
|
68397
|
-
def __init__(self, field: "scout_run_api_SortField",
|
|
68528
|
+
def __init__(self, is_descending: bool, field: Optional["scout_run_api_SortField"] = None, sort_key: Optional["scout_run_api_SortKey"] = None) -> None:
|
|
68398
68529
|
self._is_descending = is_descending
|
|
68399
68530
|
self._field = field
|
|
68531
|
+
self._sort_key = sort_key
|
|
68400
68532
|
|
|
68401
68533
|
@builtins.property
|
|
68402
68534
|
def is_descending(self) -> bool:
|
|
68403
68535
|
return self._is_descending
|
|
68404
68536
|
|
|
68405
68537
|
@builtins.property
|
|
68406
|
-
def field(self) -> "scout_run_api_SortField":
|
|
68538
|
+
def field(self) -> Optional["scout_run_api_SortField"]:
|
|
68407
68539
|
return self._field
|
|
68408
68540
|
|
|
68541
|
+
@builtins.property
|
|
68542
|
+
def sort_key(self) -> Optional["scout_run_api_SortKey"]:
|
|
68543
|
+
"""
|
|
68544
|
+
Field to sort by. Includes both field and property-based sorting.
|
|
68545
|
+
"""
|
|
68546
|
+
return self._sort_key
|
|
68547
|
+
|
|
68409
68548
|
|
|
68410
68549
|
scout_run_api_SortOptions.__name__ = "SortOptions"
|
|
68411
68550
|
scout_run_api_SortOptions.__qualname__ = "SortOptions"
|
|
68412
68551
|
scout_run_api_SortOptions.__module__ = "nominal_api.scout_run_api"
|
|
68413
68552
|
|
|
68414
68553
|
|
|
68554
|
+
class scout_run_api_SortProperty(ConjureBeanType):
|
|
68555
|
+
|
|
68556
|
+
@builtins.classmethod
|
|
68557
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
68558
|
+
return {
|
|
68559
|
+
'name': ConjureFieldDefinition('name', api_PropertyName)
|
|
68560
|
+
}
|
|
68561
|
+
|
|
68562
|
+
__slots__: List[str] = ['_name']
|
|
68563
|
+
|
|
68564
|
+
def __init__(self, name: str) -> None:
|
|
68565
|
+
self._name = name
|
|
68566
|
+
|
|
68567
|
+
@builtins.property
|
|
68568
|
+
def name(self) -> str:
|
|
68569
|
+
return self._name
|
|
68570
|
+
|
|
68571
|
+
|
|
68572
|
+
scout_run_api_SortProperty.__name__ = "SortProperty"
|
|
68573
|
+
scout_run_api_SortProperty.__qualname__ = "SortProperty"
|
|
68574
|
+
scout_run_api_SortProperty.__module__ = "nominal_api.scout_run_api"
|
|
68575
|
+
|
|
68576
|
+
|
|
68415
68577
|
class scout_run_api_Unit(ConjureBeanType):
|
|
68416
68578
|
|
|
68417
68579
|
@builtins.classmethod
|
|
@@ -37,7 +37,10 @@ from .._impl import (
|
|
|
37
37
|
scout_run_api_SearchRunsWithDataReviewMetricsResponse as SearchRunsWithDataReviewMetricsResponse,
|
|
38
38
|
scout_run_api_SearchRunsWithDataReviewSummaryResponse as SearchRunsWithDataReviewSummaryResponse,
|
|
39
39
|
scout_run_api_SortField as SortField,
|
|
40
|
+
scout_run_api_SortKey as SortKey,
|
|
41
|
+
scout_run_api_SortKeyVisitor as SortKeyVisitor,
|
|
40
42
|
scout_run_api_SortOptions as SortOptions,
|
|
43
|
+
scout_run_api_SortProperty as SortProperty,
|
|
41
44
|
scout_run_api_Unit as Unit,
|
|
42
45
|
scout_run_api_UpdateAttachmentsRequest as UpdateAttachmentsRequest,
|
|
43
46
|
scout_run_api_UpdateRunRequest as UpdateRunRequest,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=yHBm53UlX465QtwUQYZumHbwZBSFRs6X8G9niuW8JmA,1955
|
|
2
|
+
nominal_api/_impl.py,sha256=AwNuNgCRuzBRZJp02S137xX57mr1V6FGN5UpQTaKDG4,3147682
|
|
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
|
|
@@ -49,7 +49,7 @@ nominal_api/scout_metadata/__init__.py,sha256=GIhWKJL2XSMB0iGaKfcGgmPHuvGWWmkK4l
|
|
|
49
49
|
nominal_api/scout_notebook_api/__init__.py,sha256=TW4_Y2DbakA13v3q_vmRSN8gaS8g0UYRREVKruujJc0,1299
|
|
50
50
|
nominal_api/scout_plotting/__init__.py,sha256=m6u3y7R70mo3ugaCp_-fwlS8_tDwrsq1l5ElOTY0TBc,91
|
|
51
51
|
nominal_api/scout_rids_api/__init__.py,sha256=zAioy5BpuLLgZQpF-11wWUEhntcHNj6sK5YzNC5z-3w,1188
|
|
52
|
-
nominal_api/scout_run_api/__init__.py,sha256=
|
|
52
|
+
nominal_api/scout_run_api/__init__.py,sha256=WvKLFyNGRx8nXDo4kw5yopEvmRREinIT-jhjo5_pY-w,2734
|
|
53
53
|
nominal_api/scout_template_api/__init__.py,sha256=twrd03oixkoGnRn_xpXywTcdq2tvMD1PLxSrMPdwz9c,1106
|
|
54
54
|
nominal_api/scout_units_api/__init__.py,sha256=KxRDScfumX__0ncWJftGvgApn_LBTfnIBAvnaBrcA5A,368
|
|
55
55
|
nominal_api/scout_versioning_api/__init__.py,sha256=Sf4T4t0rZXNRIZgkqLBN3yh0sAnrxiuzaTfDQVVkyO4,1323
|
|
@@ -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.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.666.0.dist-info/METADATA,sha256=0L2Ajlnjj3eelErDndhDN-rmttmvLTCpiFAOWsmfK04,199
|
|
76
|
+
nominal_api-0.666.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
77
|
+
nominal_api-0.666.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.666.0.dist-info/RECORD,,
|
|
File without changes
|