nominal-api 0.649.0__py3-none-any.whl → 0.650.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 -2
- nominal_api/_impl.py +129 -929
- {nominal_api-0.649.0.dist-info → nominal_api-0.650.0.dist-info}/METADATA +1 -1
- {nominal_api-0.649.0.dist-info → nominal_api-0.650.0.dist-info}/RECORD +6 -7
- nominal_api/scout_compute_representation_api/__init__.py +0 -22
- {nominal_api-0.649.0.dist-info → nominal_api-0.650.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.649.0.dist-info → nominal_api-0.650.0.dist-info}/top_level.txt +0 -0
nominal_api/_impl.py
CHANGED
|
@@ -34458,21 +34458,21 @@ scout_compute_api_ComputeNodeRequest.__module__ = "nominal_api.scout_compute_api
|
|
|
34458
34458
|
|
|
34459
34459
|
|
|
34460
34460
|
class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
34461
|
-
_numeric: Optional["scout_compute_api_NumericPlot"] = None
|
|
34462
|
-
_bucketed_numeric: Optional["scout_compute_api_BucketedNumericPlot"] = None
|
|
34463
34461
|
_range: Optional[List["scout_compute_api_Range"]] = None
|
|
34464
34462
|
_ranges_summary: Optional["scout_compute_api_RangesSummary"] = None
|
|
34463
|
+
_range_value: Optional[Optional["scout_compute_api_Range"]] = None
|
|
34464
|
+
_numeric: Optional["scout_compute_api_NumericPlot"] = None
|
|
34465
|
+
_bucketed_numeric: Optional["scout_compute_api_BucketedNumericPlot"] = None
|
|
34466
|
+
_numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None
|
|
34465
34467
|
_enum: Optional["scout_compute_api_EnumPlot"] = None
|
|
34466
|
-
|
|
34468
|
+
_enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None
|
|
34467
34469
|
_bucketed_enum: Optional["scout_compute_api_BucketedEnumPlot"] = None
|
|
34470
|
+
_paged_log: Optional["scout_compute_api_PagedLogPlot"] = None
|
|
34471
|
+
_log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None
|
|
34468
34472
|
_cartesian: Optional["scout_compute_api_CartesianPlot"] = None
|
|
34469
34473
|
_bucketed_cartesian: Optional["scout_compute_api_BucketedCartesianPlot"] = None
|
|
34470
34474
|
_bucketed_cartesian3d: Optional["scout_compute_api_BucketedCartesian3dPlot"] = None
|
|
34471
34475
|
_bucketed_geo: Optional["scout_compute_api_BucketedGeoPlot"] = None
|
|
34472
|
-
_enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None
|
|
34473
|
-
_numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None
|
|
34474
|
-
_log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None
|
|
34475
|
-
_range_value: Optional[Optional["scout_compute_api_Range"]] = None
|
|
34476
34476
|
_frequency_domain: Optional["scout_compute_api_FrequencyDomainPlot"] = None
|
|
34477
34477
|
_numeric_histogram: Optional["scout_compute_api_NumericHistogramPlot"] = None
|
|
34478
34478
|
_enum_histogram: Optional["scout_compute_api_EnumHistogramPlot"] = None
|
|
@@ -34481,21 +34481,21 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34481
34481
|
@builtins.classmethod
|
|
34482
34482
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
34483
34483
|
return {
|
|
34484
|
-
'numeric': ConjureFieldDefinition('numeric', scout_compute_api_NumericPlot),
|
|
34485
|
-
'bucketed_numeric': ConjureFieldDefinition('bucketedNumeric', scout_compute_api_BucketedNumericPlot),
|
|
34486
34484
|
'range': ConjureFieldDefinition('range', List[scout_compute_api_Range]),
|
|
34487
34485
|
'ranges_summary': ConjureFieldDefinition('rangesSummary', scout_compute_api_RangesSummary),
|
|
34486
|
+
'range_value': ConjureFieldDefinition('rangeValue', OptionalTypeWrapper[scout_compute_api_Range]),
|
|
34487
|
+
'numeric': ConjureFieldDefinition('numeric', scout_compute_api_NumericPlot),
|
|
34488
|
+
'bucketed_numeric': ConjureFieldDefinition('bucketedNumeric', scout_compute_api_BucketedNumericPlot),
|
|
34489
|
+
'numeric_point': ConjureFieldDefinition('numericPoint', OptionalTypeWrapper[scout_compute_api_NumericPoint]),
|
|
34488
34490
|
'enum': ConjureFieldDefinition('enum', scout_compute_api_EnumPlot),
|
|
34489
|
-
'
|
|
34491
|
+
'enum_point': ConjureFieldDefinition('enumPoint', OptionalTypeWrapper[scout_compute_api_EnumPoint]),
|
|
34490
34492
|
'bucketed_enum': ConjureFieldDefinition('bucketedEnum', scout_compute_api_BucketedEnumPlot),
|
|
34493
|
+
'paged_log': ConjureFieldDefinition('pagedLog', scout_compute_api_PagedLogPlot),
|
|
34494
|
+
'log_point': ConjureFieldDefinition('logPoint', OptionalTypeWrapper[scout_compute_api_LogPoint]),
|
|
34491
34495
|
'cartesian': ConjureFieldDefinition('cartesian', scout_compute_api_CartesianPlot),
|
|
34492
34496
|
'bucketed_cartesian': ConjureFieldDefinition('bucketedCartesian', scout_compute_api_BucketedCartesianPlot),
|
|
34493
34497
|
'bucketed_cartesian3d': ConjureFieldDefinition('bucketedCartesian3d', scout_compute_api_BucketedCartesian3dPlot),
|
|
34494
34498
|
'bucketed_geo': ConjureFieldDefinition('bucketedGeo', scout_compute_api_BucketedGeoPlot),
|
|
34495
|
-
'enum_point': ConjureFieldDefinition('enumPoint', OptionalTypeWrapper[scout_compute_api_EnumPoint]),
|
|
34496
|
-
'numeric_point': ConjureFieldDefinition('numericPoint', OptionalTypeWrapper[scout_compute_api_NumericPoint]),
|
|
34497
|
-
'log_point': ConjureFieldDefinition('logPoint', OptionalTypeWrapper[scout_compute_api_LogPoint]),
|
|
34498
|
-
'range_value': ConjureFieldDefinition('rangeValue', OptionalTypeWrapper[scout_compute_api_Range]),
|
|
34499
34499
|
'frequency_domain': ConjureFieldDefinition('frequencyDomain', scout_compute_api_FrequencyDomainPlot),
|
|
34500
34500
|
'numeric_histogram': ConjureFieldDefinition('numericHistogram', scout_compute_api_NumericHistogramPlot),
|
|
34501
34501
|
'enum_histogram': ConjureFieldDefinition('enumHistogram', scout_compute_api_EnumHistogramPlot),
|
|
@@ -34504,21 +34504,21 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34504
34504
|
|
|
34505
34505
|
def __init__(
|
|
34506
34506
|
self,
|
|
34507
|
-
numeric: Optional["scout_compute_api_NumericPlot"] = None,
|
|
34508
|
-
bucketed_numeric: Optional["scout_compute_api_BucketedNumericPlot"] = None,
|
|
34509
34507
|
range: Optional[List["scout_compute_api_Range"]] = None,
|
|
34510
34508
|
ranges_summary: Optional["scout_compute_api_RangesSummary"] = None,
|
|
34509
|
+
range_value: Optional[Optional["scout_compute_api_Range"]] = None,
|
|
34510
|
+
numeric: Optional["scout_compute_api_NumericPlot"] = None,
|
|
34511
|
+
bucketed_numeric: Optional["scout_compute_api_BucketedNumericPlot"] = None,
|
|
34512
|
+
numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None,
|
|
34511
34513
|
enum: Optional["scout_compute_api_EnumPlot"] = None,
|
|
34512
|
-
|
|
34514
|
+
enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None,
|
|
34513
34515
|
bucketed_enum: Optional["scout_compute_api_BucketedEnumPlot"] = None,
|
|
34516
|
+
paged_log: Optional["scout_compute_api_PagedLogPlot"] = None,
|
|
34517
|
+
log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None,
|
|
34514
34518
|
cartesian: Optional["scout_compute_api_CartesianPlot"] = None,
|
|
34515
34519
|
bucketed_cartesian: Optional["scout_compute_api_BucketedCartesianPlot"] = None,
|
|
34516
34520
|
bucketed_cartesian3d: Optional["scout_compute_api_BucketedCartesian3dPlot"] = None,
|
|
34517
34521
|
bucketed_geo: Optional["scout_compute_api_BucketedGeoPlot"] = None,
|
|
34518
|
-
enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None,
|
|
34519
|
-
numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None,
|
|
34520
|
-
log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None,
|
|
34521
|
-
range_value: Optional[Optional["scout_compute_api_Range"]] = None,
|
|
34522
34522
|
frequency_domain: Optional["scout_compute_api_FrequencyDomainPlot"] = None,
|
|
34523
34523
|
numeric_histogram: Optional["scout_compute_api_NumericHistogramPlot"] = None,
|
|
34524
34524
|
enum_histogram: Optional["scout_compute_api_EnumHistogramPlot"] = None,
|
|
@@ -34526,30 +34526,42 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34526
34526
|
type_of_union: Optional[str] = None
|
|
34527
34527
|
) -> None:
|
|
34528
34528
|
if type_of_union is None:
|
|
34529
|
-
if (
|
|
34529
|
+
if (range is not None) + (ranges_summary is not None) + (range_value is not None) + (numeric is not None) + (bucketed_numeric is not None) + (numeric_point is not None) + (enum is not None) + (enum_point is not None) + (bucketed_enum is not None) + (paged_log is not None) + (log_point is not None) + (cartesian is not None) + (bucketed_cartesian is not None) + (bucketed_cartesian3d is not None) + (bucketed_geo is not None) + (frequency_domain is not None) + (numeric_histogram is not None) + (enum_histogram is not None) + (curve_fit is not None) != 1:
|
|
34530
34530
|
raise ValueError('a union must contain a single member')
|
|
34531
34531
|
|
|
34532
|
-
if numeric is not None:
|
|
34533
|
-
self._numeric = numeric
|
|
34534
|
-
self._type = 'numeric'
|
|
34535
|
-
if bucketed_numeric is not None:
|
|
34536
|
-
self._bucketed_numeric = bucketed_numeric
|
|
34537
|
-
self._type = 'bucketedNumeric'
|
|
34538
34532
|
if range is not None:
|
|
34539
34533
|
self._range = range
|
|
34540
34534
|
self._type = 'range'
|
|
34541
34535
|
if ranges_summary is not None:
|
|
34542
34536
|
self._ranges_summary = ranges_summary
|
|
34543
34537
|
self._type = 'rangesSummary'
|
|
34538
|
+
if range_value is not None:
|
|
34539
|
+
self._range_value = range_value
|
|
34540
|
+
self._type = 'rangeValue'
|
|
34541
|
+
if numeric is not None:
|
|
34542
|
+
self._numeric = numeric
|
|
34543
|
+
self._type = 'numeric'
|
|
34544
|
+
if bucketed_numeric is not None:
|
|
34545
|
+
self._bucketed_numeric = bucketed_numeric
|
|
34546
|
+
self._type = 'bucketedNumeric'
|
|
34547
|
+
if numeric_point is not None:
|
|
34548
|
+
self._numeric_point = numeric_point
|
|
34549
|
+
self._type = 'numericPoint'
|
|
34544
34550
|
if enum is not None:
|
|
34545
34551
|
self._enum = enum
|
|
34546
34552
|
self._type = 'enum'
|
|
34547
|
-
if
|
|
34548
|
-
self.
|
|
34549
|
-
self._type = '
|
|
34553
|
+
if enum_point is not None:
|
|
34554
|
+
self._enum_point = enum_point
|
|
34555
|
+
self._type = 'enumPoint'
|
|
34550
34556
|
if bucketed_enum is not None:
|
|
34551
34557
|
self._bucketed_enum = bucketed_enum
|
|
34552
34558
|
self._type = 'bucketedEnum'
|
|
34559
|
+
if paged_log is not None:
|
|
34560
|
+
self._paged_log = paged_log
|
|
34561
|
+
self._type = 'pagedLog'
|
|
34562
|
+
if log_point is not None:
|
|
34563
|
+
self._log_point = log_point
|
|
34564
|
+
self._type = 'logPoint'
|
|
34553
34565
|
if cartesian is not None:
|
|
34554
34566
|
self._cartesian = cartesian
|
|
34555
34567
|
self._type = 'cartesian'
|
|
@@ -34562,18 +34574,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34562
34574
|
if bucketed_geo is not None:
|
|
34563
34575
|
self._bucketed_geo = bucketed_geo
|
|
34564
34576
|
self._type = 'bucketedGeo'
|
|
34565
|
-
if enum_point is not None:
|
|
34566
|
-
self._enum_point = enum_point
|
|
34567
|
-
self._type = 'enumPoint'
|
|
34568
|
-
if numeric_point is not None:
|
|
34569
|
-
self._numeric_point = numeric_point
|
|
34570
|
-
self._type = 'numericPoint'
|
|
34571
|
-
if log_point is not None:
|
|
34572
|
-
self._log_point = log_point
|
|
34573
|
-
self._type = 'logPoint'
|
|
34574
|
-
if range_value is not None:
|
|
34575
|
-
self._range_value = range_value
|
|
34576
|
-
self._type = 'rangeValue'
|
|
34577
34577
|
if frequency_domain is not None:
|
|
34578
34578
|
self._frequency_domain = frequency_domain
|
|
34579
34579
|
self._type = 'frequencyDomain'
|
|
@@ -34587,6 +34587,21 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34587
34587
|
self._curve_fit = curve_fit
|
|
34588
34588
|
self._type = 'curveFit'
|
|
34589
34589
|
|
|
34590
|
+
elif type_of_union == 'range':
|
|
34591
|
+
if range is None:
|
|
34592
|
+
raise ValueError('a union value must not be None')
|
|
34593
|
+
self._range = range
|
|
34594
|
+
self._type = 'range'
|
|
34595
|
+
elif type_of_union == 'rangesSummary':
|
|
34596
|
+
if ranges_summary is None:
|
|
34597
|
+
raise ValueError('a union value must not be None')
|
|
34598
|
+
self._ranges_summary = ranges_summary
|
|
34599
|
+
self._type = 'rangesSummary'
|
|
34600
|
+
elif type_of_union == 'rangeValue':
|
|
34601
|
+
if range_value is None:
|
|
34602
|
+
raise ValueError('a union value must not be None')
|
|
34603
|
+
self._range_value = range_value
|
|
34604
|
+
self._type = 'rangeValue'
|
|
34590
34605
|
elif type_of_union == 'numeric':
|
|
34591
34606
|
if numeric is None:
|
|
34592
34607
|
raise ValueError('a union value must not be None')
|
|
@@ -34597,31 +34612,36 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34597
34612
|
raise ValueError('a union value must not be None')
|
|
34598
34613
|
self._bucketed_numeric = bucketed_numeric
|
|
34599
34614
|
self._type = 'bucketedNumeric'
|
|
34600
|
-
elif type_of_union == '
|
|
34601
|
-
if
|
|
34602
|
-
raise ValueError('a union value must not be None')
|
|
34603
|
-
self._range = range
|
|
34604
|
-
self._type = 'range'
|
|
34605
|
-
elif type_of_union == 'rangesSummary':
|
|
34606
|
-
if ranges_summary is None:
|
|
34615
|
+
elif type_of_union == 'numericPoint':
|
|
34616
|
+
if numeric_point is None:
|
|
34607
34617
|
raise ValueError('a union value must not be None')
|
|
34608
|
-
self.
|
|
34609
|
-
self._type = '
|
|
34618
|
+
self._numeric_point = numeric_point
|
|
34619
|
+
self._type = 'numericPoint'
|
|
34610
34620
|
elif type_of_union == 'enum':
|
|
34611
34621
|
if enum is None:
|
|
34612
34622
|
raise ValueError('a union value must not be None')
|
|
34613
34623
|
self._enum = enum
|
|
34614
34624
|
self._type = 'enum'
|
|
34615
|
-
elif type_of_union == '
|
|
34616
|
-
if
|
|
34625
|
+
elif type_of_union == 'enumPoint':
|
|
34626
|
+
if enum_point is None:
|
|
34617
34627
|
raise ValueError('a union value must not be None')
|
|
34618
|
-
self.
|
|
34619
|
-
self._type = '
|
|
34628
|
+
self._enum_point = enum_point
|
|
34629
|
+
self._type = 'enumPoint'
|
|
34620
34630
|
elif type_of_union == 'bucketedEnum':
|
|
34621
34631
|
if bucketed_enum is None:
|
|
34622
34632
|
raise ValueError('a union value must not be None')
|
|
34623
34633
|
self._bucketed_enum = bucketed_enum
|
|
34624
34634
|
self._type = 'bucketedEnum'
|
|
34635
|
+
elif type_of_union == 'pagedLog':
|
|
34636
|
+
if paged_log is None:
|
|
34637
|
+
raise ValueError('a union value must not be None')
|
|
34638
|
+
self._paged_log = paged_log
|
|
34639
|
+
self._type = 'pagedLog'
|
|
34640
|
+
elif type_of_union == 'logPoint':
|
|
34641
|
+
if log_point is None:
|
|
34642
|
+
raise ValueError('a union value must not be None')
|
|
34643
|
+
self._log_point = log_point
|
|
34644
|
+
self._type = 'logPoint'
|
|
34625
34645
|
elif type_of_union == 'cartesian':
|
|
34626
34646
|
if cartesian is None:
|
|
34627
34647
|
raise ValueError('a union value must not be None')
|
|
@@ -34642,26 +34662,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34642
34662
|
raise ValueError('a union value must not be None')
|
|
34643
34663
|
self._bucketed_geo = bucketed_geo
|
|
34644
34664
|
self._type = 'bucketedGeo'
|
|
34645
|
-
elif type_of_union == 'enumPoint':
|
|
34646
|
-
if enum_point is None:
|
|
34647
|
-
raise ValueError('a union value must not be None')
|
|
34648
|
-
self._enum_point = enum_point
|
|
34649
|
-
self._type = 'enumPoint'
|
|
34650
|
-
elif type_of_union == 'numericPoint':
|
|
34651
|
-
if numeric_point is None:
|
|
34652
|
-
raise ValueError('a union value must not be None')
|
|
34653
|
-
self._numeric_point = numeric_point
|
|
34654
|
-
self._type = 'numericPoint'
|
|
34655
|
-
elif type_of_union == 'logPoint':
|
|
34656
|
-
if log_point is None:
|
|
34657
|
-
raise ValueError('a union value must not be None')
|
|
34658
|
-
self._log_point = log_point
|
|
34659
|
-
self._type = 'logPoint'
|
|
34660
|
-
elif type_of_union == 'rangeValue':
|
|
34661
|
-
if range_value is None:
|
|
34662
|
-
raise ValueError('a union value must not be None')
|
|
34663
|
-
self._range_value = range_value
|
|
34664
|
-
self._type = 'rangeValue'
|
|
34665
34665
|
elif type_of_union == 'frequencyDomain':
|
|
34666
34666
|
if frequency_domain is None:
|
|
34667
34667
|
raise ValueError('a union value must not be None')
|
|
@@ -34683,6 +34683,18 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34683
34683
|
self._curve_fit = curve_fit
|
|
34684
34684
|
self._type = 'curveFit'
|
|
34685
34685
|
|
|
34686
|
+
@builtins.property
|
|
34687
|
+
def range(self) -> Optional[List["scout_compute_api_Range"]]:
|
|
34688
|
+
return self._range
|
|
34689
|
+
|
|
34690
|
+
@builtins.property
|
|
34691
|
+
def ranges_summary(self) -> Optional["scout_compute_api_RangesSummary"]:
|
|
34692
|
+
return self._ranges_summary
|
|
34693
|
+
|
|
34694
|
+
@builtins.property
|
|
34695
|
+
def range_value(self) -> Optional[Optional["scout_compute_api_Range"]]:
|
|
34696
|
+
return self._range_value
|
|
34697
|
+
|
|
34686
34698
|
@builtins.property
|
|
34687
34699
|
def numeric(self) -> Optional["scout_compute_api_NumericPlot"]:
|
|
34688
34700
|
return self._numeric
|
|
@@ -34692,25 +34704,29 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34692
34704
|
return self._bucketed_numeric
|
|
34693
34705
|
|
|
34694
34706
|
@builtins.property
|
|
34695
|
-
def
|
|
34696
|
-
return self.
|
|
34697
|
-
|
|
34698
|
-
@builtins.property
|
|
34699
|
-
def ranges_summary(self) -> Optional["scout_compute_api_RangesSummary"]:
|
|
34700
|
-
return self._ranges_summary
|
|
34707
|
+
def numeric_point(self) -> Optional[Optional["scout_compute_api_NumericPoint"]]:
|
|
34708
|
+
return self._numeric_point
|
|
34701
34709
|
|
|
34702
34710
|
@builtins.property
|
|
34703
34711
|
def enum(self) -> Optional["scout_compute_api_EnumPlot"]:
|
|
34704
34712
|
return self._enum
|
|
34705
34713
|
|
|
34706
34714
|
@builtins.property
|
|
34707
|
-
def
|
|
34708
|
-
return self.
|
|
34715
|
+
def enum_point(self) -> Optional[Optional["scout_compute_api_EnumPoint"]]:
|
|
34716
|
+
return self._enum_point
|
|
34709
34717
|
|
|
34710
34718
|
@builtins.property
|
|
34711
34719
|
def bucketed_enum(self) -> Optional["scout_compute_api_BucketedEnumPlot"]:
|
|
34712
34720
|
return self._bucketed_enum
|
|
34713
34721
|
|
|
34722
|
+
@builtins.property
|
|
34723
|
+
def paged_log(self) -> Optional["scout_compute_api_PagedLogPlot"]:
|
|
34724
|
+
return self._paged_log
|
|
34725
|
+
|
|
34726
|
+
@builtins.property
|
|
34727
|
+
def log_point(self) -> Optional[Optional["scout_compute_api_LogPoint"]]:
|
|
34728
|
+
return self._log_point
|
|
34729
|
+
|
|
34714
34730
|
@builtins.property
|
|
34715
34731
|
def cartesian(self) -> Optional["scout_compute_api_CartesianPlot"]:
|
|
34716
34732
|
return self._cartesian
|
|
@@ -34727,22 +34743,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34727
34743
|
def bucketed_geo(self) -> Optional["scout_compute_api_BucketedGeoPlot"]:
|
|
34728
34744
|
return self._bucketed_geo
|
|
34729
34745
|
|
|
34730
|
-
@builtins.property
|
|
34731
|
-
def enum_point(self) -> Optional[Optional["scout_compute_api_EnumPoint"]]:
|
|
34732
|
-
return self._enum_point
|
|
34733
|
-
|
|
34734
|
-
@builtins.property
|
|
34735
|
-
def numeric_point(self) -> Optional[Optional["scout_compute_api_NumericPoint"]]:
|
|
34736
|
-
return self._numeric_point
|
|
34737
|
-
|
|
34738
|
-
@builtins.property
|
|
34739
|
-
def log_point(self) -> Optional[Optional["scout_compute_api_LogPoint"]]:
|
|
34740
|
-
return self._log_point
|
|
34741
|
-
|
|
34742
|
-
@builtins.property
|
|
34743
|
-
def range_value(self) -> Optional[Optional["scout_compute_api_Range"]]:
|
|
34744
|
-
return self._range_value
|
|
34745
|
-
|
|
34746
34746
|
@builtins.property
|
|
34747
34747
|
def frequency_domain(self) -> Optional["scout_compute_api_FrequencyDomainPlot"]:
|
|
34748
34748
|
return self._frequency_domain
|
|
@@ -34762,20 +34762,28 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34762
34762
|
def accept(self, visitor) -> Any:
|
|
34763
34763
|
if not isinstance(visitor, scout_compute_api_ComputeNodeResponseVisitor):
|
|
34764
34764
|
raise ValueError('{} is not an instance of scout_compute_api_ComputeNodeResponseVisitor'.format(visitor.__class__.__name__))
|
|
34765
|
-
if self._type == 'numeric' and self.numeric is not None:
|
|
34766
|
-
return visitor._numeric(self.numeric)
|
|
34767
|
-
if self._type == 'bucketedNumeric' and self.bucketed_numeric is not None:
|
|
34768
|
-
return visitor._bucketed_numeric(self.bucketed_numeric)
|
|
34769
34765
|
if self._type == 'range' and self.range is not None:
|
|
34770
34766
|
return visitor._range(self.range)
|
|
34771
34767
|
if self._type == 'rangesSummary' and self.ranges_summary is not None:
|
|
34772
34768
|
return visitor._ranges_summary(self.ranges_summary)
|
|
34769
|
+
if self._type == 'rangeValue' and self.range_value is not None:
|
|
34770
|
+
return visitor._range_value(self.range_value)
|
|
34771
|
+
if self._type == 'numeric' and self.numeric is not None:
|
|
34772
|
+
return visitor._numeric(self.numeric)
|
|
34773
|
+
if self._type == 'bucketedNumeric' and self.bucketed_numeric is not None:
|
|
34774
|
+
return visitor._bucketed_numeric(self.bucketed_numeric)
|
|
34775
|
+
if self._type == 'numericPoint' and self.numeric_point is not None:
|
|
34776
|
+
return visitor._numeric_point(self.numeric_point)
|
|
34773
34777
|
if self._type == 'enum' and self.enum is not None:
|
|
34774
34778
|
return visitor._enum(self.enum)
|
|
34775
|
-
if self._type == '
|
|
34776
|
-
return visitor.
|
|
34779
|
+
if self._type == 'enumPoint' and self.enum_point is not None:
|
|
34780
|
+
return visitor._enum_point(self.enum_point)
|
|
34777
34781
|
if self._type == 'bucketedEnum' and self.bucketed_enum is not None:
|
|
34778
34782
|
return visitor._bucketed_enum(self.bucketed_enum)
|
|
34783
|
+
if self._type == 'pagedLog' and self.paged_log is not None:
|
|
34784
|
+
return visitor._paged_log(self.paged_log)
|
|
34785
|
+
if self._type == 'logPoint' and self.log_point is not None:
|
|
34786
|
+
return visitor._log_point(self.log_point)
|
|
34779
34787
|
if self._type == 'cartesian' and self.cartesian is not None:
|
|
34780
34788
|
return visitor._cartesian(self.cartesian)
|
|
34781
34789
|
if self._type == 'bucketedCartesian' and self.bucketed_cartesian is not None:
|
|
@@ -34784,14 +34792,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
|
|
|
34784
34792
|
return visitor._bucketed_cartesian3d(self.bucketed_cartesian3d)
|
|
34785
34793
|
if self._type == 'bucketedGeo' and self.bucketed_geo is not None:
|
|
34786
34794
|
return visitor._bucketed_geo(self.bucketed_geo)
|
|
34787
|
-
if self._type == 'enumPoint' and self.enum_point is not None:
|
|
34788
|
-
return visitor._enum_point(self.enum_point)
|
|
34789
|
-
if self._type == 'numericPoint' and self.numeric_point is not None:
|
|
34790
|
-
return visitor._numeric_point(self.numeric_point)
|
|
34791
|
-
if self._type == 'logPoint' and self.log_point is not None:
|
|
34792
|
-
return visitor._log_point(self.log_point)
|
|
34793
|
-
if self._type == 'rangeValue' and self.range_value is not None:
|
|
34794
|
-
return visitor._range_value(self.range_value)
|
|
34795
34795
|
if self._type == 'frequencyDomain' and self.frequency_domain is not None:
|
|
34796
34796
|
return visitor._frequency_domain(self.frequency_domain)
|
|
34797
34797
|
if self._type == 'numericHistogram' and self.numeric_histogram is not None:
|
|
@@ -34810,63 +34810,63 @@ scout_compute_api_ComputeNodeResponse.__module__ = "nominal_api.scout_compute_ap
|
|
|
34810
34810
|
class scout_compute_api_ComputeNodeResponseVisitor:
|
|
34811
34811
|
|
|
34812
34812
|
@abstractmethod
|
|
34813
|
-
def
|
|
34813
|
+
def _range(self, range: List["scout_compute_api_Range"]) -> Any:
|
|
34814
34814
|
pass
|
|
34815
34815
|
|
|
34816
34816
|
@abstractmethod
|
|
34817
|
-
def
|
|
34817
|
+
def _ranges_summary(self, ranges_summary: "scout_compute_api_RangesSummary") -> Any:
|
|
34818
34818
|
pass
|
|
34819
34819
|
|
|
34820
34820
|
@abstractmethod
|
|
34821
|
-
def
|
|
34821
|
+
def _range_value(self, range_value: Optional["scout_compute_api_Range"]) -> Any:
|
|
34822
34822
|
pass
|
|
34823
34823
|
|
|
34824
34824
|
@abstractmethod
|
|
34825
|
-
def
|
|
34825
|
+
def _numeric(self, numeric: "scout_compute_api_NumericPlot") -> Any:
|
|
34826
34826
|
pass
|
|
34827
34827
|
|
|
34828
34828
|
@abstractmethod
|
|
34829
|
-
def
|
|
34829
|
+
def _bucketed_numeric(self, bucketed_numeric: "scout_compute_api_BucketedNumericPlot") -> Any:
|
|
34830
34830
|
pass
|
|
34831
34831
|
|
|
34832
34832
|
@abstractmethod
|
|
34833
|
-
def
|
|
34833
|
+
def _numeric_point(self, numeric_point: Optional["scout_compute_api_NumericPoint"]) -> Any:
|
|
34834
34834
|
pass
|
|
34835
34835
|
|
|
34836
34836
|
@abstractmethod
|
|
34837
|
-
def
|
|
34837
|
+
def _enum(self, enum: "scout_compute_api_EnumPlot") -> Any:
|
|
34838
34838
|
pass
|
|
34839
34839
|
|
|
34840
34840
|
@abstractmethod
|
|
34841
|
-
def
|
|
34841
|
+
def _enum_point(self, enum_point: Optional["scout_compute_api_EnumPoint"]) -> Any:
|
|
34842
34842
|
pass
|
|
34843
34843
|
|
|
34844
34844
|
@abstractmethod
|
|
34845
|
-
def
|
|
34845
|
+
def _bucketed_enum(self, bucketed_enum: "scout_compute_api_BucketedEnumPlot") -> Any:
|
|
34846
34846
|
pass
|
|
34847
34847
|
|
|
34848
34848
|
@abstractmethod
|
|
34849
|
-
def
|
|
34849
|
+
def _paged_log(self, paged_log: "scout_compute_api_PagedLogPlot") -> Any:
|
|
34850
34850
|
pass
|
|
34851
34851
|
|
|
34852
34852
|
@abstractmethod
|
|
34853
|
-
def
|
|
34853
|
+
def _log_point(self, log_point: Optional["scout_compute_api_LogPoint"]) -> Any:
|
|
34854
34854
|
pass
|
|
34855
34855
|
|
|
34856
34856
|
@abstractmethod
|
|
34857
|
-
def
|
|
34857
|
+
def _cartesian(self, cartesian: "scout_compute_api_CartesianPlot") -> Any:
|
|
34858
34858
|
pass
|
|
34859
34859
|
|
|
34860
34860
|
@abstractmethod
|
|
34861
|
-
def
|
|
34861
|
+
def _bucketed_cartesian(self, bucketed_cartesian: "scout_compute_api_BucketedCartesianPlot") -> Any:
|
|
34862
34862
|
pass
|
|
34863
34863
|
|
|
34864
34864
|
@abstractmethod
|
|
34865
|
-
def
|
|
34865
|
+
def _bucketed_cartesian3d(self, bucketed_cartesian3d: "scout_compute_api_BucketedCartesian3dPlot") -> Any:
|
|
34866
34866
|
pass
|
|
34867
34867
|
|
|
34868
34868
|
@abstractmethod
|
|
34869
|
-
def
|
|
34869
|
+
def _bucketed_geo(self, bucketed_geo: "scout_compute_api_BucketedGeoPlot") -> Any:
|
|
34870
34870
|
pass
|
|
34871
34871
|
|
|
34872
34872
|
@abstractmethod
|
|
@@ -47220,804 +47220,6 @@ scout_compute_api_deprecated_WindowVisitor.__qualname__ = "WindowVisitor"
|
|
|
47220
47220
|
scout_compute_api_deprecated_WindowVisitor.__module__ = "nominal_api.scout_compute_api_deprecated"
|
|
47221
47221
|
|
|
47222
47222
|
|
|
47223
|
-
class scout_compute_representation_api_BatchExpressionToComputeRequest(ConjureBeanType):
|
|
47224
|
-
|
|
47225
|
-
@builtins.classmethod
|
|
47226
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47227
|
-
return {
|
|
47228
|
-
'expressions': ConjureFieldDefinition('expressions', List[scout_compute_representation_api_ComputeExpression]),
|
|
47229
|
-
'default_ref_name': ConjureFieldDefinition('defaultRefName', OptionalTypeWrapper[str])
|
|
47230
|
-
}
|
|
47231
|
-
|
|
47232
|
-
__slots__: List[str] = ['_expressions', '_default_ref_name']
|
|
47233
|
-
|
|
47234
|
-
def __init__(self, expressions: List[str], default_ref_name: Optional[str] = None) -> None:
|
|
47235
|
-
self._expressions = expressions
|
|
47236
|
-
self._default_ref_name = default_ref_name
|
|
47237
|
-
|
|
47238
|
-
@builtins.property
|
|
47239
|
-
def expressions(self) -> List[str]:
|
|
47240
|
-
return self._expressions
|
|
47241
|
-
|
|
47242
|
-
@builtins.property
|
|
47243
|
-
def default_ref_name(self) -> Optional[str]:
|
|
47244
|
-
return self._default_ref_name
|
|
47245
|
-
|
|
47246
|
-
|
|
47247
|
-
scout_compute_representation_api_BatchExpressionToComputeRequest.__name__ = "BatchExpressionToComputeRequest"
|
|
47248
|
-
scout_compute_representation_api_BatchExpressionToComputeRequest.__qualname__ = "BatchExpressionToComputeRequest"
|
|
47249
|
-
scout_compute_representation_api_BatchExpressionToComputeRequest.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47250
|
-
|
|
47251
|
-
|
|
47252
|
-
class scout_compute_representation_api_ChannelLocator(ConjureBeanType):
|
|
47253
|
-
|
|
47254
|
-
@builtins.classmethod
|
|
47255
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47256
|
-
return {
|
|
47257
|
-
'data_source_ref': ConjureFieldDefinition('dataSourceRef', scout_api_DataSourceRefName),
|
|
47258
|
-
'channel': ConjureFieldDefinition('channel', api_Channel)
|
|
47259
|
-
}
|
|
47260
|
-
|
|
47261
|
-
__slots__: List[str] = ['_data_source_ref', '_channel']
|
|
47262
|
-
|
|
47263
|
-
def __init__(self, channel: str, data_source_ref: str) -> None:
|
|
47264
|
-
self._data_source_ref = data_source_ref
|
|
47265
|
-
self._channel = channel
|
|
47266
|
-
|
|
47267
|
-
@builtins.property
|
|
47268
|
-
def data_source_ref(self) -> str:
|
|
47269
|
-
return self._data_source_ref
|
|
47270
|
-
|
|
47271
|
-
@builtins.property
|
|
47272
|
-
def channel(self) -> str:
|
|
47273
|
-
return self._channel
|
|
47274
|
-
|
|
47275
|
-
|
|
47276
|
-
scout_compute_representation_api_ChannelLocator.__name__ = "ChannelLocator"
|
|
47277
|
-
scout_compute_representation_api_ChannelLocator.__qualname__ = "ChannelLocator"
|
|
47278
|
-
scout_compute_representation_api_ChannelLocator.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47279
|
-
|
|
47280
|
-
|
|
47281
|
-
class scout_compute_representation_api_CompiledEnumeratedSeries(ConjureBeanType):
|
|
47282
|
-
|
|
47283
|
-
@builtins.classmethod
|
|
47284
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47285
|
-
return {
|
|
47286
|
-
'node': ConjureFieldDefinition('node', scout_compute_api_EnumSeries),
|
|
47287
|
-
'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
|
|
47288
|
-
}
|
|
47289
|
-
|
|
47290
|
-
__slots__: List[str] = ['_node', '_context']
|
|
47291
|
-
|
|
47292
|
-
def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_api_EnumSeries") -> None:
|
|
47293
|
-
self._node = node
|
|
47294
|
-
self._context = context
|
|
47295
|
-
|
|
47296
|
-
@builtins.property
|
|
47297
|
-
def node(self) -> "scout_compute_api_EnumSeries":
|
|
47298
|
-
return self._node
|
|
47299
|
-
|
|
47300
|
-
@builtins.property
|
|
47301
|
-
def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
|
|
47302
|
-
return self._context
|
|
47303
|
-
|
|
47304
|
-
|
|
47305
|
-
scout_compute_representation_api_CompiledEnumeratedSeries.__name__ = "CompiledEnumeratedSeries"
|
|
47306
|
-
scout_compute_representation_api_CompiledEnumeratedSeries.__qualname__ = "CompiledEnumeratedSeries"
|
|
47307
|
-
scout_compute_representation_api_CompiledEnumeratedSeries.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47308
|
-
|
|
47309
|
-
|
|
47310
|
-
class scout_compute_representation_api_CompiledNode(ConjureBeanType):
|
|
47311
|
-
|
|
47312
|
-
@builtins.classmethod
|
|
47313
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47314
|
-
return {
|
|
47315
|
-
'node': ConjureFieldDefinition('node', scout_compute_representation_api_Node),
|
|
47316
|
-
'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
|
|
47317
|
-
}
|
|
47318
|
-
|
|
47319
|
-
__slots__: List[str] = ['_node', '_context']
|
|
47320
|
-
|
|
47321
|
-
def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_representation_api_Node") -> None:
|
|
47322
|
-
self._node = node
|
|
47323
|
-
self._context = context
|
|
47324
|
-
|
|
47325
|
-
@builtins.property
|
|
47326
|
-
def node(self) -> "scout_compute_representation_api_Node":
|
|
47327
|
-
return self._node
|
|
47328
|
-
|
|
47329
|
-
@builtins.property
|
|
47330
|
-
def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
|
|
47331
|
-
return self._context
|
|
47332
|
-
|
|
47333
|
-
|
|
47334
|
-
scout_compute_representation_api_CompiledNode.__name__ = "CompiledNode"
|
|
47335
|
-
scout_compute_representation_api_CompiledNode.__qualname__ = "CompiledNode"
|
|
47336
|
-
scout_compute_representation_api_CompiledNode.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47337
|
-
|
|
47338
|
-
|
|
47339
|
-
class scout_compute_representation_api_CompiledNumericSeries(ConjureBeanType):
|
|
47340
|
-
|
|
47341
|
-
@builtins.classmethod
|
|
47342
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47343
|
-
return {
|
|
47344
|
-
'node': ConjureFieldDefinition('node', scout_compute_api_NumericSeries),
|
|
47345
|
-
'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
|
|
47346
|
-
}
|
|
47347
|
-
|
|
47348
|
-
__slots__: List[str] = ['_node', '_context']
|
|
47349
|
-
|
|
47350
|
-
def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_api_NumericSeries") -> None:
|
|
47351
|
-
self._node = node
|
|
47352
|
-
self._context = context
|
|
47353
|
-
|
|
47354
|
-
@builtins.property
|
|
47355
|
-
def node(self) -> "scout_compute_api_NumericSeries":
|
|
47356
|
-
return self._node
|
|
47357
|
-
|
|
47358
|
-
@builtins.property
|
|
47359
|
-
def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
|
|
47360
|
-
return self._context
|
|
47361
|
-
|
|
47362
|
-
|
|
47363
|
-
scout_compute_representation_api_CompiledNumericSeries.__name__ = "CompiledNumericSeries"
|
|
47364
|
-
scout_compute_representation_api_CompiledNumericSeries.__qualname__ = "CompiledNumericSeries"
|
|
47365
|
-
scout_compute_representation_api_CompiledNumericSeries.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47366
|
-
|
|
47367
|
-
|
|
47368
|
-
class scout_compute_representation_api_CompiledRangeSeries(ConjureBeanType):
|
|
47369
|
-
|
|
47370
|
-
@builtins.classmethod
|
|
47371
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47372
|
-
return {
|
|
47373
|
-
'node': ConjureFieldDefinition('node', scout_compute_api_RangeSeries),
|
|
47374
|
-
'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
|
|
47375
|
-
}
|
|
47376
|
-
|
|
47377
|
-
__slots__: List[str] = ['_node', '_context']
|
|
47378
|
-
|
|
47379
|
-
def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_api_RangeSeries") -> None:
|
|
47380
|
-
self._node = node
|
|
47381
|
-
self._context = context
|
|
47382
|
-
|
|
47383
|
-
@builtins.property
|
|
47384
|
-
def node(self) -> "scout_compute_api_RangeSeries":
|
|
47385
|
-
return self._node
|
|
47386
|
-
|
|
47387
|
-
@builtins.property
|
|
47388
|
-
def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
|
|
47389
|
-
return self._context
|
|
47390
|
-
|
|
47391
|
-
|
|
47392
|
-
scout_compute_representation_api_CompiledRangeSeries.__name__ = "CompiledRangeSeries"
|
|
47393
|
-
scout_compute_representation_api_CompiledRangeSeries.__qualname__ = "CompiledRangeSeries"
|
|
47394
|
-
scout_compute_representation_api_CompiledRangeSeries.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47395
|
-
|
|
47396
|
-
|
|
47397
|
-
class scout_compute_representation_api_ComputeRepresentationContext(ConjureBeanType):
|
|
47398
|
-
|
|
47399
|
-
@builtins.classmethod
|
|
47400
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47401
|
-
return {
|
|
47402
|
-
'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_compute_representation_api_ComputeRepresentationVariableValue]),
|
|
47403
|
-
'function_variables': ConjureFieldDefinition('functionVariables', Dict[scout_compute_api_FunctionReference, scout_compute_representation_api_ComputeRepresentationContext])
|
|
47404
|
-
}
|
|
47405
|
-
|
|
47406
|
-
__slots__: List[str] = ['_variables', '_function_variables']
|
|
47407
|
-
|
|
47408
|
-
def __init__(self, function_variables: Dict[str, "scout_compute_representation_api_ComputeRepresentationContext"], variables: Dict[str, "scout_compute_representation_api_ComputeRepresentationVariableValue"]) -> None:
|
|
47409
|
-
self._variables = variables
|
|
47410
|
-
self._function_variables = function_variables
|
|
47411
|
-
|
|
47412
|
-
@builtins.property
|
|
47413
|
-
def variables(self) -> Dict[str, "scout_compute_representation_api_ComputeRepresentationVariableValue"]:
|
|
47414
|
-
return self._variables
|
|
47415
|
-
|
|
47416
|
-
@builtins.property
|
|
47417
|
-
def function_variables(self) -> Dict[str, "scout_compute_representation_api_ComputeRepresentationContext"]:
|
|
47418
|
-
return self._function_variables
|
|
47419
|
-
|
|
47420
|
-
|
|
47421
|
-
scout_compute_representation_api_ComputeRepresentationContext.__name__ = "ComputeRepresentationContext"
|
|
47422
|
-
scout_compute_representation_api_ComputeRepresentationContext.__qualname__ = "ComputeRepresentationContext"
|
|
47423
|
-
scout_compute_representation_api_ComputeRepresentationContext.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47424
|
-
|
|
47425
|
-
|
|
47426
|
-
class scout_compute_representation_api_ComputeRepresentationService(Service):
|
|
47427
|
-
"""
|
|
47428
|
-
The Compute Representation Service provides the ability to translate between a human-readable expression language
|
|
47429
|
-
and a compute graph. Bidirectional translation is supported.
|
|
47430
|
-
"""
|
|
47431
|
-
|
|
47432
|
-
def compute_to_expression(self, auth_header: str, request: "scout_compute_representation_api_CompiledNode") -> str:
|
|
47433
|
-
"""
|
|
47434
|
-
Converts a compute graph and its context into a its expression language representation.
|
|
47435
|
-
"""
|
|
47436
|
-
|
|
47437
|
-
_headers: Dict[str, Any] = {
|
|
47438
|
-
'Accept': 'application/json',
|
|
47439
|
-
'Content-Type': 'application/json',
|
|
47440
|
-
'Authorization': auth_header,
|
|
47441
|
-
}
|
|
47442
|
-
|
|
47443
|
-
_params: Dict[str, Any] = {
|
|
47444
|
-
}
|
|
47445
|
-
|
|
47446
|
-
_path_params: Dict[str, Any] = {
|
|
47447
|
-
}
|
|
47448
|
-
|
|
47449
|
-
_json: Any = ConjureEncoder().default(request)
|
|
47450
|
-
|
|
47451
|
-
_path = '/compute/representation/v1/compute-to-expression'
|
|
47452
|
-
_path = _path.format(**_path_params)
|
|
47453
|
-
|
|
47454
|
-
_response: Response = self._request(
|
|
47455
|
-
'POST',
|
|
47456
|
-
self._uri + _path,
|
|
47457
|
-
params=_params,
|
|
47458
|
-
headers=_headers,
|
|
47459
|
-
json=_json)
|
|
47460
|
-
|
|
47461
|
-
_decoder = ConjureDecoder()
|
|
47462
|
-
return _decoder.decode(_response.json(), scout_compute_representation_api_ComputeExpression, self._return_none_for_unknown_union_types)
|
|
47463
|
-
|
|
47464
|
-
def batch_compute_to_expression(self, auth_header: str, request: Dict[str, "scout_compute_representation_api_CompiledNode"]) -> Dict[str, str]:
|
|
47465
|
-
"""
|
|
47466
|
-
Converts a batch of compute graphs and their contexts into their expression language representation. Requires
|
|
47467
|
-
a string key reference to be provided for each graph.
|
|
47468
|
-
"""
|
|
47469
|
-
|
|
47470
|
-
_headers: Dict[str, Any] = {
|
|
47471
|
-
'Accept': 'application/json',
|
|
47472
|
-
'Content-Type': 'application/json',
|
|
47473
|
-
'Authorization': auth_header,
|
|
47474
|
-
}
|
|
47475
|
-
|
|
47476
|
-
_params: Dict[str, Any] = {
|
|
47477
|
-
}
|
|
47478
|
-
|
|
47479
|
-
_path_params: Dict[str, Any] = {
|
|
47480
|
-
}
|
|
47481
|
-
|
|
47482
|
-
_json: Any = ConjureEncoder().default(request)
|
|
47483
|
-
|
|
47484
|
-
_path = '/compute/representation/v1/batch-compute-to-expression'
|
|
47485
|
-
_path = _path.format(**_path_params)
|
|
47486
|
-
|
|
47487
|
-
_response: Response = self._request(
|
|
47488
|
-
'POST',
|
|
47489
|
-
self._uri + _path,
|
|
47490
|
-
params=_params,
|
|
47491
|
-
headers=_headers,
|
|
47492
|
-
json=_json)
|
|
47493
|
-
|
|
47494
|
-
_decoder = ConjureDecoder()
|
|
47495
|
-
return _decoder.decode(_response.json(), Dict[str, scout_compute_representation_api_ComputeExpression], self._return_none_for_unknown_union_types)
|
|
47496
|
-
|
|
47497
|
-
def expression_to_compute(self, auth_header: str, request: "scout_compute_representation_api_ExpressionToComputeRequest") -> "scout_compute_representation_api_ExpressionToComputeResult":
|
|
47498
|
-
"""
|
|
47499
|
-
Converts an expression language representation into a compute graph. The outputted graph can be passed to
|
|
47500
|
-
the compute service or checks service for execution.
|
|
47501
|
-
"""
|
|
47502
|
-
|
|
47503
|
-
_headers: Dict[str, Any] = {
|
|
47504
|
-
'Accept': 'application/json',
|
|
47505
|
-
'Content-Type': 'application/json',
|
|
47506
|
-
'Authorization': auth_header,
|
|
47507
|
-
}
|
|
47508
|
-
|
|
47509
|
-
_params: Dict[str, Any] = {
|
|
47510
|
-
}
|
|
47511
|
-
|
|
47512
|
-
_path_params: Dict[str, Any] = {
|
|
47513
|
-
}
|
|
47514
|
-
|
|
47515
|
-
_json: Any = ConjureEncoder().default(request)
|
|
47516
|
-
|
|
47517
|
-
_path = '/compute/representation/v1/expression-to-compute'
|
|
47518
|
-
_path = _path.format(**_path_params)
|
|
47519
|
-
|
|
47520
|
-
_response: Response = self._request(
|
|
47521
|
-
'POST',
|
|
47522
|
-
self._uri + _path,
|
|
47523
|
-
params=_params,
|
|
47524
|
-
headers=_headers,
|
|
47525
|
-
json=_json)
|
|
47526
|
-
|
|
47527
|
-
_decoder = ConjureDecoder()
|
|
47528
|
-
return _decoder.decode(_response.json(), scout_compute_representation_api_ExpressionToComputeResult, self._return_none_for_unknown_union_types)
|
|
47529
|
-
|
|
47530
|
-
def batch_expression_to_compute(self, auth_header: str, request: "scout_compute_representation_api_BatchExpressionToComputeRequest") -> Dict[str, "scout_compute_representation_api_ExpressionToComputeResult"]:
|
|
47531
|
-
"""
|
|
47532
|
-
Converts a batch of expressions into their compute graph representation.
|
|
47533
|
-
"""
|
|
47534
|
-
|
|
47535
|
-
_headers: Dict[str, Any] = {
|
|
47536
|
-
'Accept': 'application/json',
|
|
47537
|
-
'Content-Type': 'application/json',
|
|
47538
|
-
'Authorization': auth_header,
|
|
47539
|
-
}
|
|
47540
|
-
|
|
47541
|
-
_params: Dict[str, Any] = {
|
|
47542
|
-
}
|
|
47543
|
-
|
|
47544
|
-
_path_params: Dict[str, Any] = {
|
|
47545
|
-
}
|
|
47546
|
-
|
|
47547
|
-
_json: Any = ConjureEncoder().default(request)
|
|
47548
|
-
|
|
47549
|
-
_path = '/compute/representation/v1/batch-expression-to-compute'
|
|
47550
|
-
_path = _path.format(**_path_params)
|
|
47551
|
-
|
|
47552
|
-
_response: Response = self._request(
|
|
47553
|
-
'POST',
|
|
47554
|
-
self._uri + _path,
|
|
47555
|
-
params=_params,
|
|
47556
|
-
headers=_headers,
|
|
47557
|
-
json=_json)
|
|
47558
|
-
|
|
47559
|
-
_decoder = ConjureDecoder()
|
|
47560
|
-
return _decoder.decode(_response.json(), Dict[scout_compute_representation_api_ComputeExpression, scout_compute_representation_api_ExpressionToComputeResult], self._return_none_for_unknown_union_types)
|
|
47561
|
-
|
|
47562
|
-
|
|
47563
|
-
scout_compute_representation_api_ComputeRepresentationService.__name__ = "ComputeRepresentationService"
|
|
47564
|
-
scout_compute_representation_api_ComputeRepresentationService.__qualname__ = "ComputeRepresentationService"
|
|
47565
|
-
scout_compute_representation_api_ComputeRepresentationService.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47566
|
-
|
|
47567
|
-
|
|
47568
|
-
class scout_compute_representation_api_ComputeRepresentationVariableValue(ConjureUnionType):
|
|
47569
|
-
_double: Optional[float] = None
|
|
47570
|
-
_duration: Optional["scout_run_api_Duration"] = None
|
|
47571
|
-
_integer: Optional[int] = None
|
|
47572
|
-
_string_set: Optional[List[str]] = None
|
|
47573
|
-
_timestamp: Optional["api_Timestamp"] = None
|
|
47574
|
-
_function_rid: Optional[str] = None
|
|
47575
|
-
_series: Optional["scout_compute_representation_api_ChannelLocator"] = None
|
|
47576
|
-
_external_variable_reference: Optional[str] = None
|
|
47577
|
-
|
|
47578
|
-
@builtins.classmethod
|
|
47579
|
-
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47580
|
-
return {
|
|
47581
|
-
'double': ConjureFieldDefinition('double', float),
|
|
47582
|
-
'duration': ConjureFieldDefinition('duration', scout_run_api_Duration),
|
|
47583
|
-
'integer': ConjureFieldDefinition('integer', int),
|
|
47584
|
-
'string_set': ConjureFieldDefinition('stringSet', List[str]),
|
|
47585
|
-
'timestamp': ConjureFieldDefinition('timestamp', api_Timestamp),
|
|
47586
|
-
'function_rid': ConjureFieldDefinition('functionRid', scout_rids_api_FunctionRid),
|
|
47587
|
-
'series': ConjureFieldDefinition('series', scout_compute_representation_api_ChannelLocator),
|
|
47588
|
-
'external_variable_reference': ConjureFieldDefinition('externalVariableReference', str)
|
|
47589
|
-
}
|
|
47590
|
-
|
|
47591
|
-
def __init__(
|
|
47592
|
-
self,
|
|
47593
|
-
double: Optional[float] = None,
|
|
47594
|
-
duration: Optional["scout_run_api_Duration"] = None,
|
|
47595
|
-
integer: Optional[int] = None,
|
|
47596
|
-
string_set: Optional[List[str]] = None,
|
|
47597
|
-
timestamp: Optional["api_Timestamp"] = None,
|
|
47598
|
-
function_rid: Optional[str] = None,
|
|
47599
|
-
series: Optional["scout_compute_representation_api_ChannelLocator"] = None,
|
|
47600
|
-
external_variable_reference: Optional[str] = None,
|
|
47601
|
-
type_of_union: Optional[str] = None
|
|
47602
|
-
) -> None:
|
|
47603
|
-
if type_of_union is None:
|
|
47604
|
-
if (double is not None) + (duration is not None) + (integer is not None) + (string_set is not None) + (timestamp is not None) + (function_rid is not None) + (series is not None) + (external_variable_reference is not None) != 1:
|
|
47605
|
-
raise ValueError('a union must contain a single member')
|
|
47606
|
-
|
|
47607
|
-
if double is not None:
|
|
47608
|
-
self._double = double
|
|
47609
|
-
self._type = 'double'
|
|
47610
|
-
if duration is not None:
|
|
47611
|
-
self._duration = duration
|
|
47612
|
-
self._type = 'duration'
|
|
47613
|
-
if integer is not None:
|
|
47614
|
-
self._integer = integer
|
|
47615
|
-
self._type = 'integer'
|
|
47616
|
-
if string_set is not None:
|
|
47617
|
-
self._string_set = string_set
|
|
47618
|
-
self._type = 'stringSet'
|
|
47619
|
-
if timestamp is not None:
|
|
47620
|
-
self._timestamp = timestamp
|
|
47621
|
-
self._type = 'timestamp'
|
|
47622
|
-
if function_rid is not None:
|
|
47623
|
-
self._function_rid = function_rid
|
|
47624
|
-
self._type = 'functionRid'
|
|
47625
|
-
if series is not None:
|
|
47626
|
-
self._series = series
|
|
47627
|
-
self._type = 'series'
|
|
47628
|
-
if external_variable_reference is not None:
|
|
47629
|
-
self._external_variable_reference = external_variable_reference
|
|
47630
|
-
self._type = 'externalVariableReference'
|
|
47631
|
-
|
|
47632
|
-
elif type_of_union == 'double':
|
|
47633
|
-
if double is None:
|
|
47634
|
-
raise ValueError('a union value must not be None')
|
|
47635
|
-
self._double = double
|
|
47636
|
-
self._type = 'double'
|
|
47637
|
-
elif type_of_union == 'duration':
|
|
47638
|
-
if duration is None:
|
|
47639
|
-
raise ValueError('a union value must not be None')
|
|
47640
|
-
self._duration = duration
|
|
47641
|
-
self._type = 'duration'
|
|
47642
|
-
elif type_of_union == 'integer':
|
|
47643
|
-
if integer is None:
|
|
47644
|
-
raise ValueError('a union value must not be None')
|
|
47645
|
-
self._integer = integer
|
|
47646
|
-
self._type = 'integer'
|
|
47647
|
-
elif type_of_union == 'stringSet':
|
|
47648
|
-
if string_set is None:
|
|
47649
|
-
raise ValueError('a union value must not be None')
|
|
47650
|
-
self._string_set = string_set
|
|
47651
|
-
self._type = 'stringSet'
|
|
47652
|
-
elif type_of_union == 'timestamp':
|
|
47653
|
-
if timestamp is None:
|
|
47654
|
-
raise ValueError('a union value must not be None')
|
|
47655
|
-
self._timestamp = timestamp
|
|
47656
|
-
self._type = 'timestamp'
|
|
47657
|
-
elif type_of_union == 'functionRid':
|
|
47658
|
-
if function_rid is None:
|
|
47659
|
-
raise ValueError('a union value must not be None')
|
|
47660
|
-
self._function_rid = function_rid
|
|
47661
|
-
self._type = 'functionRid'
|
|
47662
|
-
elif type_of_union == 'series':
|
|
47663
|
-
if series is None:
|
|
47664
|
-
raise ValueError('a union value must not be None')
|
|
47665
|
-
self._series = series
|
|
47666
|
-
self._type = 'series'
|
|
47667
|
-
elif type_of_union == 'externalVariableReference':
|
|
47668
|
-
if external_variable_reference is None:
|
|
47669
|
-
raise ValueError('a union value must not be None')
|
|
47670
|
-
self._external_variable_reference = external_variable_reference
|
|
47671
|
-
self._type = 'externalVariableReference'
|
|
47672
|
-
|
|
47673
|
-
@builtins.property
|
|
47674
|
-
def double(self) -> Optional[float]:
|
|
47675
|
-
return self._double
|
|
47676
|
-
|
|
47677
|
-
@builtins.property
|
|
47678
|
-
def duration(self) -> Optional["scout_run_api_Duration"]:
|
|
47679
|
-
return self._duration
|
|
47680
|
-
|
|
47681
|
-
@builtins.property
|
|
47682
|
-
def integer(self) -> Optional[int]:
|
|
47683
|
-
return self._integer
|
|
47684
|
-
|
|
47685
|
-
@builtins.property
|
|
47686
|
-
def string_set(self) -> Optional[List[str]]:
|
|
47687
|
-
return self._string_set
|
|
47688
|
-
|
|
47689
|
-
@builtins.property
|
|
47690
|
-
def timestamp(self) -> Optional["api_Timestamp"]:
|
|
47691
|
-
return self._timestamp
|
|
47692
|
-
|
|
47693
|
-
@builtins.property
|
|
47694
|
-
def function_rid(self) -> Optional[str]:
|
|
47695
|
-
return self._function_rid
|
|
47696
|
-
|
|
47697
|
-
@builtins.property
|
|
47698
|
-
def series(self) -> Optional["scout_compute_representation_api_ChannelLocator"]:
|
|
47699
|
-
return self._series
|
|
47700
|
-
|
|
47701
|
-
@builtins.property
|
|
47702
|
-
def external_variable_reference(self) -> Optional[str]:
|
|
47703
|
-
return self._external_variable_reference
|
|
47704
|
-
|
|
47705
|
-
def accept(self, visitor) -> Any:
|
|
47706
|
-
if not isinstance(visitor, scout_compute_representation_api_ComputeRepresentationVariableValueVisitor):
|
|
47707
|
-
raise ValueError('{} is not an instance of scout_compute_representation_api_ComputeRepresentationVariableValueVisitor'.format(visitor.__class__.__name__))
|
|
47708
|
-
if self._type == 'double' and self.double is not None:
|
|
47709
|
-
return visitor._double(self.double)
|
|
47710
|
-
if self._type == 'duration' and self.duration is not None:
|
|
47711
|
-
return visitor._duration(self.duration)
|
|
47712
|
-
if self._type == 'integer' and self.integer is not None:
|
|
47713
|
-
return visitor._integer(self.integer)
|
|
47714
|
-
if self._type == 'stringSet' and self.string_set is not None:
|
|
47715
|
-
return visitor._string_set(self.string_set)
|
|
47716
|
-
if self._type == 'timestamp' and self.timestamp is not None:
|
|
47717
|
-
return visitor._timestamp(self.timestamp)
|
|
47718
|
-
if self._type == 'functionRid' and self.function_rid is not None:
|
|
47719
|
-
return visitor._function_rid(self.function_rid)
|
|
47720
|
-
if self._type == 'series' and self.series is not None:
|
|
47721
|
-
return visitor._series(self.series)
|
|
47722
|
-
if self._type == 'externalVariableReference' and self.external_variable_reference is not None:
|
|
47723
|
-
return visitor._external_variable_reference(self.external_variable_reference)
|
|
47724
|
-
|
|
47725
|
-
|
|
47726
|
-
scout_compute_representation_api_ComputeRepresentationVariableValue.__name__ = "ComputeRepresentationVariableValue"
|
|
47727
|
-
scout_compute_representation_api_ComputeRepresentationVariableValue.__qualname__ = "ComputeRepresentationVariableValue"
|
|
47728
|
-
scout_compute_representation_api_ComputeRepresentationVariableValue.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47729
|
-
|
|
47730
|
-
|
|
47731
|
-
class scout_compute_representation_api_ComputeRepresentationVariableValueVisitor:
|
|
47732
|
-
|
|
47733
|
-
@abstractmethod
|
|
47734
|
-
def _double(self, double: float) -> Any:
|
|
47735
|
-
pass
|
|
47736
|
-
|
|
47737
|
-
@abstractmethod
|
|
47738
|
-
def _duration(self, duration: "scout_run_api_Duration") -> Any:
|
|
47739
|
-
pass
|
|
47740
|
-
|
|
47741
|
-
@abstractmethod
|
|
47742
|
-
def _integer(self, integer: int) -> Any:
|
|
47743
|
-
pass
|
|
47744
|
-
|
|
47745
|
-
@abstractmethod
|
|
47746
|
-
def _string_set(self, string_set: List[str]) -> Any:
|
|
47747
|
-
pass
|
|
47748
|
-
|
|
47749
|
-
@abstractmethod
|
|
47750
|
-
def _timestamp(self, timestamp: "api_Timestamp") -> Any:
|
|
47751
|
-
pass
|
|
47752
|
-
|
|
47753
|
-
@abstractmethod
|
|
47754
|
-
def _function_rid(self, function_rid: str) -> Any:
|
|
47755
|
-
pass
|
|
47756
|
-
|
|
47757
|
-
@abstractmethod
|
|
47758
|
-
def _series(self, series: "scout_compute_representation_api_ChannelLocator") -> Any:
|
|
47759
|
-
pass
|
|
47760
|
-
|
|
47761
|
-
@abstractmethod
|
|
47762
|
-
def _external_variable_reference(self, external_variable_reference: str) -> Any:
|
|
47763
|
-
pass
|
|
47764
|
-
|
|
47765
|
-
|
|
47766
|
-
scout_compute_representation_api_ComputeRepresentationVariableValueVisitor.__name__ = "ComputeRepresentationVariableValueVisitor"
|
|
47767
|
-
scout_compute_representation_api_ComputeRepresentationVariableValueVisitor.__qualname__ = "ComputeRepresentationVariableValueVisitor"
|
|
47768
|
-
scout_compute_representation_api_ComputeRepresentationVariableValueVisitor.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47769
|
-
|
|
47770
|
-
|
|
47771
|
-
class scout_compute_representation_api_ErrorExpressionToComputeResult(ConjureBeanType):
|
|
47772
|
-
|
|
47773
|
-
@builtins.classmethod
|
|
47774
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47775
|
-
return {
|
|
47776
|
-
'error_message': ConjureFieldDefinition('errorMessage', str)
|
|
47777
|
-
}
|
|
47778
|
-
|
|
47779
|
-
__slots__: List[str] = ['_error_message']
|
|
47780
|
-
|
|
47781
|
-
def __init__(self, error_message: str) -> None:
|
|
47782
|
-
self._error_message = error_message
|
|
47783
|
-
|
|
47784
|
-
@builtins.property
|
|
47785
|
-
def error_message(self) -> str:
|
|
47786
|
-
return self._error_message
|
|
47787
|
-
|
|
47788
|
-
|
|
47789
|
-
scout_compute_representation_api_ErrorExpressionToComputeResult.__name__ = "ErrorExpressionToComputeResult"
|
|
47790
|
-
scout_compute_representation_api_ErrorExpressionToComputeResult.__qualname__ = "ErrorExpressionToComputeResult"
|
|
47791
|
-
scout_compute_representation_api_ErrorExpressionToComputeResult.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47792
|
-
|
|
47793
|
-
|
|
47794
|
-
class scout_compute_representation_api_ExpressionToComputeRequest(ConjureBeanType):
|
|
47795
|
-
|
|
47796
|
-
@builtins.classmethod
|
|
47797
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47798
|
-
return {
|
|
47799
|
-
'expression': ConjureFieldDefinition('expression', scout_compute_representation_api_ComputeExpression),
|
|
47800
|
-
'default_ref_name': ConjureFieldDefinition('defaultRefName', OptionalTypeWrapper[str])
|
|
47801
|
-
}
|
|
47802
|
-
|
|
47803
|
-
__slots__: List[str] = ['_expression', '_default_ref_name']
|
|
47804
|
-
|
|
47805
|
-
def __init__(self, expression: str, default_ref_name: Optional[str] = None) -> None:
|
|
47806
|
-
self._expression = expression
|
|
47807
|
-
self._default_ref_name = default_ref_name
|
|
47808
|
-
|
|
47809
|
-
@builtins.property
|
|
47810
|
-
def expression(self) -> str:
|
|
47811
|
-
return self._expression
|
|
47812
|
-
|
|
47813
|
-
@builtins.property
|
|
47814
|
-
def default_ref_name(self) -> Optional[str]:
|
|
47815
|
-
return self._default_ref_name
|
|
47816
|
-
|
|
47817
|
-
|
|
47818
|
-
scout_compute_representation_api_ExpressionToComputeRequest.__name__ = "ExpressionToComputeRequest"
|
|
47819
|
-
scout_compute_representation_api_ExpressionToComputeRequest.__qualname__ = "ExpressionToComputeRequest"
|
|
47820
|
-
scout_compute_representation_api_ExpressionToComputeRequest.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47821
|
-
|
|
47822
|
-
|
|
47823
|
-
class scout_compute_representation_api_ExpressionToComputeResult(ConjureUnionType):
|
|
47824
|
-
_success: Optional["scout_compute_representation_api_SuccessExpressionToComputeResult"] = None
|
|
47825
|
-
_error: Optional["scout_compute_representation_api_ErrorExpressionToComputeResult"] = None
|
|
47826
|
-
|
|
47827
|
-
@builtins.classmethod
|
|
47828
|
-
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47829
|
-
return {
|
|
47830
|
-
'success': ConjureFieldDefinition('success', scout_compute_representation_api_SuccessExpressionToComputeResult),
|
|
47831
|
-
'error': ConjureFieldDefinition('error', scout_compute_representation_api_ErrorExpressionToComputeResult)
|
|
47832
|
-
}
|
|
47833
|
-
|
|
47834
|
-
def __init__(
|
|
47835
|
-
self,
|
|
47836
|
-
success: Optional["scout_compute_representation_api_SuccessExpressionToComputeResult"] = None,
|
|
47837
|
-
error: Optional["scout_compute_representation_api_ErrorExpressionToComputeResult"] = None,
|
|
47838
|
-
type_of_union: Optional[str] = None
|
|
47839
|
-
) -> None:
|
|
47840
|
-
if type_of_union is None:
|
|
47841
|
-
if (success is not None) + (error is not None) != 1:
|
|
47842
|
-
raise ValueError('a union must contain a single member')
|
|
47843
|
-
|
|
47844
|
-
if success is not None:
|
|
47845
|
-
self._success = success
|
|
47846
|
-
self._type = 'success'
|
|
47847
|
-
if error is not None:
|
|
47848
|
-
self._error = error
|
|
47849
|
-
self._type = 'error'
|
|
47850
|
-
|
|
47851
|
-
elif type_of_union == 'success':
|
|
47852
|
-
if success is None:
|
|
47853
|
-
raise ValueError('a union value must not be None')
|
|
47854
|
-
self._success = success
|
|
47855
|
-
self._type = 'success'
|
|
47856
|
-
elif type_of_union == 'error':
|
|
47857
|
-
if error is None:
|
|
47858
|
-
raise ValueError('a union value must not be None')
|
|
47859
|
-
self._error = error
|
|
47860
|
-
self._type = 'error'
|
|
47861
|
-
|
|
47862
|
-
@builtins.property
|
|
47863
|
-
def success(self) -> Optional["scout_compute_representation_api_SuccessExpressionToComputeResult"]:
|
|
47864
|
-
return self._success
|
|
47865
|
-
|
|
47866
|
-
@builtins.property
|
|
47867
|
-
def error(self) -> Optional["scout_compute_representation_api_ErrorExpressionToComputeResult"]:
|
|
47868
|
-
return self._error
|
|
47869
|
-
|
|
47870
|
-
def accept(self, visitor) -> Any:
|
|
47871
|
-
if not isinstance(visitor, scout_compute_representation_api_ExpressionToComputeResultVisitor):
|
|
47872
|
-
raise ValueError('{} is not an instance of scout_compute_representation_api_ExpressionToComputeResultVisitor'.format(visitor.__class__.__name__))
|
|
47873
|
-
if self._type == 'success' and self.success is not None:
|
|
47874
|
-
return visitor._success(self.success)
|
|
47875
|
-
if self._type == 'error' and self.error is not None:
|
|
47876
|
-
return visitor._error(self.error)
|
|
47877
|
-
|
|
47878
|
-
|
|
47879
|
-
scout_compute_representation_api_ExpressionToComputeResult.__name__ = "ExpressionToComputeResult"
|
|
47880
|
-
scout_compute_representation_api_ExpressionToComputeResult.__qualname__ = "ExpressionToComputeResult"
|
|
47881
|
-
scout_compute_representation_api_ExpressionToComputeResult.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47882
|
-
|
|
47883
|
-
|
|
47884
|
-
class scout_compute_representation_api_ExpressionToComputeResultVisitor:
|
|
47885
|
-
|
|
47886
|
-
@abstractmethod
|
|
47887
|
-
def _success(self, success: "scout_compute_representation_api_SuccessExpressionToComputeResult") -> Any:
|
|
47888
|
-
pass
|
|
47889
|
-
|
|
47890
|
-
@abstractmethod
|
|
47891
|
-
def _error(self, error: "scout_compute_representation_api_ErrorExpressionToComputeResult") -> Any:
|
|
47892
|
-
pass
|
|
47893
|
-
|
|
47894
|
-
|
|
47895
|
-
scout_compute_representation_api_ExpressionToComputeResultVisitor.__name__ = "ExpressionToComputeResultVisitor"
|
|
47896
|
-
scout_compute_representation_api_ExpressionToComputeResultVisitor.__qualname__ = "ExpressionToComputeResultVisitor"
|
|
47897
|
-
scout_compute_representation_api_ExpressionToComputeResultVisitor.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47898
|
-
|
|
47899
|
-
|
|
47900
|
-
class scout_compute_representation_api_Node(ConjureUnionType):
|
|
47901
|
-
_enumerated_series: Optional["scout_compute_api_EnumSeries"] = None
|
|
47902
|
-
_numeric_series: Optional["scout_compute_api_NumericSeries"] = None
|
|
47903
|
-
_range_series: Optional["scout_compute_api_RangeSeries"] = None
|
|
47904
|
-
|
|
47905
|
-
@builtins.classmethod
|
|
47906
|
-
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
47907
|
-
return {
|
|
47908
|
-
'enumerated_series': ConjureFieldDefinition('enumeratedSeries', scout_compute_api_EnumSeries),
|
|
47909
|
-
'numeric_series': ConjureFieldDefinition('numericSeries', scout_compute_api_NumericSeries),
|
|
47910
|
-
'range_series': ConjureFieldDefinition('rangeSeries', scout_compute_api_RangeSeries)
|
|
47911
|
-
}
|
|
47912
|
-
|
|
47913
|
-
def __init__(
|
|
47914
|
-
self,
|
|
47915
|
-
enumerated_series: Optional["scout_compute_api_EnumSeries"] = None,
|
|
47916
|
-
numeric_series: Optional["scout_compute_api_NumericSeries"] = None,
|
|
47917
|
-
range_series: Optional["scout_compute_api_RangeSeries"] = None,
|
|
47918
|
-
type_of_union: Optional[str] = None
|
|
47919
|
-
) -> None:
|
|
47920
|
-
if type_of_union is None:
|
|
47921
|
-
if (enumerated_series is not None) + (numeric_series is not None) + (range_series is not None) != 1:
|
|
47922
|
-
raise ValueError('a union must contain a single member')
|
|
47923
|
-
|
|
47924
|
-
if enumerated_series is not None:
|
|
47925
|
-
self._enumerated_series = enumerated_series
|
|
47926
|
-
self._type = 'enumeratedSeries'
|
|
47927
|
-
if numeric_series is not None:
|
|
47928
|
-
self._numeric_series = numeric_series
|
|
47929
|
-
self._type = 'numericSeries'
|
|
47930
|
-
if range_series is not None:
|
|
47931
|
-
self._range_series = range_series
|
|
47932
|
-
self._type = 'rangeSeries'
|
|
47933
|
-
|
|
47934
|
-
elif type_of_union == 'enumeratedSeries':
|
|
47935
|
-
if enumerated_series is None:
|
|
47936
|
-
raise ValueError('a union value must not be None')
|
|
47937
|
-
self._enumerated_series = enumerated_series
|
|
47938
|
-
self._type = 'enumeratedSeries'
|
|
47939
|
-
elif type_of_union == 'numericSeries':
|
|
47940
|
-
if numeric_series is None:
|
|
47941
|
-
raise ValueError('a union value must not be None')
|
|
47942
|
-
self._numeric_series = numeric_series
|
|
47943
|
-
self._type = 'numericSeries'
|
|
47944
|
-
elif type_of_union == 'rangeSeries':
|
|
47945
|
-
if range_series is None:
|
|
47946
|
-
raise ValueError('a union value must not be None')
|
|
47947
|
-
self._range_series = range_series
|
|
47948
|
-
self._type = 'rangeSeries'
|
|
47949
|
-
|
|
47950
|
-
@builtins.property
|
|
47951
|
-
def enumerated_series(self) -> Optional["scout_compute_api_EnumSeries"]:
|
|
47952
|
-
return self._enumerated_series
|
|
47953
|
-
|
|
47954
|
-
@builtins.property
|
|
47955
|
-
def numeric_series(self) -> Optional["scout_compute_api_NumericSeries"]:
|
|
47956
|
-
return self._numeric_series
|
|
47957
|
-
|
|
47958
|
-
@builtins.property
|
|
47959
|
-
def range_series(self) -> Optional["scout_compute_api_RangeSeries"]:
|
|
47960
|
-
return self._range_series
|
|
47961
|
-
|
|
47962
|
-
def accept(self, visitor) -> Any:
|
|
47963
|
-
if not isinstance(visitor, scout_compute_representation_api_NodeVisitor):
|
|
47964
|
-
raise ValueError('{} is not an instance of scout_compute_representation_api_NodeVisitor'.format(visitor.__class__.__name__))
|
|
47965
|
-
if self._type == 'enumeratedSeries' and self.enumerated_series is not None:
|
|
47966
|
-
return visitor._enumerated_series(self.enumerated_series)
|
|
47967
|
-
if self._type == 'numericSeries' and self.numeric_series is not None:
|
|
47968
|
-
return visitor._numeric_series(self.numeric_series)
|
|
47969
|
-
if self._type == 'rangeSeries' and self.range_series is not None:
|
|
47970
|
-
return visitor._range_series(self.range_series)
|
|
47971
|
-
|
|
47972
|
-
|
|
47973
|
-
scout_compute_representation_api_Node.__name__ = "Node"
|
|
47974
|
-
scout_compute_representation_api_Node.__qualname__ = "Node"
|
|
47975
|
-
scout_compute_representation_api_Node.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47976
|
-
|
|
47977
|
-
|
|
47978
|
-
class scout_compute_representation_api_NodeVisitor:
|
|
47979
|
-
|
|
47980
|
-
@abstractmethod
|
|
47981
|
-
def _enumerated_series(self, enumerated_series: "scout_compute_api_EnumSeries") -> Any:
|
|
47982
|
-
pass
|
|
47983
|
-
|
|
47984
|
-
@abstractmethod
|
|
47985
|
-
def _numeric_series(self, numeric_series: "scout_compute_api_NumericSeries") -> Any:
|
|
47986
|
-
pass
|
|
47987
|
-
|
|
47988
|
-
@abstractmethod
|
|
47989
|
-
def _range_series(self, range_series: "scout_compute_api_RangeSeries") -> Any:
|
|
47990
|
-
pass
|
|
47991
|
-
|
|
47992
|
-
|
|
47993
|
-
scout_compute_representation_api_NodeVisitor.__name__ = "NodeVisitor"
|
|
47994
|
-
scout_compute_representation_api_NodeVisitor.__qualname__ = "NodeVisitor"
|
|
47995
|
-
scout_compute_representation_api_NodeVisitor.__module__ = "nominal_api.scout_compute_representation_api"
|
|
47996
|
-
|
|
47997
|
-
|
|
47998
|
-
class scout_compute_representation_api_SuccessExpressionToComputeResult(ConjureBeanType):
|
|
47999
|
-
|
|
48000
|
-
@builtins.classmethod
|
|
48001
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
48002
|
-
return {
|
|
48003
|
-
'node': ConjureFieldDefinition('node', scout_compute_representation_api_CompiledNode)
|
|
48004
|
-
}
|
|
48005
|
-
|
|
48006
|
-
__slots__: List[str] = ['_node']
|
|
48007
|
-
|
|
48008
|
-
def __init__(self, node: "scout_compute_representation_api_CompiledNode") -> None:
|
|
48009
|
-
self._node = node
|
|
48010
|
-
|
|
48011
|
-
@builtins.property
|
|
48012
|
-
def node(self) -> "scout_compute_representation_api_CompiledNode":
|
|
48013
|
-
return self._node
|
|
48014
|
-
|
|
48015
|
-
|
|
48016
|
-
scout_compute_representation_api_SuccessExpressionToComputeResult.__name__ = "SuccessExpressionToComputeResult"
|
|
48017
|
-
scout_compute_representation_api_SuccessExpressionToComputeResult.__qualname__ = "SuccessExpressionToComputeResult"
|
|
48018
|
-
scout_compute_representation_api_SuccessExpressionToComputeResult.__module__ = "nominal_api.scout_compute_representation_api"
|
|
48019
|
-
|
|
48020
|
-
|
|
48021
47223
|
class scout_compute_resolved_api_AbsoluteThreshold(ConjureBeanType):
|
|
48022
47224
|
|
|
48023
47225
|
@builtins.classmethod
|
|
@@ -79862,8 +79064,6 @@ timeseries_logicalseries_api_MeasurementName = str
|
|
|
79862
79064
|
|
|
79863
79065
|
themes_api_HexColor = str
|
|
79864
79066
|
|
|
79865
|
-
scout_compute_representation_api_ComputeExpression = str
|
|
79866
|
-
|
|
79867
79067
|
scout_datasource_connection_api_ColumnName = str
|
|
79868
79068
|
|
|
79869
79069
|
storage_writer_api_Field = str
|