nominal-api 0.648.0__py3-none-any.whl → 0.649.1__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/_impl.py CHANGED
@@ -445,16 +445,18 @@ results to clients as part of a response object when directly throwing an except
445
445
  'name': ConjureFieldDefinition('name', str),
446
446
  'message': ConjureFieldDefinition('message', OptionalTypeWrapper[str]),
447
447
  'error_instance_id': ConjureFieldDefinition('errorInstanceId', str),
448
- 'status_code': ConjureFieldDefinition('statusCode', int)
448
+ 'status_code': ConjureFieldDefinition('statusCode', int),
449
+ 'params': ConjureFieldDefinition('params', Dict[str, str])
449
450
  }
450
451
 
451
- __slots__: List[str] = ['_name', '_message', '_error_instance_id', '_status_code']
452
+ __slots__: List[str] = ['_name', '_message', '_error_instance_id', '_status_code', '_params']
452
453
 
453
- def __init__(self, error_instance_id: str, name: str, status_code: int, message: Optional[str] = None) -> None:
454
+ def __init__(self, error_instance_id: str, name: str, params: Dict[str, str], status_code: int, message: Optional[str] = None) -> None:
454
455
  self._name = name
455
456
  self._message = message
456
457
  self._error_instance_id = error_instance_id
457
458
  self._status_code = status_code
459
+ self._params = params
458
460
 
459
461
  @builtins.property
460
462
  def name(self) -> str:
@@ -472,6 +474,10 @@ results to clients as part of a response object when directly throwing an except
472
474
  def status_code(self) -> int:
473
475
  return self._status_code
474
476
 
477
+ @builtins.property
478
+ def params(self) -> Dict[str, str]:
479
+ return self._params
480
+
475
481
 
476
482
  api_SerializableError.__name__ = "SerializableError"
477
483
  api_SerializableError.__qualname__ = "SerializableError"
@@ -13672,6 +13678,71 @@ a RunNotFound error will be thrown.
13672
13678
  _decoder = ConjureDecoder()
13673
13679
  return _decoder.decode(_response.json(), scout_notebook_api_NotebookMetadata, self._return_none_for_unknown_union_types)
13674
13680
 
13681
+ def get_used_ref_names(self, auth_header: str, rid: str) -> List[str]:
13682
+ """
13683
+ Returns the set of all ref names used by the workbook.
13684
+ """
13685
+
13686
+ _headers: Dict[str, Any] = {
13687
+ 'Accept': 'application/json',
13688
+ 'Authorization': auth_header,
13689
+ }
13690
+
13691
+ _params: Dict[str, Any] = {
13692
+ }
13693
+
13694
+ _path_params: Dict[str, Any] = {
13695
+ 'rid': rid,
13696
+ }
13697
+
13698
+ _json: Any = None
13699
+
13700
+ _path = '/scout/v2/notebook/{rid}/ref-names'
13701
+ _path = _path.format(**_path_params)
13702
+
13703
+ _response: Response = self._request(
13704
+ 'GET',
13705
+ self._uri + _path,
13706
+ params=_params,
13707
+ headers=_headers,
13708
+ json=_json)
13709
+
13710
+ _decoder = ConjureDecoder()
13711
+ return _decoder.decode(_response.json(), List[scout_api_DataSourceRefName], self._return_none_for_unknown_union_types)
13712
+
13713
+ def update_ref_names(self, auth_header: str, request: "scout_notebook_api_UpdateRefNameRequest", rid: str) -> "scout_notebook_api_Notebook":
13714
+ """
13715
+ Updates the data source ref names for all variables used in the workbook.
13716
+ """
13717
+
13718
+ _headers: Dict[str, Any] = {
13719
+ 'Accept': 'application/json',
13720
+ 'Content-Type': 'application/json',
13721
+ 'Authorization': auth_header,
13722
+ }
13723
+
13724
+ _params: Dict[str, Any] = {
13725
+ }
13726
+
13727
+ _path_params: Dict[str, Any] = {
13728
+ 'rid': rid,
13729
+ }
13730
+
13731
+ _json: Any = ConjureEncoder().default(request)
13732
+
13733
+ _path = '/scout/v2/notebook/{rid}/update-ref-names'
13734
+ _path = _path.format(**_path_params)
13735
+
13736
+ _response: Response = self._request(
13737
+ 'POST',
13738
+ self._uri + _path,
13739
+ params=_params,
13740
+ headers=_headers,
13741
+ json=_json)
13742
+
13743
+ _decoder = ConjureDecoder()
13744
+ return _decoder.decode(_response.json(), scout_notebook_api_Notebook, self._return_none_for_unknown_union_types)
13745
+
13675
13746
  def get_all_labels_and_properties(self, auth_header: str, workspaces: List[str] = None) -> "scout_notebook_api_GetAllLabelsAndPropertiesResponse":
13676
13747
  """
13677
13748
  Returns all properties (key value pairs) and labels that have been previously used on workbook. These can
@@ -14665,6 +14736,74 @@ Throws if you save to an archived template.
14665
14736
  _decoder = ConjureDecoder()
14666
14737
  return _decoder.decode(_response.json(), scout_template_api_Template, self._return_none_for_unknown_union_types)
14667
14738
 
14739
+ def get_used_ref_names(self, auth_header: str, template_rid: str, branch: Optional[str] = None, commit: Optional[str] = None) -> List[str]:
14740
+ """
14741
+ Returns the set of all ref names used by the template.
14742
+ """
14743
+
14744
+ _headers: Dict[str, Any] = {
14745
+ 'Accept': 'application/json',
14746
+ 'Authorization': auth_header,
14747
+ }
14748
+
14749
+ _params: Dict[str, Any] = {
14750
+ 'branch': branch,
14751
+ 'commit': commit,
14752
+ }
14753
+
14754
+ _path_params: Dict[str, Any] = {
14755
+ 'templateRid': template_rid,
14756
+ }
14757
+
14758
+ _json: Any = None
14759
+
14760
+ _path = '/scout/v1/template/{templateRid}/ref-names'
14761
+ _path = _path.format(**_path_params)
14762
+
14763
+ _response: Response = self._request(
14764
+ 'GET',
14765
+ self._uri + _path,
14766
+ params=_params,
14767
+ headers=_headers,
14768
+ json=_json)
14769
+
14770
+ _decoder = ConjureDecoder()
14771
+ return _decoder.decode(_response.json(), List[scout_api_DataSourceRefName], self._return_none_for_unknown_union_types)
14772
+
14773
+ def update_ref_names(self, auth_header: str, request: "scout_template_api_UpdateRefNameRequest", template_rid: str, branch: Optional[str] = None) -> "scout_template_api_Template":
14774
+ """
14775
+ Updates the data source ref names for all variables used in the template.
14776
+ """
14777
+
14778
+ _headers: Dict[str, Any] = {
14779
+ 'Accept': 'application/json',
14780
+ 'Content-Type': 'application/json',
14781
+ 'Authorization': auth_header,
14782
+ }
14783
+
14784
+ _params: Dict[str, Any] = {
14785
+ 'branch': branch,
14786
+ }
14787
+
14788
+ _path_params: Dict[str, Any] = {
14789
+ 'templateRid': template_rid,
14790
+ }
14791
+
14792
+ _json: Any = ConjureEncoder().default(request)
14793
+
14794
+ _path = '/scout/v1/template/{templateRid}/update-ref-names'
14795
+ _path = _path.format(**_path_params)
14796
+
14797
+ _response: Response = self._request(
14798
+ 'POST',
14799
+ self._uri + _path,
14800
+ params=_params,
14801
+ headers=_headers,
14802
+ json=_json)
14803
+
14804
+ _decoder = ConjureDecoder()
14805
+ return _decoder.decode(_response.json(), scout_template_api_Template, self._return_none_for_unknown_union_types)
14806
+
14668
14807
  def commit(self, auth_header: str, request: "scout_template_api_CommitTemplateRequest", template_rid: str, branch: Optional[str] = None) -> "scout_template_api_Template":
14669
14808
  """
14670
14809
  Creates a commit with a commit message.
@@ -34319,21 +34458,21 @@ scout_compute_api_ComputeNodeRequest.__module__ = "nominal_api.scout_compute_api
34319
34458
 
34320
34459
 
34321
34460
  class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34322
- _numeric: Optional["scout_compute_api_NumericPlot"] = None
34323
- _bucketed_numeric: Optional["scout_compute_api_BucketedNumericPlot"] = None
34324
34461
  _range: Optional[List["scout_compute_api_Range"]] = None
34325
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
34326
34467
  _enum: Optional["scout_compute_api_EnumPlot"] = None
34327
- _paged_log: Optional["scout_compute_api_PagedLogPlot"] = None
34468
+ _enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None
34328
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
34329
34472
  _cartesian: Optional["scout_compute_api_CartesianPlot"] = None
34330
34473
  _bucketed_cartesian: Optional["scout_compute_api_BucketedCartesianPlot"] = None
34331
34474
  _bucketed_cartesian3d: Optional["scout_compute_api_BucketedCartesian3dPlot"] = None
34332
34475
  _bucketed_geo: Optional["scout_compute_api_BucketedGeoPlot"] = None
34333
- _enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None
34334
- _numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None
34335
- _log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None
34336
- _range_value: Optional[Optional["scout_compute_api_Range"]] = None
34337
34476
  _frequency_domain: Optional["scout_compute_api_FrequencyDomainPlot"] = None
34338
34477
  _numeric_histogram: Optional["scout_compute_api_NumericHistogramPlot"] = None
34339
34478
  _enum_histogram: Optional["scout_compute_api_EnumHistogramPlot"] = None
@@ -34342,21 +34481,21 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34342
34481
  @builtins.classmethod
34343
34482
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
34344
34483
  return {
34345
- 'numeric': ConjureFieldDefinition('numeric', scout_compute_api_NumericPlot),
34346
- 'bucketed_numeric': ConjureFieldDefinition('bucketedNumeric', scout_compute_api_BucketedNumericPlot),
34347
34484
  'range': ConjureFieldDefinition('range', List[scout_compute_api_Range]),
34348
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]),
34349
34490
  'enum': ConjureFieldDefinition('enum', scout_compute_api_EnumPlot),
34350
- 'paged_log': ConjureFieldDefinition('pagedLog', scout_compute_api_PagedLogPlot),
34491
+ 'enum_point': ConjureFieldDefinition('enumPoint', OptionalTypeWrapper[scout_compute_api_EnumPoint]),
34351
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]),
34352
34495
  'cartesian': ConjureFieldDefinition('cartesian', scout_compute_api_CartesianPlot),
34353
34496
  'bucketed_cartesian': ConjureFieldDefinition('bucketedCartesian', scout_compute_api_BucketedCartesianPlot),
34354
34497
  'bucketed_cartesian3d': ConjureFieldDefinition('bucketedCartesian3d', scout_compute_api_BucketedCartesian3dPlot),
34355
34498
  'bucketed_geo': ConjureFieldDefinition('bucketedGeo', scout_compute_api_BucketedGeoPlot),
34356
- 'enum_point': ConjureFieldDefinition('enumPoint', OptionalTypeWrapper[scout_compute_api_EnumPoint]),
34357
- 'numeric_point': ConjureFieldDefinition('numericPoint', OptionalTypeWrapper[scout_compute_api_NumericPoint]),
34358
- 'log_point': ConjureFieldDefinition('logPoint', OptionalTypeWrapper[scout_compute_api_LogPoint]),
34359
- 'range_value': ConjureFieldDefinition('rangeValue', OptionalTypeWrapper[scout_compute_api_Range]),
34360
34499
  'frequency_domain': ConjureFieldDefinition('frequencyDomain', scout_compute_api_FrequencyDomainPlot),
34361
34500
  'numeric_histogram': ConjureFieldDefinition('numericHistogram', scout_compute_api_NumericHistogramPlot),
34362
34501
  'enum_histogram': ConjureFieldDefinition('enumHistogram', scout_compute_api_EnumHistogramPlot),
@@ -34365,21 +34504,21 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34365
34504
 
34366
34505
  def __init__(
34367
34506
  self,
34368
- numeric: Optional["scout_compute_api_NumericPlot"] = None,
34369
- bucketed_numeric: Optional["scout_compute_api_BucketedNumericPlot"] = None,
34370
34507
  range: Optional[List["scout_compute_api_Range"]] = None,
34371
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,
34372
34513
  enum: Optional["scout_compute_api_EnumPlot"] = None,
34373
- paged_log: Optional["scout_compute_api_PagedLogPlot"] = None,
34514
+ enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None,
34374
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,
34375
34518
  cartesian: Optional["scout_compute_api_CartesianPlot"] = None,
34376
34519
  bucketed_cartesian: Optional["scout_compute_api_BucketedCartesianPlot"] = None,
34377
34520
  bucketed_cartesian3d: Optional["scout_compute_api_BucketedCartesian3dPlot"] = None,
34378
34521
  bucketed_geo: Optional["scout_compute_api_BucketedGeoPlot"] = None,
34379
- enum_point: Optional[Optional["scout_compute_api_EnumPoint"]] = None,
34380
- numeric_point: Optional[Optional["scout_compute_api_NumericPoint"]] = None,
34381
- log_point: Optional[Optional["scout_compute_api_LogPoint"]] = None,
34382
- range_value: Optional[Optional["scout_compute_api_Range"]] = None,
34383
34522
  frequency_domain: Optional["scout_compute_api_FrequencyDomainPlot"] = None,
34384
34523
  numeric_histogram: Optional["scout_compute_api_NumericHistogramPlot"] = None,
34385
34524
  enum_histogram: Optional["scout_compute_api_EnumHistogramPlot"] = None,
@@ -34387,30 +34526,42 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34387
34526
  type_of_union: Optional[str] = None
34388
34527
  ) -> None:
34389
34528
  if type_of_union is None:
34390
- if (numeric is not None) + (bucketed_numeric is not None) + (range is not None) + (ranges_summary is not None) + (enum is not None) + (paged_log is not None) + (bucketed_enum is not None) + (cartesian is not None) + (bucketed_cartesian is not None) + (bucketed_cartesian3d is not None) + (bucketed_geo is not None) + (enum_point is not None) + (numeric_point is not None) + (log_point is not None) + (range_value is not None) + (frequency_domain is not None) + (numeric_histogram is not None) + (enum_histogram is not None) + (curve_fit is not None) != 1:
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:
34391
34530
  raise ValueError('a union must contain a single member')
34392
34531
 
34393
- if numeric is not None:
34394
- self._numeric = numeric
34395
- self._type = 'numeric'
34396
- if bucketed_numeric is not None:
34397
- self._bucketed_numeric = bucketed_numeric
34398
- self._type = 'bucketedNumeric'
34399
34532
  if range is not None:
34400
34533
  self._range = range
34401
34534
  self._type = 'range'
34402
34535
  if ranges_summary is not None:
34403
34536
  self._ranges_summary = ranges_summary
34404
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'
34405
34550
  if enum is not None:
34406
34551
  self._enum = enum
34407
34552
  self._type = 'enum'
34408
- if paged_log is not None:
34409
- self._paged_log = paged_log
34410
- self._type = 'pagedLog'
34553
+ if enum_point is not None:
34554
+ self._enum_point = enum_point
34555
+ self._type = 'enumPoint'
34411
34556
  if bucketed_enum is not None:
34412
34557
  self._bucketed_enum = bucketed_enum
34413
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'
34414
34565
  if cartesian is not None:
34415
34566
  self._cartesian = cartesian
34416
34567
  self._type = 'cartesian'
@@ -34423,18 +34574,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34423
34574
  if bucketed_geo is not None:
34424
34575
  self._bucketed_geo = bucketed_geo
34425
34576
  self._type = 'bucketedGeo'
34426
- if enum_point is not None:
34427
- self._enum_point = enum_point
34428
- self._type = 'enumPoint'
34429
- if numeric_point is not None:
34430
- self._numeric_point = numeric_point
34431
- self._type = 'numericPoint'
34432
- if log_point is not None:
34433
- self._log_point = log_point
34434
- self._type = 'logPoint'
34435
- if range_value is not None:
34436
- self._range_value = range_value
34437
- self._type = 'rangeValue'
34438
34577
  if frequency_domain is not None:
34439
34578
  self._frequency_domain = frequency_domain
34440
34579
  self._type = 'frequencyDomain'
@@ -34448,6 +34587,21 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34448
34587
  self._curve_fit = curve_fit
34449
34588
  self._type = 'curveFit'
34450
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'
34451
34605
  elif type_of_union == 'numeric':
34452
34606
  if numeric is None:
34453
34607
  raise ValueError('a union value must not be None')
@@ -34458,31 +34612,36 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34458
34612
  raise ValueError('a union value must not be None')
34459
34613
  self._bucketed_numeric = bucketed_numeric
34460
34614
  self._type = 'bucketedNumeric'
34461
- elif type_of_union == 'range':
34462
- if range is None:
34463
- raise ValueError('a union value must not be None')
34464
- self._range = range
34465
- self._type = 'range'
34466
- elif type_of_union == 'rangesSummary':
34467
- if ranges_summary is None:
34615
+ elif type_of_union == 'numericPoint':
34616
+ if numeric_point is None:
34468
34617
  raise ValueError('a union value must not be None')
34469
- self._ranges_summary = ranges_summary
34470
- self._type = 'rangesSummary'
34618
+ self._numeric_point = numeric_point
34619
+ self._type = 'numericPoint'
34471
34620
  elif type_of_union == 'enum':
34472
34621
  if enum is None:
34473
34622
  raise ValueError('a union value must not be None')
34474
34623
  self._enum = enum
34475
34624
  self._type = 'enum'
34476
- elif type_of_union == 'pagedLog':
34477
- if paged_log is None:
34625
+ elif type_of_union == 'enumPoint':
34626
+ if enum_point is None:
34478
34627
  raise ValueError('a union value must not be None')
34479
- self._paged_log = paged_log
34480
- self._type = 'pagedLog'
34628
+ self._enum_point = enum_point
34629
+ self._type = 'enumPoint'
34481
34630
  elif type_of_union == 'bucketedEnum':
34482
34631
  if bucketed_enum is None:
34483
34632
  raise ValueError('a union value must not be None')
34484
34633
  self._bucketed_enum = bucketed_enum
34485
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'
34486
34645
  elif type_of_union == 'cartesian':
34487
34646
  if cartesian is None:
34488
34647
  raise ValueError('a union value must not be None')
@@ -34503,26 +34662,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34503
34662
  raise ValueError('a union value must not be None')
34504
34663
  self._bucketed_geo = bucketed_geo
34505
34664
  self._type = 'bucketedGeo'
34506
- elif type_of_union == 'enumPoint':
34507
- if enum_point is None:
34508
- raise ValueError('a union value must not be None')
34509
- self._enum_point = enum_point
34510
- self._type = 'enumPoint'
34511
- elif type_of_union == 'numericPoint':
34512
- if numeric_point is None:
34513
- raise ValueError('a union value must not be None')
34514
- self._numeric_point = numeric_point
34515
- self._type = 'numericPoint'
34516
- elif type_of_union == 'logPoint':
34517
- if log_point is None:
34518
- raise ValueError('a union value must not be None')
34519
- self._log_point = log_point
34520
- self._type = 'logPoint'
34521
- elif type_of_union == 'rangeValue':
34522
- if range_value is None:
34523
- raise ValueError('a union value must not be None')
34524
- self._range_value = range_value
34525
- self._type = 'rangeValue'
34526
34665
  elif type_of_union == 'frequencyDomain':
34527
34666
  if frequency_domain is None:
34528
34667
  raise ValueError('a union value must not be None')
@@ -34544,6 +34683,18 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34544
34683
  self._curve_fit = curve_fit
34545
34684
  self._type = 'curveFit'
34546
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
+
34547
34698
  @builtins.property
34548
34699
  def numeric(self) -> Optional["scout_compute_api_NumericPlot"]:
34549
34700
  return self._numeric
@@ -34553,25 +34704,29 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34553
34704
  return self._bucketed_numeric
34554
34705
 
34555
34706
  @builtins.property
34556
- def range(self) -> Optional[List["scout_compute_api_Range"]]:
34557
- return self._range
34558
-
34559
- @builtins.property
34560
- def ranges_summary(self) -> Optional["scout_compute_api_RangesSummary"]:
34561
- return self._ranges_summary
34707
+ def numeric_point(self) -> Optional[Optional["scout_compute_api_NumericPoint"]]:
34708
+ return self._numeric_point
34562
34709
 
34563
34710
  @builtins.property
34564
34711
  def enum(self) -> Optional["scout_compute_api_EnumPlot"]:
34565
34712
  return self._enum
34566
34713
 
34567
34714
  @builtins.property
34568
- def paged_log(self) -> Optional["scout_compute_api_PagedLogPlot"]:
34569
- return self._paged_log
34715
+ def enum_point(self) -> Optional[Optional["scout_compute_api_EnumPoint"]]:
34716
+ return self._enum_point
34570
34717
 
34571
34718
  @builtins.property
34572
34719
  def bucketed_enum(self) -> Optional["scout_compute_api_BucketedEnumPlot"]:
34573
34720
  return self._bucketed_enum
34574
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
+
34575
34730
  @builtins.property
34576
34731
  def cartesian(self) -> Optional["scout_compute_api_CartesianPlot"]:
34577
34732
  return self._cartesian
@@ -34588,22 +34743,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34588
34743
  def bucketed_geo(self) -> Optional["scout_compute_api_BucketedGeoPlot"]:
34589
34744
  return self._bucketed_geo
34590
34745
 
34591
- @builtins.property
34592
- def enum_point(self) -> Optional[Optional["scout_compute_api_EnumPoint"]]:
34593
- return self._enum_point
34594
-
34595
- @builtins.property
34596
- def numeric_point(self) -> Optional[Optional["scout_compute_api_NumericPoint"]]:
34597
- return self._numeric_point
34598
-
34599
- @builtins.property
34600
- def log_point(self) -> Optional[Optional["scout_compute_api_LogPoint"]]:
34601
- return self._log_point
34602
-
34603
- @builtins.property
34604
- def range_value(self) -> Optional[Optional["scout_compute_api_Range"]]:
34605
- return self._range_value
34606
-
34607
34746
  @builtins.property
34608
34747
  def frequency_domain(self) -> Optional["scout_compute_api_FrequencyDomainPlot"]:
34609
34748
  return self._frequency_domain
@@ -34623,20 +34762,28 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34623
34762
  def accept(self, visitor) -> Any:
34624
34763
  if not isinstance(visitor, scout_compute_api_ComputeNodeResponseVisitor):
34625
34764
  raise ValueError('{} is not an instance of scout_compute_api_ComputeNodeResponseVisitor'.format(visitor.__class__.__name__))
34626
- if self._type == 'numeric' and self.numeric is not None:
34627
- return visitor._numeric(self.numeric)
34628
- if self._type == 'bucketedNumeric' and self.bucketed_numeric is not None:
34629
- return visitor._bucketed_numeric(self.bucketed_numeric)
34630
34765
  if self._type == 'range' and self.range is not None:
34631
34766
  return visitor._range(self.range)
34632
34767
  if self._type == 'rangesSummary' and self.ranges_summary is not None:
34633
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)
34634
34777
  if self._type == 'enum' and self.enum is not None:
34635
34778
  return visitor._enum(self.enum)
34636
- if self._type == 'pagedLog' and self.paged_log is not None:
34637
- return visitor._paged_log(self.paged_log)
34779
+ if self._type == 'enumPoint' and self.enum_point is not None:
34780
+ return visitor._enum_point(self.enum_point)
34638
34781
  if self._type == 'bucketedEnum' and self.bucketed_enum is not None:
34639
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)
34640
34787
  if self._type == 'cartesian' and self.cartesian is not None:
34641
34788
  return visitor._cartesian(self.cartesian)
34642
34789
  if self._type == 'bucketedCartesian' and self.bucketed_cartesian is not None:
@@ -34645,14 +34792,6 @@ class scout_compute_api_ComputeNodeResponse(ConjureUnionType):
34645
34792
  return visitor._bucketed_cartesian3d(self.bucketed_cartesian3d)
34646
34793
  if self._type == 'bucketedGeo' and self.bucketed_geo is not None:
34647
34794
  return visitor._bucketed_geo(self.bucketed_geo)
34648
- if self._type == 'enumPoint' and self.enum_point is not None:
34649
- return visitor._enum_point(self.enum_point)
34650
- if self._type == 'numericPoint' and self.numeric_point is not None:
34651
- return visitor._numeric_point(self.numeric_point)
34652
- if self._type == 'logPoint' and self.log_point is not None:
34653
- return visitor._log_point(self.log_point)
34654
- if self._type == 'rangeValue' and self.range_value is not None:
34655
- return visitor._range_value(self.range_value)
34656
34795
  if self._type == 'frequencyDomain' and self.frequency_domain is not None:
34657
34796
  return visitor._frequency_domain(self.frequency_domain)
34658
34797
  if self._type == 'numericHistogram' and self.numeric_histogram is not None:
@@ -34671,63 +34810,63 @@ scout_compute_api_ComputeNodeResponse.__module__ = "nominal_api.scout_compute_ap
34671
34810
  class scout_compute_api_ComputeNodeResponseVisitor:
34672
34811
 
34673
34812
  @abstractmethod
34674
- def _numeric(self, numeric: "scout_compute_api_NumericPlot") -> Any:
34813
+ def _range(self, range: List["scout_compute_api_Range"]) -> Any:
34675
34814
  pass
34676
34815
 
34677
34816
  @abstractmethod
34678
- def _bucketed_numeric(self, bucketed_numeric: "scout_compute_api_BucketedNumericPlot") -> Any:
34817
+ def _ranges_summary(self, ranges_summary: "scout_compute_api_RangesSummary") -> Any:
34679
34818
  pass
34680
34819
 
34681
34820
  @abstractmethod
34682
- def _range(self, range: List["scout_compute_api_Range"]) -> Any:
34821
+ def _range_value(self, range_value: Optional["scout_compute_api_Range"]) -> Any:
34683
34822
  pass
34684
34823
 
34685
34824
  @abstractmethod
34686
- def _ranges_summary(self, ranges_summary: "scout_compute_api_RangesSummary") -> Any:
34825
+ def _numeric(self, numeric: "scout_compute_api_NumericPlot") -> Any:
34687
34826
  pass
34688
34827
 
34689
34828
  @abstractmethod
34690
- def _enum(self, enum: "scout_compute_api_EnumPlot") -> Any:
34829
+ def _bucketed_numeric(self, bucketed_numeric: "scout_compute_api_BucketedNumericPlot") -> Any:
34691
34830
  pass
34692
34831
 
34693
34832
  @abstractmethod
34694
- def _paged_log(self, paged_log: "scout_compute_api_PagedLogPlot") -> Any:
34833
+ def _numeric_point(self, numeric_point: Optional["scout_compute_api_NumericPoint"]) -> Any:
34695
34834
  pass
34696
34835
 
34697
34836
  @abstractmethod
34698
- def _bucketed_enum(self, bucketed_enum: "scout_compute_api_BucketedEnumPlot") -> Any:
34837
+ def _enum(self, enum: "scout_compute_api_EnumPlot") -> Any:
34699
34838
  pass
34700
34839
 
34701
34840
  @abstractmethod
34702
- def _cartesian(self, cartesian: "scout_compute_api_CartesianPlot") -> Any:
34841
+ def _enum_point(self, enum_point: Optional["scout_compute_api_EnumPoint"]) -> Any:
34703
34842
  pass
34704
34843
 
34705
34844
  @abstractmethod
34706
- def _bucketed_cartesian(self, bucketed_cartesian: "scout_compute_api_BucketedCartesianPlot") -> Any:
34845
+ def _bucketed_enum(self, bucketed_enum: "scout_compute_api_BucketedEnumPlot") -> Any:
34707
34846
  pass
34708
34847
 
34709
34848
  @abstractmethod
34710
- def _bucketed_cartesian3d(self, bucketed_cartesian3d: "scout_compute_api_BucketedCartesian3dPlot") -> Any:
34849
+ def _paged_log(self, paged_log: "scout_compute_api_PagedLogPlot") -> Any:
34711
34850
  pass
34712
34851
 
34713
34852
  @abstractmethod
34714
- def _bucketed_geo(self, bucketed_geo: "scout_compute_api_BucketedGeoPlot") -> Any:
34853
+ def _log_point(self, log_point: Optional["scout_compute_api_LogPoint"]) -> Any:
34715
34854
  pass
34716
34855
 
34717
34856
  @abstractmethod
34718
- def _enum_point(self, enum_point: Optional["scout_compute_api_EnumPoint"]) -> Any:
34857
+ def _cartesian(self, cartesian: "scout_compute_api_CartesianPlot") -> Any:
34719
34858
  pass
34720
34859
 
34721
34860
  @abstractmethod
34722
- def _numeric_point(self, numeric_point: Optional["scout_compute_api_NumericPoint"]) -> Any:
34861
+ def _bucketed_cartesian(self, bucketed_cartesian: "scout_compute_api_BucketedCartesianPlot") -> Any:
34723
34862
  pass
34724
34863
 
34725
34864
  @abstractmethod
34726
- def _log_point(self, log_point: Optional["scout_compute_api_LogPoint"]) -> Any:
34865
+ def _bucketed_cartesian3d(self, bucketed_cartesian3d: "scout_compute_api_BucketedCartesian3dPlot") -> Any:
34727
34866
  pass
34728
34867
 
34729
34868
  @abstractmethod
34730
- def _range_value(self, range_value: Optional["scout_compute_api_Range"]) -> Any:
34869
+ def _bucketed_geo(self, bucketed_geo: "scout_compute_api_BucketedGeoPlot") -> Any:
34731
34870
  pass
34732
34871
 
34733
34872
  @abstractmethod
@@ -37035,20 +37174,10 @@ class scout_compute_api_ExponentialCurve(ConjureBeanType):
37035
37174
  @builtins.classmethod
37036
37175
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
37037
37176
  return {
37038
- 'intercept': ConjureFieldDefinition('intercept', OptionalTypeWrapper[scout_compute_api_DoubleConstant])
37039
37177
  }
37040
37178
 
37041
- __slots__: List[str] = ['_intercept']
37042
-
37043
- def __init__(self, intercept: Optional["scout_compute_api_DoubleConstant"] = None) -> None:
37044
- self._intercept = intercept
37179
+ __slots__: List[str] = []
37045
37180
 
37046
- @builtins.property
37047
- def intercept(self) -> Optional["scout_compute_api_DoubleConstant"]:
37048
- """
37049
- The y-value at the point x (or t) = 0. If omitted, the y-intercept will also be fit to the data.
37050
- """
37051
- return self._intercept
37052
37181
 
37053
37182
 
37054
37183
  scout_compute_api_ExponentialCurve.__name__ = "ExponentialCurve"
@@ -47091,804 +47220,6 @@ scout_compute_api_deprecated_WindowVisitor.__qualname__ = "WindowVisitor"
47091
47220
  scout_compute_api_deprecated_WindowVisitor.__module__ = "nominal_api.scout_compute_api_deprecated"
47092
47221
 
47093
47222
 
47094
- class scout_compute_representation_api_BatchExpressionToComputeRequest(ConjureBeanType):
47095
-
47096
- @builtins.classmethod
47097
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47098
- return {
47099
- 'expressions': ConjureFieldDefinition('expressions', List[scout_compute_representation_api_ComputeExpression]),
47100
- 'default_ref_name': ConjureFieldDefinition('defaultRefName', OptionalTypeWrapper[str])
47101
- }
47102
-
47103
- __slots__: List[str] = ['_expressions', '_default_ref_name']
47104
-
47105
- def __init__(self, expressions: List[str], default_ref_name: Optional[str] = None) -> None:
47106
- self._expressions = expressions
47107
- self._default_ref_name = default_ref_name
47108
-
47109
- @builtins.property
47110
- def expressions(self) -> List[str]:
47111
- return self._expressions
47112
-
47113
- @builtins.property
47114
- def default_ref_name(self) -> Optional[str]:
47115
- return self._default_ref_name
47116
-
47117
-
47118
- scout_compute_representation_api_BatchExpressionToComputeRequest.__name__ = "BatchExpressionToComputeRequest"
47119
- scout_compute_representation_api_BatchExpressionToComputeRequest.__qualname__ = "BatchExpressionToComputeRequest"
47120
- scout_compute_representation_api_BatchExpressionToComputeRequest.__module__ = "nominal_api.scout_compute_representation_api"
47121
-
47122
-
47123
- class scout_compute_representation_api_ChannelLocator(ConjureBeanType):
47124
-
47125
- @builtins.classmethod
47126
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47127
- return {
47128
- 'data_source_ref': ConjureFieldDefinition('dataSourceRef', scout_api_DataSourceRefName),
47129
- 'channel': ConjureFieldDefinition('channel', api_Channel)
47130
- }
47131
-
47132
- __slots__: List[str] = ['_data_source_ref', '_channel']
47133
-
47134
- def __init__(self, channel: str, data_source_ref: str) -> None:
47135
- self._data_source_ref = data_source_ref
47136
- self._channel = channel
47137
-
47138
- @builtins.property
47139
- def data_source_ref(self) -> str:
47140
- return self._data_source_ref
47141
-
47142
- @builtins.property
47143
- def channel(self) -> str:
47144
- return self._channel
47145
-
47146
-
47147
- scout_compute_representation_api_ChannelLocator.__name__ = "ChannelLocator"
47148
- scout_compute_representation_api_ChannelLocator.__qualname__ = "ChannelLocator"
47149
- scout_compute_representation_api_ChannelLocator.__module__ = "nominal_api.scout_compute_representation_api"
47150
-
47151
-
47152
- class scout_compute_representation_api_CompiledEnumeratedSeries(ConjureBeanType):
47153
-
47154
- @builtins.classmethod
47155
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47156
- return {
47157
- 'node': ConjureFieldDefinition('node', scout_compute_api_EnumSeries),
47158
- 'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
47159
- }
47160
-
47161
- __slots__: List[str] = ['_node', '_context']
47162
-
47163
- def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_api_EnumSeries") -> None:
47164
- self._node = node
47165
- self._context = context
47166
-
47167
- @builtins.property
47168
- def node(self) -> "scout_compute_api_EnumSeries":
47169
- return self._node
47170
-
47171
- @builtins.property
47172
- def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
47173
- return self._context
47174
-
47175
-
47176
- scout_compute_representation_api_CompiledEnumeratedSeries.__name__ = "CompiledEnumeratedSeries"
47177
- scout_compute_representation_api_CompiledEnumeratedSeries.__qualname__ = "CompiledEnumeratedSeries"
47178
- scout_compute_representation_api_CompiledEnumeratedSeries.__module__ = "nominal_api.scout_compute_representation_api"
47179
-
47180
-
47181
- class scout_compute_representation_api_CompiledNode(ConjureBeanType):
47182
-
47183
- @builtins.classmethod
47184
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47185
- return {
47186
- 'node': ConjureFieldDefinition('node', scout_compute_representation_api_Node),
47187
- 'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
47188
- }
47189
-
47190
- __slots__: List[str] = ['_node', '_context']
47191
-
47192
- def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_representation_api_Node") -> None:
47193
- self._node = node
47194
- self._context = context
47195
-
47196
- @builtins.property
47197
- def node(self) -> "scout_compute_representation_api_Node":
47198
- return self._node
47199
-
47200
- @builtins.property
47201
- def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
47202
- return self._context
47203
-
47204
-
47205
- scout_compute_representation_api_CompiledNode.__name__ = "CompiledNode"
47206
- scout_compute_representation_api_CompiledNode.__qualname__ = "CompiledNode"
47207
- scout_compute_representation_api_CompiledNode.__module__ = "nominal_api.scout_compute_representation_api"
47208
-
47209
-
47210
- class scout_compute_representation_api_CompiledNumericSeries(ConjureBeanType):
47211
-
47212
- @builtins.classmethod
47213
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47214
- return {
47215
- 'node': ConjureFieldDefinition('node', scout_compute_api_NumericSeries),
47216
- 'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
47217
- }
47218
-
47219
- __slots__: List[str] = ['_node', '_context']
47220
-
47221
- def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_api_NumericSeries") -> None:
47222
- self._node = node
47223
- self._context = context
47224
-
47225
- @builtins.property
47226
- def node(self) -> "scout_compute_api_NumericSeries":
47227
- return self._node
47228
-
47229
- @builtins.property
47230
- def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
47231
- return self._context
47232
-
47233
-
47234
- scout_compute_representation_api_CompiledNumericSeries.__name__ = "CompiledNumericSeries"
47235
- scout_compute_representation_api_CompiledNumericSeries.__qualname__ = "CompiledNumericSeries"
47236
- scout_compute_representation_api_CompiledNumericSeries.__module__ = "nominal_api.scout_compute_representation_api"
47237
-
47238
-
47239
- class scout_compute_representation_api_CompiledRangeSeries(ConjureBeanType):
47240
-
47241
- @builtins.classmethod
47242
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47243
- return {
47244
- 'node': ConjureFieldDefinition('node', scout_compute_api_RangeSeries),
47245
- 'context': ConjureFieldDefinition('context', scout_compute_representation_api_ComputeRepresentationContext)
47246
- }
47247
-
47248
- __slots__: List[str] = ['_node', '_context']
47249
-
47250
- def __init__(self, context: "scout_compute_representation_api_ComputeRepresentationContext", node: "scout_compute_api_RangeSeries") -> None:
47251
- self._node = node
47252
- self._context = context
47253
-
47254
- @builtins.property
47255
- def node(self) -> "scout_compute_api_RangeSeries":
47256
- return self._node
47257
-
47258
- @builtins.property
47259
- def context(self) -> "scout_compute_representation_api_ComputeRepresentationContext":
47260
- return self._context
47261
-
47262
-
47263
- scout_compute_representation_api_CompiledRangeSeries.__name__ = "CompiledRangeSeries"
47264
- scout_compute_representation_api_CompiledRangeSeries.__qualname__ = "CompiledRangeSeries"
47265
- scout_compute_representation_api_CompiledRangeSeries.__module__ = "nominal_api.scout_compute_representation_api"
47266
-
47267
-
47268
- class scout_compute_representation_api_ComputeRepresentationContext(ConjureBeanType):
47269
-
47270
- @builtins.classmethod
47271
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47272
- return {
47273
- 'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_compute_representation_api_ComputeRepresentationVariableValue]),
47274
- 'function_variables': ConjureFieldDefinition('functionVariables', Dict[scout_compute_api_FunctionReference, scout_compute_representation_api_ComputeRepresentationContext])
47275
- }
47276
-
47277
- __slots__: List[str] = ['_variables', '_function_variables']
47278
-
47279
- def __init__(self, function_variables: Dict[str, "scout_compute_representation_api_ComputeRepresentationContext"], variables: Dict[str, "scout_compute_representation_api_ComputeRepresentationVariableValue"]) -> None:
47280
- self._variables = variables
47281
- self._function_variables = function_variables
47282
-
47283
- @builtins.property
47284
- def variables(self) -> Dict[str, "scout_compute_representation_api_ComputeRepresentationVariableValue"]:
47285
- return self._variables
47286
-
47287
- @builtins.property
47288
- def function_variables(self) -> Dict[str, "scout_compute_representation_api_ComputeRepresentationContext"]:
47289
- return self._function_variables
47290
-
47291
-
47292
- scout_compute_representation_api_ComputeRepresentationContext.__name__ = "ComputeRepresentationContext"
47293
- scout_compute_representation_api_ComputeRepresentationContext.__qualname__ = "ComputeRepresentationContext"
47294
- scout_compute_representation_api_ComputeRepresentationContext.__module__ = "nominal_api.scout_compute_representation_api"
47295
-
47296
-
47297
- class scout_compute_representation_api_ComputeRepresentationService(Service):
47298
- """
47299
- The Compute Representation Service provides the ability to translate between a human-readable expression language
47300
- and a compute graph. Bidirectional translation is supported.
47301
- """
47302
-
47303
- def compute_to_expression(self, auth_header: str, request: "scout_compute_representation_api_CompiledNode") -> str:
47304
- """
47305
- Converts a compute graph and its context into a its expression language representation.
47306
- """
47307
-
47308
- _headers: Dict[str, Any] = {
47309
- 'Accept': 'application/json',
47310
- 'Content-Type': 'application/json',
47311
- 'Authorization': auth_header,
47312
- }
47313
-
47314
- _params: Dict[str, Any] = {
47315
- }
47316
-
47317
- _path_params: Dict[str, Any] = {
47318
- }
47319
-
47320
- _json: Any = ConjureEncoder().default(request)
47321
-
47322
- _path = '/compute/representation/v1/compute-to-expression'
47323
- _path = _path.format(**_path_params)
47324
-
47325
- _response: Response = self._request(
47326
- 'POST',
47327
- self._uri + _path,
47328
- params=_params,
47329
- headers=_headers,
47330
- json=_json)
47331
-
47332
- _decoder = ConjureDecoder()
47333
- return _decoder.decode(_response.json(), scout_compute_representation_api_ComputeExpression, self._return_none_for_unknown_union_types)
47334
-
47335
- def batch_compute_to_expression(self, auth_header: str, request: Dict[str, "scout_compute_representation_api_CompiledNode"]) -> Dict[str, str]:
47336
- """
47337
- Converts a batch of compute graphs and their contexts into their expression language representation. Requires
47338
- a string key reference to be provided for each graph.
47339
- """
47340
-
47341
- _headers: Dict[str, Any] = {
47342
- 'Accept': 'application/json',
47343
- 'Content-Type': 'application/json',
47344
- 'Authorization': auth_header,
47345
- }
47346
-
47347
- _params: Dict[str, Any] = {
47348
- }
47349
-
47350
- _path_params: Dict[str, Any] = {
47351
- }
47352
-
47353
- _json: Any = ConjureEncoder().default(request)
47354
-
47355
- _path = '/compute/representation/v1/batch-compute-to-expression'
47356
- _path = _path.format(**_path_params)
47357
-
47358
- _response: Response = self._request(
47359
- 'POST',
47360
- self._uri + _path,
47361
- params=_params,
47362
- headers=_headers,
47363
- json=_json)
47364
-
47365
- _decoder = ConjureDecoder()
47366
- return _decoder.decode(_response.json(), Dict[str, scout_compute_representation_api_ComputeExpression], self._return_none_for_unknown_union_types)
47367
-
47368
- def expression_to_compute(self, auth_header: str, request: "scout_compute_representation_api_ExpressionToComputeRequest") -> "scout_compute_representation_api_ExpressionToComputeResult":
47369
- """
47370
- Converts an expression language representation into a compute graph. The outputted graph can be passed to
47371
- the compute service or checks service for execution.
47372
- """
47373
-
47374
- _headers: Dict[str, Any] = {
47375
- 'Accept': 'application/json',
47376
- 'Content-Type': 'application/json',
47377
- 'Authorization': auth_header,
47378
- }
47379
-
47380
- _params: Dict[str, Any] = {
47381
- }
47382
-
47383
- _path_params: Dict[str, Any] = {
47384
- }
47385
-
47386
- _json: Any = ConjureEncoder().default(request)
47387
-
47388
- _path = '/compute/representation/v1/expression-to-compute'
47389
- _path = _path.format(**_path_params)
47390
-
47391
- _response: Response = self._request(
47392
- 'POST',
47393
- self._uri + _path,
47394
- params=_params,
47395
- headers=_headers,
47396
- json=_json)
47397
-
47398
- _decoder = ConjureDecoder()
47399
- return _decoder.decode(_response.json(), scout_compute_representation_api_ExpressionToComputeResult, self._return_none_for_unknown_union_types)
47400
-
47401
- def batch_expression_to_compute(self, auth_header: str, request: "scout_compute_representation_api_BatchExpressionToComputeRequest") -> Dict[str, "scout_compute_representation_api_ExpressionToComputeResult"]:
47402
- """
47403
- Converts a batch of expressions into their compute graph representation.
47404
- """
47405
-
47406
- _headers: Dict[str, Any] = {
47407
- 'Accept': 'application/json',
47408
- 'Content-Type': 'application/json',
47409
- 'Authorization': auth_header,
47410
- }
47411
-
47412
- _params: Dict[str, Any] = {
47413
- }
47414
-
47415
- _path_params: Dict[str, Any] = {
47416
- }
47417
-
47418
- _json: Any = ConjureEncoder().default(request)
47419
-
47420
- _path = '/compute/representation/v1/batch-expression-to-compute'
47421
- _path = _path.format(**_path_params)
47422
-
47423
- _response: Response = self._request(
47424
- 'POST',
47425
- self._uri + _path,
47426
- params=_params,
47427
- headers=_headers,
47428
- json=_json)
47429
-
47430
- _decoder = ConjureDecoder()
47431
- return _decoder.decode(_response.json(), Dict[scout_compute_representation_api_ComputeExpression, scout_compute_representation_api_ExpressionToComputeResult], self._return_none_for_unknown_union_types)
47432
-
47433
-
47434
- scout_compute_representation_api_ComputeRepresentationService.__name__ = "ComputeRepresentationService"
47435
- scout_compute_representation_api_ComputeRepresentationService.__qualname__ = "ComputeRepresentationService"
47436
- scout_compute_representation_api_ComputeRepresentationService.__module__ = "nominal_api.scout_compute_representation_api"
47437
-
47438
-
47439
- class scout_compute_representation_api_ComputeRepresentationVariableValue(ConjureUnionType):
47440
- _double: Optional[float] = None
47441
- _duration: Optional["scout_run_api_Duration"] = None
47442
- _integer: Optional[int] = None
47443
- _string_set: Optional[List[str]] = None
47444
- _timestamp: Optional["api_Timestamp"] = None
47445
- _function_rid: Optional[str] = None
47446
- _series: Optional["scout_compute_representation_api_ChannelLocator"] = None
47447
- _external_variable_reference: Optional[str] = None
47448
-
47449
- @builtins.classmethod
47450
- def _options(cls) -> Dict[str, ConjureFieldDefinition]:
47451
- return {
47452
- 'double': ConjureFieldDefinition('double', float),
47453
- 'duration': ConjureFieldDefinition('duration', scout_run_api_Duration),
47454
- 'integer': ConjureFieldDefinition('integer', int),
47455
- 'string_set': ConjureFieldDefinition('stringSet', List[str]),
47456
- 'timestamp': ConjureFieldDefinition('timestamp', api_Timestamp),
47457
- 'function_rid': ConjureFieldDefinition('functionRid', scout_rids_api_FunctionRid),
47458
- 'series': ConjureFieldDefinition('series', scout_compute_representation_api_ChannelLocator),
47459
- 'external_variable_reference': ConjureFieldDefinition('externalVariableReference', str)
47460
- }
47461
-
47462
- def __init__(
47463
- self,
47464
- double: Optional[float] = None,
47465
- duration: Optional["scout_run_api_Duration"] = None,
47466
- integer: Optional[int] = None,
47467
- string_set: Optional[List[str]] = None,
47468
- timestamp: Optional["api_Timestamp"] = None,
47469
- function_rid: Optional[str] = None,
47470
- series: Optional["scout_compute_representation_api_ChannelLocator"] = None,
47471
- external_variable_reference: Optional[str] = None,
47472
- type_of_union: Optional[str] = None
47473
- ) -> None:
47474
- if type_of_union is None:
47475
- 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:
47476
- raise ValueError('a union must contain a single member')
47477
-
47478
- if double is not None:
47479
- self._double = double
47480
- self._type = 'double'
47481
- if duration is not None:
47482
- self._duration = duration
47483
- self._type = 'duration'
47484
- if integer is not None:
47485
- self._integer = integer
47486
- self._type = 'integer'
47487
- if string_set is not None:
47488
- self._string_set = string_set
47489
- self._type = 'stringSet'
47490
- if timestamp is not None:
47491
- self._timestamp = timestamp
47492
- self._type = 'timestamp'
47493
- if function_rid is not None:
47494
- self._function_rid = function_rid
47495
- self._type = 'functionRid'
47496
- if series is not None:
47497
- self._series = series
47498
- self._type = 'series'
47499
- if external_variable_reference is not None:
47500
- self._external_variable_reference = external_variable_reference
47501
- self._type = 'externalVariableReference'
47502
-
47503
- elif type_of_union == 'double':
47504
- if double is None:
47505
- raise ValueError('a union value must not be None')
47506
- self._double = double
47507
- self._type = 'double'
47508
- elif type_of_union == 'duration':
47509
- if duration is None:
47510
- raise ValueError('a union value must not be None')
47511
- self._duration = duration
47512
- self._type = 'duration'
47513
- elif type_of_union == 'integer':
47514
- if integer is None:
47515
- raise ValueError('a union value must not be None')
47516
- self._integer = integer
47517
- self._type = 'integer'
47518
- elif type_of_union == 'stringSet':
47519
- if string_set is None:
47520
- raise ValueError('a union value must not be None')
47521
- self._string_set = string_set
47522
- self._type = 'stringSet'
47523
- elif type_of_union == 'timestamp':
47524
- if timestamp is None:
47525
- raise ValueError('a union value must not be None')
47526
- self._timestamp = timestamp
47527
- self._type = 'timestamp'
47528
- elif type_of_union == 'functionRid':
47529
- if function_rid is None:
47530
- raise ValueError('a union value must not be None')
47531
- self._function_rid = function_rid
47532
- self._type = 'functionRid'
47533
- elif type_of_union == 'series':
47534
- if series is None:
47535
- raise ValueError('a union value must not be None')
47536
- self._series = series
47537
- self._type = 'series'
47538
- elif type_of_union == 'externalVariableReference':
47539
- if external_variable_reference is None:
47540
- raise ValueError('a union value must not be None')
47541
- self._external_variable_reference = external_variable_reference
47542
- self._type = 'externalVariableReference'
47543
-
47544
- @builtins.property
47545
- def double(self) -> Optional[float]:
47546
- return self._double
47547
-
47548
- @builtins.property
47549
- def duration(self) -> Optional["scout_run_api_Duration"]:
47550
- return self._duration
47551
-
47552
- @builtins.property
47553
- def integer(self) -> Optional[int]:
47554
- return self._integer
47555
-
47556
- @builtins.property
47557
- def string_set(self) -> Optional[List[str]]:
47558
- return self._string_set
47559
-
47560
- @builtins.property
47561
- def timestamp(self) -> Optional["api_Timestamp"]:
47562
- return self._timestamp
47563
-
47564
- @builtins.property
47565
- def function_rid(self) -> Optional[str]:
47566
- return self._function_rid
47567
-
47568
- @builtins.property
47569
- def series(self) -> Optional["scout_compute_representation_api_ChannelLocator"]:
47570
- return self._series
47571
-
47572
- @builtins.property
47573
- def external_variable_reference(self) -> Optional[str]:
47574
- return self._external_variable_reference
47575
-
47576
- def accept(self, visitor) -> Any:
47577
- if not isinstance(visitor, scout_compute_representation_api_ComputeRepresentationVariableValueVisitor):
47578
- raise ValueError('{} is not an instance of scout_compute_representation_api_ComputeRepresentationVariableValueVisitor'.format(visitor.__class__.__name__))
47579
- if self._type == 'double' and self.double is not None:
47580
- return visitor._double(self.double)
47581
- if self._type == 'duration' and self.duration is not None:
47582
- return visitor._duration(self.duration)
47583
- if self._type == 'integer' and self.integer is not None:
47584
- return visitor._integer(self.integer)
47585
- if self._type == 'stringSet' and self.string_set is not None:
47586
- return visitor._string_set(self.string_set)
47587
- if self._type == 'timestamp' and self.timestamp is not None:
47588
- return visitor._timestamp(self.timestamp)
47589
- if self._type == 'functionRid' and self.function_rid is not None:
47590
- return visitor._function_rid(self.function_rid)
47591
- if self._type == 'series' and self.series is not None:
47592
- return visitor._series(self.series)
47593
- if self._type == 'externalVariableReference' and self.external_variable_reference is not None:
47594
- return visitor._external_variable_reference(self.external_variable_reference)
47595
-
47596
-
47597
- scout_compute_representation_api_ComputeRepresentationVariableValue.__name__ = "ComputeRepresentationVariableValue"
47598
- scout_compute_representation_api_ComputeRepresentationVariableValue.__qualname__ = "ComputeRepresentationVariableValue"
47599
- scout_compute_representation_api_ComputeRepresentationVariableValue.__module__ = "nominal_api.scout_compute_representation_api"
47600
-
47601
-
47602
- class scout_compute_representation_api_ComputeRepresentationVariableValueVisitor:
47603
-
47604
- @abstractmethod
47605
- def _double(self, double: float) -> Any:
47606
- pass
47607
-
47608
- @abstractmethod
47609
- def _duration(self, duration: "scout_run_api_Duration") -> Any:
47610
- pass
47611
-
47612
- @abstractmethod
47613
- def _integer(self, integer: int) -> Any:
47614
- pass
47615
-
47616
- @abstractmethod
47617
- def _string_set(self, string_set: List[str]) -> Any:
47618
- pass
47619
-
47620
- @abstractmethod
47621
- def _timestamp(self, timestamp: "api_Timestamp") -> Any:
47622
- pass
47623
-
47624
- @abstractmethod
47625
- def _function_rid(self, function_rid: str) -> Any:
47626
- pass
47627
-
47628
- @abstractmethod
47629
- def _series(self, series: "scout_compute_representation_api_ChannelLocator") -> Any:
47630
- pass
47631
-
47632
- @abstractmethod
47633
- def _external_variable_reference(self, external_variable_reference: str) -> Any:
47634
- pass
47635
-
47636
-
47637
- scout_compute_representation_api_ComputeRepresentationVariableValueVisitor.__name__ = "ComputeRepresentationVariableValueVisitor"
47638
- scout_compute_representation_api_ComputeRepresentationVariableValueVisitor.__qualname__ = "ComputeRepresentationVariableValueVisitor"
47639
- scout_compute_representation_api_ComputeRepresentationVariableValueVisitor.__module__ = "nominal_api.scout_compute_representation_api"
47640
-
47641
-
47642
- class scout_compute_representation_api_ErrorExpressionToComputeResult(ConjureBeanType):
47643
-
47644
- @builtins.classmethod
47645
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47646
- return {
47647
- 'error_message': ConjureFieldDefinition('errorMessage', str)
47648
- }
47649
-
47650
- __slots__: List[str] = ['_error_message']
47651
-
47652
- def __init__(self, error_message: str) -> None:
47653
- self._error_message = error_message
47654
-
47655
- @builtins.property
47656
- def error_message(self) -> str:
47657
- return self._error_message
47658
-
47659
-
47660
- scout_compute_representation_api_ErrorExpressionToComputeResult.__name__ = "ErrorExpressionToComputeResult"
47661
- scout_compute_representation_api_ErrorExpressionToComputeResult.__qualname__ = "ErrorExpressionToComputeResult"
47662
- scout_compute_representation_api_ErrorExpressionToComputeResult.__module__ = "nominal_api.scout_compute_representation_api"
47663
-
47664
-
47665
- class scout_compute_representation_api_ExpressionToComputeRequest(ConjureBeanType):
47666
-
47667
- @builtins.classmethod
47668
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47669
- return {
47670
- 'expression': ConjureFieldDefinition('expression', scout_compute_representation_api_ComputeExpression),
47671
- 'default_ref_name': ConjureFieldDefinition('defaultRefName', OptionalTypeWrapper[str])
47672
- }
47673
-
47674
- __slots__: List[str] = ['_expression', '_default_ref_name']
47675
-
47676
- def __init__(self, expression: str, default_ref_name: Optional[str] = None) -> None:
47677
- self._expression = expression
47678
- self._default_ref_name = default_ref_name
47679
-
47680
- @builtins.property
47681
- def expression(self) -> str:
47682
- return self._expression
47683
-
47684
- @builtins.property
47685
- def default_ref_name(self) -> Optional[str]:
47686
- return self._default_ref_name
47687
-
47688
-
47689
- scout_compute_representation_api_ExpressionToComputeRequest.__name__ = "ExpressionToComputeRequest"
47690
- scout_compute_representation_api_ExpressionToComputeRequest.__qualname__ = "ExpressionToComputeRequest"
47691
- scout_compute_representation_api_ExpressionToComputeRequest.__module__ = "nominal_api.scout_compute_representation_api"
47692
-
47693
-
47694
- class scout_compute_representation_api_ExpressionToComputeResult(ConjureUnionType):
47695
- _success: Optional["scout_compute_representation_api_SuccessExpressionToComputeResult"] = None
47696
- _error: Optional["scout_compute_representation_api_ErrorExpressionToComputeResult"] = None
47697
-
47698
- @builtins.classmethod
47699
- def _options(cls) -> Dict[str, ConjureFieldDefinition]:
47700
- return {
47701
- 'success': ConjureFieldDefinition('success', scout_compute_representation_api_SuccessExpressionToComputeResult),
47702
- 'error': ConjureFieldDefinition('error', scout_compute_representation_api_ErrorExpressionToComputeResult)
47703
- }
47704
-
47705
- def __init__(
47706
- self,
47707
- success: Optional["scout_compute_representation_api_SuccessExpressionToComputeResult"] = None,
47708
- error: Optional["scout_compute_representation_api_ErrorExpressionToComputeResult"] = None,
47709
- type_of_union: Optional[str] = None
47710
- ) -> None:
47711
- if type_of_union is None:
47712
- if (success is not None) + (error is not None) != 1:
47713
- raise ValueError('a union must contain a single member')
47714
-
47715
- if success is not None:
47716
- self._success = success
47717
- self._type = 'success'
47718
- if error is not None:
47719
- self._error = error
47720
- self._type = 'error'
47721
-
47722
- elif type_of_union == 'success':
47723
- if success is None:
47724
- raise ValueError('a union value must not be None')
47725
- self._success = success
47726
- self._type = 'success'
47727
- elif type_of_union == 'error':
47728
- if error is None:
47729
- raise ValueError('a union value must not be None')
47730
- self._error = error
47731
- self._type = 'error'
47732
-
47733
- @builtins.property
47734
- def success(self) -> Optional["scout_compute_representation_api_SuccessExpressionToComputeResult"]:
47735
- return self._success
47736
-
47737
- @builtins.property
47738
- def error(self) -> Optional["scout_compute_representation_api_ErrorExpressionToComputeResult"]:
47739
- return self._error
47740
-
47741
- def accept(self, visitor) -> Any:
47742
- if not isinstance(visitor, scout_compute_representation_api_ExpressionToComputeResultVisitor):
47743
- raise ValueError('{} is not an instance of scout_compute_representation_api_ExpressionToComputeResultVisitor'.format(visitor.__class__.__name__))
47744
- if self._type == 'success' and self.success is not None:
47745
- return visitor._success(self.success)
47746
- if self._type == 'error' and self.error is not None:
47747
- return visitor._error(self.error)
47748
-
47749
-
47750
- scout_compute_representation_api_ExpressionToComputeResult.__name__ = "ExpressionToComputeResult"
47751
- scout_compute_representation_api_ExpressionToComputeResult.__qualname__ = "ExpressionToComputeResult"
47752
- scout_compute_representation_api_ExpressionToComputeResult.__module__ = "nominal_api.scout_compute_representation_api"
47753
-
47754
-
47755
- class scout_compute_representation_api_ExpressionToComputeResultVisitor:
47756
-
47757
- @abstractmethod
47758
- def _success(self, success: "scout_compute_representation_api_SuccessExpressionToComputeResult") -> Any:
47759
- pass
47760
-
47761
- @abstractmethod
47762
- def _error(self, error: "scout_compute_representation_api_ErrorExpressionToComputeResult") -> Any:
47763
- pass
47764
-
47765
-
47766
- scout_compute_representation_api_ExpressionToComputeResultVisitor.__name__ = "ExpressionToComputeResultVisitor"
47767
- scout_compute_representation_api_ExpressionToComputeResultVisitor.__qualname__ = "ExpressionToComputeResultVisitor"
47768
- scout_compute_representation_api_ExpressionToComputeResultVisitor.__module__ = "nominal_api.scout_compute_representation_api"
47769
-
47770
-
47771
- class scout_compute_representation_api_Node(ConjureUnionType):
47772
- _enumerated_series: Optional["scout_compute_api_EnumSeries"] = None
47773
- _numeric_series: Optional["scout_compute_api_NumericSeries"] = None
47774
- _range_series: Optional["scout_compute_api_RangeSeries"] = None
47775
-
47776
- @builtins.classmethod
47777
- def _options(cls) -> Dict[str, ConjureFieldDefinition]:
47778
- return {
47779
- 'enumerated_series': ConjureFieldDefinition('enumeratedSeries', scout_compute_api_EnumSeries),
47780
- 'numeric_series': ConjureFieldDefinition('numericSeries', scout_compute_api_NumericSeries),
47781
- 'range_series': ConjureFieldDefinition('rangeSeries', scout_compute_api_RangeSeries)
47782
- }
47783
-
47784
- def __init__(
47785
- self,
47786
- enumerated_series: Optional["scout_compute_api_EnumSeries"] = None,
47787
- numeric_series: Optional["scout_compute_api_NumericSeries"] = None,
47788
- range_series: Optional["scout_compute_api_RangeSeries"] = None,
47789
- type_of_union: Optional[str] = None
47790
- ) -> None:
47791
- if type_of_union is None:
47792
- if (enumerated_series is not None) + (numeric_series is not None) + (range_series is not None) != 1:
47793
- raise ValueError('a union must contain a single member')
47794
-
47795
- if enumerated_series is not None:
47796
- self._enumerated_series = enumerated_series
47797
- self._type = 'enumeratedSeries'
47798
- if numeric_series is not None:
47799
- self._numeric_series = numeric_series
47800
- self._type = 'numericSeries'
47801
- if range_series is not None:
47802
- self._range_series = range_series
47803
- self._type = 'rangeSeries'
47804
-
47805
- elif type_of_union == 'enumeratedSeries':
47806
- if enumerated_series is None:
47807
- raise ValueError('a union value must not be None')
47808
- self._enumerated_series = enumerated_series
47809
- self._type = 'enumeratedSeries'
47810
- elif type_of_union == 'numericSeries':
47811
- if numeric_series is None:
47812
- raise ValueError('a union value must not be None')
47813
- self._numeric_series = numeric_series
47814
- self._type = 'numericSeries'
47815
- elif type_of_union == 'rangeSeries':
47816
- if range_series is None:
47817
- raise ValueError('a union value must not be None')
47818
- self._range_series = range_series
47819
- self._type = 'rangeSeries'
47820
-
47821
- @builtins.property
47822
- def enumerated_series(self) -> Optional["scout_compute_api_EnumSeries"]:
47823
- return self._enumerated_series
47824
-
47825
- @builtins.property
47826
- def numeric_series(self) -> Optional["scout_compute_api_NumericSeries"]:
47827
- return self._numeric_series
47828
-
47829
- @builtins.property
47830
- def range_series(self) -> Optional["scout_compute_api_RangeSeries"]:
47831
- return self._range_series
47832
-
47833
- def accept(self, visitor) -> Any:
47834
- if not isinstance(visitor, scout_compute_representation_api_NodeVisitor):
47835
- raise ValueError('{} is not an instance of scout_compute_representation_api_NodeVisitor'.format(visitor.__class__.__name__))
47836
- if self._type == 'enumeratedSeries' and self.enumerated_series is not None:
47837
- return visitor._enumerated_series(self.enumerated_series)
47838
- if self._type == 'numericSeries' and self.numeric_series is not None:
47839
- return visitor._numeric_series(self.numeric_series)
47840
- if self._type == 'rangeSeries' and self.range_series is not None:
47841
- return visitor._range_series(self.range_series)
47842
-
47843
-
47844
- scout_compute_representation_api_Node.__name__ = "Node"
47845
- scout_compute_representation_api_Node.__qualname__ = "Node"
47846
- scout_compute_representation_api_Node.__module__ = "nominal_api.scout_compute_representation_api"
47847
-
47848
-
47849
- class scout_compute_representation_api_NodeVisitor:
47850
-
47851
- @abstractmethod
47852
- def _enumerated_series(self, enumerated_series: "scout_compute_api_EnumSeries") -> Any:
47853
- pass
47854
-
47855
- @abstractmethod
47856
- def _numeric_series(self, numeric_series: "scout_compute_api_NumericSeries") -> Any:
47857
- pass
47858
-
47859
- @abstractmethod
47860
- def _range_series(self, range_series: "scout_compute_api_RangeSeries") -> Any:
47861
- pass
47862
-
47863
-
47864
- scout_compute_representation_api_NodeVisitor.__name__ = "NodeVisitor"
47865
- scout_compute_representation_api_NodeVisitor.__qualname__ = "NodeVisitor"
47866
- scout_compute_representation_api_NodeVisitor.__module__ = "nominal_api.scout_compute_representation_api"
47867
-
47868
-
47869
- class scout_compute_representation_api_SuccessExpressionToComputeResult(ConjureBeanType):
47870
-
47871
- @builtins.classmethod
47872
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47873
- return {
47874
- 'node': ConjureFieldDefinition('node', scout_compute_representation_api_CompiledNode)
47875
- }
47876
-
47877
- __slots__: List[str] = ['_node']
47878
-
47879
- def __init__(self, node: "scout_compute_representation_api_CompiledNode") -> None:
47880
- self._node = node
47881
-
47882
- @builtins.property
47883
- def node(self) -> "scout_compute_representation_api_CompiledNode":
47884
- return self._node
47885
-
47886
-
47887
- scout_compute_representation_api_SuccessExpressionToComputeResult.__name__ = "SuccessExpressionToComputeResult"
47888
- scout_compute_representation_api_SuccessExpressionToComputeResult.__qualname__ = "SuccessExpressionToComputeResult"
47889
- scout_compute_representation_api_SuccessExpressionToComputeResult.__module__ = "nominal_api.scout_compute_representation_api"
47890
-
47891
-
47892
47223
  class scout_compute_resolved_api_AbsoluteThreshold(ConjureBeanType):
47893
47224
 
47894
47225
  @builtins.classmethod
@@ -49220,17 +48551,10 @@ class scout_compute_resolved_api_ExponentialCurve(ConjureBeanType):
49220
48551
  @builtins.classmethod
49221
48552
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
49222
48553
  return {
49223
- 'intercept': ConjureFieldDefinition('intercept', OptionalTypeWrapper[float])
49224
48554
  }
49225
48555
 
49226
- __slots__: List[str] = ['_intercept']
49227
-
49228
- def __init__(self, intercept: Optional[float] = None) -> None:
49229
- self._intercept = intercept
48556
+ __slots__: List[str] = []
49230
48557
 
49231
- @builtins.property
49232
- def intercept(self) -> Optional[float]:
49233
- return self._intercept
49234
48558
 
49235
48559
 
49236
48560
  scout_compute_resolved_api_ExponentialCurve.__name__ = "ExponentialCurve"
@@ -65484,6 +64808,29 @@ scout_notebook_api_UpdateNotebookRequest.__qualname__ = "UpdateNotebookRequest"
65484
64808
  scout_notebook_api_UpdateNotebookRequest.__module__ = "nominal_api.scout_notebook_api"
65485
64809
 
65486
64810
 
64811
+ class scout_notebook_api_UpdateRefNameRequest(ConjureBeanType):
64812
+
64813
+ @builtins.classmethod
64814
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
64815
+ return {
64816
+ 'ref_name_updates': ConjureFieldDefinition('refNameUpdates', Dict[scout_api_DataSourceRefName, scout_api_DataSourceRefName])
64817
+ }
64818
+
64819
+ __slots__: List[str] = ['_ref_name_updates']
64820
+
64821
+ def __init__(self, ref_name_updates: Dict[str, str]) -> None:
64822
+ self._ref_name_updates = ref_name_updates
64823
+
64824
+ @builtins.property
64825
+ def ref_name_updates(self) -> Dict[str, str]:
64826
+ return self._ref_name_updates
64827
+
64828
+
64829
+ scout_notebook_api_UpdateRefNameRequest.__name__ = "UpdateRefNameRequest"
64830
+ scout_notebook_api_UpdateRefNameRequest.__qualname__ = "UpdateRefNameRequest"
64831
+ scout_notebook_api_UpdateRefNameRequest.__module__ = "nominal_api.scout_notebook_api"
64832
+
64833
+
65487
64834
  class scout_plotting_TimestampType(ConjureEnumType):
65488
64835
 
65489
64836
  ABSOLUTE = 'ABSOLUTE'
@@ -68519,6 +67866,39 @@ scout_template_api_UpdateMetadataRequest.__qualname__ = "UpdateMetadataRequest"
68519
67866
  scout_template_api_UpdateMetadataRequest.__module__ = "nominal_api.scout_template_api"
68520
67867
 
68521
67868
 
67869
+ class scout_template_api_UpdateRefNameRequest(ConjureBeanType):
67870
+
67871
+ @builtins.classmethod
67872
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
67873
+ return {
67874
+ 'ref_name_updates': ConjureFieldDefinition('refNameUpdates', Dict[scout_api_DataSourceRefName, scout_api_DataSourceRefName]),
67875
+ 'latest_commit': ConjureFieldDefinition('latestCommit', OptionalTypeWrapper[scout_versioning_api_CommitId])
67876
+ }
67877
+
67878
+ __slots__: List[str] = ['_ref_name_updates', '_latest_commit']
67879
+
67880
+ def __init__(self, ref_name_updates: Dict[str, str], latest_commit: Optional[str] = None) -> None:
67881
+ self._ref_name_updates = ref_name_updates
67882
+ self._latest_commit = latest_commit
67883
+
67884
+ @builtins.property
67885
+ def ref_name_updates(self) -> Dict[str, str]:
67886
+ return self._ref_name_updates
67887
+
67888
+ @builtins.property
67889
+ def latest_commit(self) -> Optional[str]:
67890
+ """
67891
+ If present, will validate that the latest commit matches this id,
67892
+ and otherwise throw CommitConflict.
67893
+ """
67894
+ return self._latest_commit
67895
+
67896
+
67897
+ scout_template_api_UpdateRefNameRequest.__name__ = "UpdateRefNameRequest"
67898
+ scout_template_api_UpdateRefNameRequest.__qualname__ = "UpdateRefNameRequest"
67899
+ scout_template_api_UpdateRefNameRequest.__module__ = "nominal_api.scout_template_api"
67900
+
67901
+
68522
67902
  class scout_units_api_GetUnitsResponse(ConjureBeanType):
68523
67903
 
68524
67904
  @builtins.classmethod
@@ -73700,8 +73080,9 @@ Nominal live within a workspace.
73700
73080
 
73701
73081
  def get_default_workspace(self, auth_header: str) -> Optional["security_api_workspace_Workspace"]:
73702
73082
  """
73703
- Gets the default workspace for the requesting user. It may not be present if the user does not have
73704
- access to any workspaces or no default workspace is configured for the user's organization.
73083
+ Gets the default workspace for the requesting user. If the user belongs to a single workspace,
73084
+ that workspace is returned. Otherwise, if the user's organization has a default workspace and
73085
+ the user belongs to it, that will be returned.
73705
73086
  """
73706
73087
 
73707
73088
  _headers: Dict[str, Any] = {
@@ -79683,8 +79064,6 @@ timeseries_logicalseries_api_MeasurementName = str
79683
79064
 
79684
79065
  themes_api_HexColor = str
79685
79066
 
79686
- scout_compute_representation_api_ComputeExpression = str
79687
-
79688
79067
  scout_datasource_connection_api_ColumnName = str
79689
79068
 
79690
79069
  storage_writer_api_Field = str