nominal-api 0.755.2__py3-none-any.whl → 0.756.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nominal_api/_impl.py CHANGED
@@ -14250,6 +14250,59 @@ module_CreateModuleRequest.__qualname__ = "CreateModuleRequest"
14250
14250
  module_CreateModuleRequest.__module__ = "nominal_api.module"
14251
14251
 
14252
14252
 
14253
+ class module_DerivedSeriesMetadata(ConjureBeanType):
14254
+
14255
+ @builtins.classmethod
14256
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
14257
+ return {
14258
+ 'function_name': ConjureFieldDefinition('functionName', str),
14259
+ 'function_description': ConjureFieldDefinition('functionDescription', str),
14260
+ 'module_name': ConjureFieldDefinition('moduleName', str),
14261
+ 'module_rid': ConjureFieldDefinition('moduleRid', modules_api_ModuleRid),
14262
+ 'asset_rid': ConjureFieldDefinition('assetRid', scout_rids_api_AssetRid),
14263
+ 'data_type': ConjureFieldDefinition('dataType', module_ValueType)
14264
+ }
14265
+
14266
+ __slots__: List[str] = ['_function_name', '_function_description', '_module_name', '_module_rid', '_asset_rid', '_data_type']
14267
+
14268
+ def __init__(self, asset_rid: str, data_type: "module_ValueType", function_description: str, function_name: str, module_name: str, module_rid: str) -> None:
14269
+ self._function_name = function_name
14270
+ self._function_description = function_description
14271
+ self._module_name = module_name
14272
+ self._module_rid = module_rid
14273
+ self._asset_rid = asset_rid
14274
+ self._data_type = data_type
14275
+
14276
+ @builtins.property
14277
+ def function_name(self) -> str:
14278
+ return self._function_name
14279
+
14280
+ @builtins.property
14281
+ def function_description(self) -> str:
14282
+ return self._function_description
14283
+
14284
+ @builtins.property
14285
+ def module_name(self) -> str:
14286
+ return self._module_name
14287
+
14288
+ @builtins.property
14289
+ def module_rid(self) -> str:
14290
+ return self._module_rid
14291
+
14292
+ @builtins.property
14293
+ def asset_rid(self) -> str:
14294
+ return self._asset_rid
14295
+
14296
+ @builtins.property
14297
+ def data_type(self) -> "module_ValueType":
14298
+ return self._data_type
14299
+
14300
+
14301
+ module_DerivedSeriesMetadata.__name__ = "DerivedSeriesMetadata"
14302
+ module_DerivedSeriesMetadata.__qualname__ = "DerivedSeriesMetadata"
14303
+ module_DerivedSeriesMetadata.__module__ = "nominal_api.module"
14304
+
14305
+
14253
14306
  class module_Function(ConjureBeanType):
14254
14307
 
14255
14308
  @builtins.classmethod
@@ -14435,6 +14488,86 @@ module_FunctionParameter.__qualname__ = "FunctionParameter"
14435
14488
  module_FunctionParameter.__module__ = "nominal_api.module"
14436
14489
 
14437
14490
 
14491
+ class module_GetDerivedSeriesRequest(ConjureBeanType):
14492
+
14493
+ @builtins.classmethod
14494
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
14495
+ return {
14496
+ 'asset_rid': ConjureFieldDefinition('assetRid', scout_rids_api_AssetRid),
14497
+ 'exact_match': ConjureFieldDefinition('exactMatch', OptionalTypeWrapper[str]),
14498
+ 'return_types': ConjureFieldDefinition('returnTypes', OptionalTypeWrapper[List[module_ValueType]]),
14499
+ 'page_size': ConjureFieldDefinition('pageSize', int),
14500
+ 'next_page_token': ConjureFieldDefinition('nextPageToken', OptionalTypeWrapper[api_Token])
14501
+ }
14502
+
14503
+ __slots__: List[str] = ['_asset_rid', '_exact_match', '_return_types', '_page_size', '_next_page_token']
14504
+
14505
+ def __init__(self, asset_rid: str, page_size: int, exact_match: Optional[str] = None, next_page_token: Optional[str] = None, return_types: Optional[List["module_ValueType"]] = None) -> None:
14506
+ self._asset_rid = asset_rid
14507
+ self._exact_match = exact_match
14508
+ self._return_types = return_types
14509
+ self._page_size = page_size
14510
+ self._next_page_token = next_page_token
14511
+
14512
+ @builtins.property
14513
+ def asset_rid(self) -> str:
14514
+ return self._asset_rid
14515
+
14516
+ @builtins.property
14517
+ def exact_match(self) -> Optional[str]:
14518
+ """Search text which will be checked for exact matches with the derived channel names.
14519
+ """
14520
+ return self._exact_match
14521
+
14522
+ @builtins.property
14523
+ def return_types(self) -> Optional[List["module_ValueType"]]:
14524
+ """Optional filter to limit the returned derived channels to those with specified return data type.
14525
+ """
14526
+ return self._return_types
14527
+
14528
+ @builtins.property
14529
+ def page_size(self) -> int:
14530
+ return self._page_size
14531
+
14532
+ @builtins.property
14533
+ def next_page_token(self) -> Optional[str]:
14534
+ return self._next_page_token
14535
+
14536
+
14537
+ module_GetDerivedSeriesRequest.__name__ = "GetDerivedSeriesRequest"
14538
+ module_GetDerivedSeriesRequest.__qualname__ = "GetDerivedSeriesRequest"
14539
+ module_GetDerivedSeriesRequest.__module__ = "nominal_api.module"
14540
+
14541
+
14542
+ class module_GetDerivedSeriesResponse(ConjureBeanType):
14543
+
14544
+ @builtins.classmethod
14545
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
14546
+ return {
14547
+ 'results': ConjureFieldDefinition('results', List[module_DerivedSeriesMetadata]),
14548
+ 'next_page_token': ConjureFieldDefinition('nextPageToken', OptionalTypeWrapper[api_Token])
14549
+ }
14550
+
14551
+ __slots__: List[str] = ['_results', '_next_page_token']
14552
+
14553
+ def __init__(self, results: List["module_DerivedSeriesMetadata"], next_page_token: Optional[str] = None) -> None:
14554
+ self._results = results
14555
+ self._next_page_token = next_page_token
14556
+
14557
+ @builtins.property
14558
+ def results(self) -> List["module_DerivedSeriesMetadata"]:
14559
+ return self._results
14560
+
14561
+ @builtins.property
14562
+ def next_page_token(self) -> Optional[str]:
14563
+ return self._next_page_token
14564
+
14565
+
14566
+ module_GetDerivedSeriesResponse.__name__ = "GetDerivedSeriesResponse"
14567
+ module_GetDerivedSeriesResponse.__qualname__ = "GetDerivedSeriesResponse"
14568
+ module_GetDerivedSeriesResponse.__module__ = "nominal_api.module"
14569
+
14570
+
14438
14571
  class module_GetModuleRequest(ConjureBeanType):
14439
14572
 
14440
14573
  @builtins.classmethod
@@ -14931,6 +15064,38 @@ to assets. The Modules Service provides the api for managing these collections a
14931
15064
  _decoder = ConjureDecoder()
14932
15065
  return _decoder.decode(_response.json(), module_SearchModuleApplicationsResponse, self._return_none_for_unknown_union_types)
14933
15066
 
15067
+ def get_derived_series(self, auth_header: str, request: "module_GetDerivedSeriesRequest") -> "module_GetDerivedSeriesResponse":
15068
+ """Get the derived series from modules applied to an asset.
15069
+ """
15070
+ _conjure_encoder = ConjureEncoder()
15071
+
15072
+ _headers: Dict[str, Any] = {
15073
+ 'Accept': 'application/json',
15074
+ 'Content-Type': 'application/json',
15075
+ 'Authorization': auth_header,
15076
+ }
15077
+
15078
+ _params: Dict[str, Any] = {
15079
+ }
15080
+
15081
+ _path_params: Dict[str, str] = {
15082
+ }
15083
+
15084
+ _json: Any = _conjure_encoder.default(request)
15085
+
15086
+ _path = '/scout/v2/module/derived-series/get'
15087
+ _path = _path.format(**_path_params)
15088
+
15089
+ _response: Response = self._request(
15090
+ 'POST',
15091
+ self._uri + _path,
15092
+ params=_params,
15093
+ headers=_headers,
15094
+ json=_json)
15095
+
15096
+ _decoder = ConjureDecoder()
15097
+ return _decoder.decode(_response.json(), module_GetDerivedSeriesResponse, self._return_none_for_unknown_union_types)
15098
+
14934
15099
 
14935
15100
  module_ModuleService.__name__ = "ModuleService"
14936
15101
  module_ModuleService.__qualname__ = "ModuleService"
@@ -31893,12 +32058,12 @@ class scout_checks_api_CheckContext(ConjureBeanType):
31893
32058
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
31894
32059
  return {
31895
32060
  'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_checks_api_VariableLocator]),
31896
- 'sub_function_variables': ConjureFieldDefinition('subFunctionVariables', Dict[scout_compute_api_FunctionReference, scout_checks_api_CheckContext])
32061
+ 'sub_function_variables': ConjureFieldDefinition('subFunctionVariables', OptionalTypeWrapper[Dict[scout_compute_api_FunctionReference, scout_checks_api_CheckContext]])
31897
32062
  }
31898
32063
 
31899
32064
  __slots__: List[str] = ['_variables', '_sub_function_variables']
31900
32065
 
31901
- def __init__(self, sub_function_variables: Dict[str, "scout_checks_api_CheckContext"], variables: Dict[str, "scout_checks_api_VariableLocator"]) -> None:
32066
+ def __init__(self, variables: Dict[str, "scout_checks_api_VariableLocator"], sub_function_variables: Optional[Dict[str, "scout_checks_api_CheckContext"]] = None) -> None:
31902
32067
  self._variables = variables
31903
32068
  self._sub_function_variables = sub_function_variables
31904
32069
 
@@ -31907,7 +32072,7 @@ class scout_checks_api_CheckContext(ConjureBeanType):
31907
32072
  return self._variables
31908
32073
 
31909
32074
  @builtins.property
31910
- def sub_function_variables(self) -> Dict[str, "scout_checks_api_CheckContext"]:
32075
+ def sub_function_variables(self) -> Optional[Dict[str, "scout_checks_api_CheckContext"]]:
31911
32076
  return self._sub_function_variables
31912
32077
 
31913
32078
 
@@ -32443,11 +32608,11 @@ scout_checks_api_ChecklistSearchQueryVisitor.__module__ = "nominal_api.scout_che
32443
32608
 
32444
32609
  class scout_checks_api_ChecklistService(Service):
32445
32610
  """The Checklist Service is responsible for managing checklists and checks.
32446
- A checklist is a collection of checks and functions that can be executed against a set of data sources.
32611
+ A checklist is a collection of checks that can be executed against a set of data sources.
32447
32612
  """
32448
32613
 
32449
32614
  def create(self, auth_header: str, request: "scout_checks_api_CreateChecklistRequest") -> "scout_checks_api_VersionedChecklist":
32450
- """Creates a new checklist with the provided checks and functions.
32615
+ """Creates a new checklist with the provided checks.
32451
32616
  """
32452
32617
  _conjure_encoder = ConjureEncoder()
32453
32618
 
@@ -32996,17 +33161,15 @@ class scout_checks_api_CommitChecklistRequest(ConjureBeanType):
32996
33161
  return {
32997
33162
  'commit_message': ConjureFieldDefinition('commitMessage', str),
32998
33163
  'checks': ConjureFieldDefinition('checks', List[scout_checks_api_UpdateChecklistEntryRequest]),
32999
- 'functions': ConjureFieldDefinition('functions', Dict[scout_compute_api_FunctionReference, scout_checks_api_UpdateFunctionEntryRequest]),
33000
33164
  'checklist_variables': ConjureFieldDefinition('checklistVariables', List[scout_checks_api_UnresolvedChecklistVariable]),
33001
33165
  'latest_commit': ConjureFieldDefinition('latestCommit', OptionalTypeWrapper[scout_versioning_api_CommitId])
33002
33166
  }
33003
33167
 
33004
- __slots__: List[str] = ['_commit_message', '_checks', '_functions', '_checklist_variables', '_latest_commit']
33168
+ __slots__: List[str] = ['_commit_message', '_checks', '_checklist_variables', '_latest_commit']
33005
33169
 
33006
- def __init__(self, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_UpdateChecklistEntryRequest"], commit_message: str, functions: Dict[str, "scout_checks_api_UpdateFunctionEntryRequest"], latest_commit: Optional[str] = None) -> None:
33170
+ def __init__(self, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_UpdateChecklistEntryRequest"], commit_message: str, latest_commit: Optional[str] = None) -> None:
33007
33171
  self._commit_message = commit_message
33008
33172
  self._checks = checks
33009
- self._functions = functions
33010
33173
  self._checklist_variables = checklist_variables
33011
33174
  self._latest_commit = latest_commit
33012
33175
 
@@ -33018,15 +33181,9 @@ class scout_checks_api_CommitChecklistRequest(ConjureBeanType):
33018
33181
  def checks(self) -> List["scout_checks_api_UpdateChecklistEntryRequest"]:
33019
33182
  return self._checks
33020
33183
 
33021
- @builtins.property
33022
- def functions(self) -> Dict[str, "scout_checks_api_UpdateFunctionEntryRequest"]:
33023
- """The keys of the map are references that can be used for checks to reference functions in the same request, before the function RIDs have been created.
33024
- """
33025
- return self._functions
33026
-
33027
33184
  @builtins.property
33028
33185
  def checklist_variables(self) -> List["scout_checks_api_UnresolvedChecklistVariable"]:
33029
- """Variables that can be used in checks and functions. Variables are resolved in order of declaration.
33186
+ """Variables that can be used in checks. Variables are resolved in order of declaration.
33030
33187
  If variable `a` depends on variable `b`, then `b` must be defined before `a` in the list.
33031
33188
  """
33032
33189
  return self._checklist_variables
@@ -33120,13 +33277,12 @@ class scout_checks_api_CreateCheckRequest(ConjureBeanType):
33120
33277
  'auto_generated_description': ConjureFieldDefinition('autoGeneratedDescription', OptionalTypeWrapper[str]),
33121
33278
  'priority': ConjureFieldDefinition('priority', scout_api_Priority),
33122
33279
  'generated_event_type': ConjureFieldDefinition('generatedEventType', OptionalTypeWrapper[event_EventType]),
33123
- 'chart': ConjureFieldDefinition('chart', OptionalTypeWrapper[scout_rids_api_VersionedVizId]),
33124
33280
  'condition': ConjureFieldDefinition('condition', OptionalTypeWrapper[scout_checks_api_UnresolvedCheckCondition])
33125
33281
  }
33126
33282
 
33127
- __slots__: List[str] = ['_check_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_priority', '_generated_event_type', '_chart', '_condition']
33283
+ __slots__: List[str] = ['_check_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_priority', '_generated_event_type', '_condition']
33128
33284
 
33129
- def __init__(self, description: str, priority: "scout_api_Priority", title: str, auto_generated_description: Optional[str] = None, auto_generated_title: Optional[str] = None, chart: Optional["scout_rids_api_VersionedVizId"] = None, check_lineage_rid: Optional[str] = None, condition: Optional["scout_checks_api_UnresolvedCheckCondition"] = None, generated_event_type: Optional["event_EventType"] = None) -> None:
33285
+ def __init__(self, description: str, priority: "scout_api_Priority", title: str, auto_generated_description: Optional[str] = None, auto_generated_title: Optional[str] = None, check_lineage_rid: Optional[str] = None, condition: Optional["scout_checks_api_UnresolvedCheckCondition"] = None, generated_event_type: Optional["event_EventType"] = None) -> None:
33130
33286
  self._check_lineage_rid = check_lineage_rid
33131
33287
  self._title = title
33132
33288
  self._description = description
@@ -33134,7 +33290,6 @@ class scout_checks_api_CreateCheckRequest(ConjureBeanType):
33134
33290
  self._auto_generated_description = auto_generated_description
33135
33291
  self._priority = priority
33136
33292
  self._generated_event_type = generated_event_type
33137
- self._chart = chart
33138
33293
  self._condition = condition
33139
33294
 
33140
33295
  @builtins.property
@@ -33168,13 +33323,9 @@ This is named checkLineageRid for historical reasons but is actually a UUID.
33168
33323
  def generated_event_type(self) -> Optional["event_EventType"]:
33169
33324
  return self._generated_event_type
33170
33325
 
33171
- @builtins.property
33172
- def chart(self) -> Optional["scout_rids_api_VersionedVizId"]:
33173
- return self._chart
33174
-
33175
33326
  @builtins.property
33176
33327
  def condition(self) -> Optional["scout_checks_api_UnresolvedCheckCondition"]:
33177
- """If omitted, this check represents a manual check.
33328
+ """This field should not be omitted.
33178
33329
  """
33179
33330
  return self._condition
33180
33331
 
@@ -33249,7 +33400,6 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
33249
33400
  'assignee_rid': ConjureFieldDefinition('assigneeRid', scout_rids_api_UserRid),
33250
33401
  'title': ConjureFieldDefinition('title', str),
33251
33402
  'description': ConjureFieldDefinition('description', str),
33252
- 'functions': ConjureFieldDefinition('functions', Dict[scout_compute_api_FunctionReference, scout_checks_api_CreateFunctionRequest]),
33253
33403
  'checks': ConjureFieldDefinition('checks', List[scout_checks_api_CreateChecklistEntryRequest]),
33254
33404
  'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
33255
33405
  'labels': ConjureFieldDefinition('labels', List[api_Label]),
@@ -33258,14 +33408,13 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
33258
33408
  'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_rids_WorkspaceRid])
33259
33409
  }
33260
33410
 
33261
- __slots__: List[str] = ['_commit_message', '_assignee_rid', '_title', '_description', '_functions', '_checks', '_properties', '_labels', '_checklist_variables', '_is_published', '_workspace']
33411
+ __slots__: List[str] = ['_commit_message', '_assignee_rid', '_title', '_description', '_checks', '_properties', '_labels', '_checklist_variables', '_is_published', '_workspace']
33262
33412
 
33263
- def __init__(self, assignee_rid: str, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_CreateChecklistEntryRequest"], commit_message: str, description: str, functions: Dict[str, "scout_checks_api_CreateFunctionRequest"], labels: List[str], properties: Dict[str, str], title: str, is_published: Optional[bool] = None, workspace: Optional[str] = None) -> None:
33413
+ def __init__(self, assignee_rid: str, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_CreateChecklistEntryRequest"], commit_message: str, description: str, labels: List[str], properties: Dict[str, str], title: str, is_published: Optional[bool] = None, workspace: Optional[str] = None) -> None:
33264
33414
  self._commit_message = commit_message
33265
33415
  self._assignee_rid = assignee_rid
33266
33416
  self._title = title
33267
33417
  self._description = description
33268
- self._functions = functions
33269
33418
  self._checks = checks
33270
33419
  self._properties = properties
33271
33420
  self._labels = labels
@@ -33289,12 +33438,6 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
33289
33438
  def description(self) -> str:
33290
33439
  return self._description
33291
33440
 
33292
- @builtins.property
33293
- def functions(self) -> Dict[str, "scout_checks_api_CreateFunctionRequest"]:
33294
- """The keys of the map are references that can be used for checks to reference functions in the same request, before the function RIDs have been created.
33295
- """
33296
- return self._functions
33297
-
33298
33441
  @builtins.property
33299
33442
  def checks(self) -> List["scout_checks_api_CreateChecklistEntryRequest"]:
33300
33443
  return self._checks
@@ -33309,7 +33452,7 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
33309
33452
 
33310
33453
  @builtins.property
33311
33454
  def checklist_variables(self) -> List["scout_checks_api_UnresolvedChecklistVariable"]:
33312
- """Variables that can be used in checks and functions. Variables are resolved in order of declaration.
33455
+ """Variables that can be used in checks. Variables are resolved in order of declaration.
33313
33456
  If variable `a` depends on variable `b`, then `b` must be defined before `a` in the list.
33314
33457
  """
33315
33458
  return self._checklist_variables
@@ -33333,61 +33476,6 @@ scout_checks_api_CreateChecklistRequest.__qualname__ = "CreateChecklistRequest"
33333
33476
  scout_checks_api_CreateChecklistRequest.__module__ = "nominal_api.scout_checks_api"
33334
33477
 
33335
33478
 
33336
- class scout_checks_api_CreateFunctionRequest(ConjureBeanType):
33337
-
33338
- @builtins.classmethod
33339
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
33340
- return {
33341
- 'function_lineage_rid': ConjureFieldDefinition('functionLineageRid', OptionalTypeWrapper[scout_rids_api_FunctionLineageRid]),
33342
- 'title': ConjureFieldDefinition('title', str),
33343
- 'description': ConjureFieldDefinition('description', str),
33344
- 'auto_generated_title': ConjureFieldDefinition('autoGeneratedTitle', OptionalTypeWrapper[str]),
33345
- 'auto_generated_description': ConjureFieldDefinition('autoGeneratedDescription', OptionalTypeWrapper[str]),
33346
- 'node': ConjureFieldDefinition('node', scout_checks_api_FunctionNode)
33347
- }
33348
-
33349
- __slots__: List[str] = ['_function_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_node']
33350
-
33351
- def __init__(self, description: str, node: "scout_checks_api_FunctionNode", title: str, auto_generated_description: Optional[str] = None, auto_generated_title: Optional[str] = None, function_lineage_rid: Optional[str] = None) -> None:
33352
- self._function_lineage_rid = function_lineage_rid
33353
- self._title = title
33354
- self._description = description
33355
- self._auto_generated_title = auto_generated_title
33356
- self._auto_generated_description = auto_generated_description
33357
- self._node = node
33358
-
33359
- @builtins.property
33360
- def function_lineage_rid(self) -> Optional[str]:
33361
- """Identifies the lineage of functions this function belongs to. If not specified, a new lineage will be created.
33362
- """
33363
- return self._function_lineage_rid
33364
-
33365
- @builtins.property
33366
- def title(self) -> str:
33367
- return self._title
33368
-
33369
- @builtins.property
33370
- def description(self) -> str:
33371
- return self._description
33372
-
33373
- @builtins.property
33374
- def auto_generated_title(self) -> Optional[str]:
33375
- return self._auto_generated_title
33376
-
33377
- @builtins.property
33378
- def auto_generated_description(self) -> Optional[str]:
33379
- return self._auto_generated_description
33380
-
33381
- @builtins.property
33382
- def node(self) -> "scout_checks_api_FunctionNode":
33383
- return self._node
33384
-
33385
-
33386
- scout_checks_api_CreateFunctionRequest.__name__ = "CreateFunctionRequest"
33387
- scout_checks_api_CreateFunctionRequest.__qualname__ = "CreateFunctionRequest"
33388
- scout_checks_api_CreateFunctionRequest.__module__ = "nominal_api.scout_checks_api"
33389
-
33390
-
33391
33479
  class scout_checks_api_DeprecatedCheckJobSpec(ConjureBeanType):
33392
33480
 
33393
33481
  @builtins.classmethod
@@ -33483,6 +33571,8 @@ scout_checks_api_Failed.__module__ = "nominal_api.scout_checks_api"
33483
33571
 
33484
33572
 
33485
33573
  class scout_checks_api_Function(ConjureBeanType):
33574
+ """This function type is unsupported.
33575
+ """
33486
33576
 
33487
33577
  @builtins.classmethod
33488
33578
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -34094,12 +34184,12 @@ class scout_checks_api_NumRangesConditionV3(ConjureBeanType):
34094
34184
  'threshold': ConjureFieldDefinition('threshold', int),
34095
34185
  'operator': ConjureFieldDefinition('operator', scout_compute_api_ThresholdOperator),
34096
34186
  'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_checks_api_VariableLocator]),
34097
- 'function_variables': ConjureFieldDefinition('functionVariables', Dict[scout_compute_api_FunctionReference, scout_checks_api_CheckContext])
34187
+ 'function_variables': ConjureFieldDefinition('functionVariables', OptionalTypeWrapper[Dict[scout_compute_api_FunctionReference, scout_checks_api_CheckContext]])
34098
34188
  }
34099
34189
 
34100
34190
  __slots__: List[str] = ['_ranges', '_function_spec', '_threshold', '_operator', '_variables', '_function_variables']
34101
34191
 
34102
- def __init__(self, function_spec: Any, function_variables: Dict[str, "scout_checks_api_CheckContext"], operator: "scout_compute_api_ThresholdOperator", ranges: "scout_compute_api_RangeSeries", threshold: int, variables: Dict[str, "scout_checks_api_VariableLocator"]) -> None:
34192
+ def __init__(self, function_spec: Any, operator: "scout_compute_api_ThresholdOperator", ranges: "scout_compute_api_RangeSeries", threshold: int, variables: Dict[str, "scout_checks_api_VariableLocator"], function_variables: Optional[Dict[str, "scout_checks_api_CheckContext"]] = None) -> None:
34103
34193
  self._ranges = ranges
34104
34194
  self._function_spec = function_spec
34105
34195
  self._threshold = threshold
@@ -34128,10 +34218,7 @@ class scout_checks_api_NumRangesConditionV3(ConjureBeanType):
34128
34218
  return self._variables
34129
34219
 
34130
34220
  @builtins.property
34131
- def function_variables(self) -> Dict[str, "scout_checks_api_CheckContext"]:
34132
- """The variables to be passed into functions referenced by the check condition. The function reference key
34133
- should match the FunctionReference in the function node definition.
34134
- """
34221
+ def function_variables(self) -> Optional[Dict[str, "scout_checks_api_CheckContext"]]:
34135
34222
  return self._function_variables
34136
34223
 
34137
34224
 
@@ -34209,16 +34296,14 @@ class scout_checks_api_SaveChecklistRequest(ConjureBeanType):
34209
34296
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
34210
34297
  return {
34211
34298
  'checks': ConjureFieldDefinition('checks', List[scout_checks_api_UpdateChecklistEntryRequest]),
34212
- 'functions': ConjureFieldDefinition('functions', Dict[scout_compute_api_FunctionReference, scout_checks_api_UpdateFunctionEntryRequest]),
34213
34299
  'checklist_variables': ConjureFieldDefinition('checklistVariables', List[scout_checks_api_UnresolvedChecklistVariable]),
34214
34300
  'latest_commit': ConjureFieldDefinition('latestCommit', OptionalTypeWrapper[scout_versioning_api_CommitId])
34215
34301
  }
34216
34302
 
34217
- __slots__: List[str] = ['_checks', '_functions', '_checklist_variables', '_latest_commit']
34303
+ __slots__: List[str] = ['_checks', '_checklist_variables', '_latest_commit']
34218
34304
 
34219
- def __init__(self, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_UpdateChecklistEntryRequest"], functions: Dict[str, "scout_checks_api_UpdateFunctionEntryRequest"], latest_commit: Optional[str] = None) -> None:
34305
+ def __init__(self, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_UpdateChecklistEntryRequest"], latest_commit: Optional[str] = None) -> None:
34220
34306
  self._checks = checks
34221
- self._functions = functions
34222
34307
  self._checklist_variables = checklist_variables
34223
34308
  self._latest_commit = latest_commit
34224
34309
 
@@ -34226,15 +34311,9 @@ class scout_checks_api_SaveChecklistRequest(ConjureBeanType):
34226
34311
  def checks(self) -> List["scout_checks_api_UpdateChecklistEntryRequest"]:
34227
34312
  return self._checks
34228
34313
 
34229
- @builtins.property
34230
- def functions(self) -> Dict[str, "scout_checks_api_UpdateFunctionEntryRequest"]:
34231
- """The keys of the map are references that can be used for checks to reference functions in the same request, before the function RIDs have been created.
34232
- """
34233
- return self._functions
34234
-
34235
34314
  @builtins.property
34236
34315
  def checklist_variables(self) -> List["scout_checks_api_UnresolvedChecklistVariable"]:
34237
- """Variables that can be used in checks and functions. Variables are resolved in order of declaration.
34316
+ """Variables that can be used in checks. Variables are resolved in order of declaration.
34238
34317
  If variable `a` depends on variable `b`, then `b` must be defined before `a` in the list.
34239
34318
  """
34240
34319
  return self._checklist_variables
@@ -34686,19 +34765,17 @@ class scout_checks_api_UnresolvedNumRangesConditionV3(ConjureBeanType):
34686
34765
  'function_spec': ConjureFieldDefinition('functionSpec', object),
34687
34766
  'threshold': ConjureFieldDefinition('threshold', int),
34688
34767
  'operator': ConjureFieldDefinition('operator', scout_compute_api_ThresholdOperator),
34689
- 'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_checks_api_UnresolvedVariableLocator]),
34690
- 'function_variables': ConjureFieldDefinition('functionVariables', Dict[scout_compute_api_FunctionReference, scout_checks_api_UnresolvedVariables])
34768
+ 'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_checks_api_UnresolvedVariableLocator])
34691
34769
  }
34692
34770
 
34693
- __slots__: List[str] = ['_ranges', '_function_spec', '_threshold', '_operator', '_variables', '_function_variables']
34771
+ __slots__: List[str] = ['_ranges', '_function_spec', '_threshold', '_operator', '_variables']
34694
34772
 
34695
- def __init__(self, function_spec: Any, function_variables: Dict[str, "scout_checks_api_UnresolvedVariables"], operator: "scout_compute_api_ThresholdOperator", ranges: "scout_compute_api_RangeSeries", threshold: int, variables: Dict[str, "scout_checks_api_UnresolvedVariableLocator"]) -> None:
34773
+ def __init__(self, function_spec: Any, operator: "scout_compute_api_ThresholdOperator", ranges: "scout_compute_api_RangeSeries", threshold: int, variables: Dict[str, "scout_checks_api_UnresolvedVariableLocator"]) -> None:
34696
34774
  self._ranges = ranges
34697
34775
  self._function_spec = function_spec
34698
34776
  self._threshold = threshold
34699
34777
  self._operator = operator
34700
34778
  self._variables = variables
34701
- self._function_variables = function_variables
34702
34779
 
34703
34780
  @builtins.property
34704
34781
  def ranges(self) -> "scout_compute_api_RangeSeries":
@@ -34723,14 +34800,6 @@ at checklist execution time.
34723
34800
  """
34724
34801
  return self._variables
34725
34802
 
34726
- @builtins.property
34727
- def function_variables(self) -> Dict[str, "scout_checks_api_UnresolvedVariables"]:
34728
- """The variables to be passed into functions referenced by the check condition. The function reference key
34729
- should match the FunctionReference in the function node definition. These variables can be overridden
34730
- at checklist execution time.
34731
- """
34732
- return self._function_variables
34733
-
34734
34803
 
34735
34804
  scout_checks_api_UnresolvedNumRangesConditionV3.__name__ = "UnresolvedNumRangesConditionV3"
34736
34805
  scout_checks_api_UnresolvedNumRangesConditionV3.__qualname__ = "UnresolvedNumRangesConditionV3"
@@ -34770,7 +34839,6 @@ scout_checks_api_UnresolvedParameterizedNumRangesConditionV1.__module__ = "nomin
34770
34839
 
34771
34840
 
34772
34841
  class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34773
- _checklist_function: Optional[str] = None
34774
34842
  _checklist_variable: Optional[str] = None
34775
34843
  _compute_node: Optional["scout_checks_api_UnresolvedComputeNodeWithContext"] = None
34776
34844
  _series: Optional["scout_api_ChannelLocator"] = None
@@ -34779,7 +34847,6 @@ class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34779
34847
  @builtins.classmethod
34780
34848
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
34781
34849
  return {
34782
- 'checklist_function': ConjureFieldDefinition('checklistFunction', scout_compute_api_FunctionReference),
34783
34850
  'checklist_variable': ConjureFieldDefinition('checklistVariable', scout_compute_api_VariableName),
34784
34851
  'compute_node': ConjureFieldDefinition('computeNode', scout_checks_api_UnresolvedComputeNodeWithContext),
34785
34852
  'series': ConjureFieldDefinition('series', scout_api_ChannelLocator),
@@ -34788,7 +34855,6 @@ class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34788
34855
 
34789
34856
  def __init__(
34790
34857
  self,
34791
- checklist_function: Optional[str] = None,
34792
34858
  checklist_variable: Optional[str] = None,
34793
34859
  compute_node: Optional["scout_checks_api_UnresolvedComputeNodeWithContext"] = None,
34794
34860
  series: Optional["scout_api_ChannelLocator"] = None,
@@ -34796,12 +34862,9 @@ class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34796
34862
  type_of_union: Optional[str] = None
34797
34863
  ) -> None:
34798
34864
  if type_of_union is None:
34799
- if (checklist_function is not None) + (checklist_variable is not None) + (compute_node is not None) + (series is not None) + (timestamp is not None) != 1:
34865
+ if (checklist_variable is not None) + (compute_node is not None) + (series is not None) + (timestamp is not None) != 1:
34800
34866
  raise ValueError('a union must contain a single member')
34801
34867
 
34802
- if checklist_function is not None:
34803
- self._checklist_function = checklist_function
34804
- self._type = 'checklistFunction'
34805
34868
  if checklist_variable is not None:
34806
34869
  self._checklist_variable = checklist_variable
34807
34870
  self._type = 'checklistVariable'
@@ -34815,11 +34878,6 @@ class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34815
34878
  self._timestamp = timestamp
34816
34879
  self._type = 'timestamp'
34817
34880
 
34818
- elif type_of_union == 'checklistFunction':
34819
- if checklist_function is None:
34820
- raise ValueError('a union value must not be None')
34821
- self._checklist_function = checklist_function
34822
- self._type = 'checklistFunction'
34823
34881
  elif type_of_union == 'checklistVariable':
34824
34882
  if checklist_variable is None:
34825
34883
  raise ValueError('a union value must not be None')
@@ -34841,10 +34899,6 @@ class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34841
34899
  self._timestamp = timestamp
34842
34900
  self._type = 'timestamp'
34843
34901
 
34844
- @builtins.property
34845
- def checklist_function(self) -> Optional[str]:
34846
- return self._checklist_function
34847
-
34848
34902
  @builtins.property
34849
34903
  def checklist_variable(self) -> Optional[str]:
34850
34904
  """A pointer to a variable in the checklist.
@@ -34866,8 +34920,6 @@ class scout_checks_api_UnresolvedVariableLocator(ConjureUnionType):
34866
34920
  def accept(self, visitor) -> Any:
34867
34921
  if not isinstance(visitor, scout_checks_api_UnresolvedVariableLocatorVisitor):
34868
34922
  raise ValueError('{} is not an instance of scout_checks_api_UnresolvedVariableLocatorVisitor'.format(visitor.__class__.__name__))
34869
- if self._type == 'checklistFunction' and self.checklist_function is not None:
34870
- return visitor._checklist_function(self.checklist_function)
34871
34923
  if self._type == 'checklistVariable' and self.checklist_variable is not None:
34872
34924
  return visitor._checklist_variable(self.checklist_variable)
34873
34925
  if self._type == 'computeNode' and self.compute_node is not None:
@@ -34885,10 +34937,6 @@ scout_checks_api_UnresolvedVariableLocator.__module__ = "nominal_api.scout_check
34885
34937
 
34886
34938
  class scout_checks_api_UnresolvedVariableLocatorVisitor:
34887
34939
 
34888
- @abstractmethod
34889
- def _checklist_function(self, checklist_function: str) -> Any:
34890
- pass
34891
-
34892
34940
  @abstractmethod
34893
34941
  def _checklist_variable(self, checklist_variable: str) -> Any:
34894
34942
  pass
@@ -34916,24 +34964,18 @@ class scout_checks_api_UnresolvedVariables(ConjureBeanType):
34916
34964
  @builtins.classmethod
34917
34965
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
34918
34966
  return {
34919
- 'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_checks_api_UnresolvedVariableLocator]),
34920
- 'sub_function_variables': ConjureFieldDefinition('subFunctionVariables', Dict[scout_compute_api_FunctionReference, scout_checks_api_UnresolvedVariables])
34967
+ 'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_checks_api_UnresolvedVariableLocator])
34921
34968
  }
34922
34969
 
34923
- __slots__: List[str] = ['_variables', '_sub_function_variables']
34970
+ __slots__: List[str] = ['_variables']
34924
34971
 
34925
- def __init__(self, sub_function_variables: Dict[str, "scout_checks_api_UnresolvedVariables"], variables: Dict[str, "scout_checks_api_UnresolvedVariableLocator"]) -> None:
34972
+ def __init__(self, variables: Dict[str, "scout_checks_api_UnresolvedVariableLocator"]) -> None:
34926
34973
  self._variables = variables
34927
- self._sub_function_variables = sub_function_variables
34928
34974
 
34929
34975
  @builtins.property
34930
34976
  def variables(self) -> Dict[str, "scout_checks_api_UnresolvedVariableLocator"]:
34931
34977
  return self._variables
34932
34978
 
34933
- @builtins.property
34934
- def sub_function_variables(self) -> Dict[str, "scout_checks_api_UnresolvedVariables"]:
34935
- return self._sub_function_variables
34936
-
34937
34979
 
34938
34980
  scout_checks_api_UnresolvedVariables.__name__ = "UnresolvedVariables"
34939
34981
  scout_checks_api_UnresolvedVariables.__qualname__ = "UnresolvedVariables"
@@ -35070,87 +35112,9 @@ scout_checks_api_UpdateChecklistMetadataRequest.__qualname__ = "UpdateChecklistM
35070
35112
  scout_checks_api_UpdateChecklistMetadataRequest.__module__ = "nominal_api.scout_checks_api"
35071
35113
 
35072
35114
 
35073
- class scout_checks_api_UpdateFunctionEntryRequest(ConjureUnionType):
35074
- _create_function: Optional["scout_checks_api_CreateFunctionRequest"] = None
35075
- _function: Optional[str] = None
35076
-
35077
- @builtins.classmethod
35078
- def _options(cls) -> Dict[str, ConjureFieldDefinition]:
35079
- return {
35080
- 'create_function': ConjureFieldDefinition('createFunction', scout_checks_api_CreateFunctionRequest),
35081
- 'function': ConjureFieldDefinition('function', scout_rids_api_FunctionRid)
35082
- }
35083
-
35084
- def __init__(
35085
- self,
35086
- create_function: Optional["scout_checks_api_CreateFunctionRequest"] = None,
35087
- function: Optional[str] = None,
35088
- type_of_union: Optional[str] = None
35089
- ) -> None:
35090
- if type_of_union is None:
35091
- if (create_function is not None) + (function is not None) != 1:
35092
- raise ValueError('a union must contain a single member')
35093
-
35094
- if create_function is not None:
35095
- self._create_function = create_function
35096
- self._type = 'createFunction'
35097
- if function is not None:
35098
- self._function = function
35099
- self._type = 'function'
35100
-
35101
- elif type_of_union == 'createFunction':
35102
- if create_function is None:
35103
- raise ValueError('a union value must not be None')
35104
- self._create_function = create_function
35105
- self._type = 'createFunction'
35106
- elif type_of_union == 'function':
35107
- if function is None:
35108
- raise ValueError('a union value must not be None')
35109
- self._function = function
35110
- self._type = 'function'
35111
-
35112
- @builtins.property
35113
- def create_function(self) -> Optional["scout_checks_api_CreateFunctionRequest"]:
35114
- return self._create_function
35115
-
35116
- @builtins.property
35117
- def function(self) -> Optional[str]:
35118
- return self._function
35119
-
35120
- def accept(self, visitor) -> Any:
35121
- if not isinstance(visitor, scout_checks_api_UpdateFunctionEntryRequestVisitor):
35122
- raise ValueError('{} is not an instance of scout_checks_api_UpdateFunctionEntryRequestVisitor'.format(visitor.__class__.__name__))
35123
- if self._type == 'createFunction' and self.create_function is not None:
35124
- return visitor._create_function(self.create_function)
35125
- if self._type == 'function' and self.function is not None:
35126
- return visitor._function(self.function)
35127
-
35128
-
35129
- scout_checks_api_UpdateFunctionEntryRequest.__name__ = "UpdateFunctionEntryRequest"
35130
- scout_checks_api_UpdateFunctionEntryRequest.__qualname__ = "UpdateFunctionEntryRequest"
35131
- scout_checks_api_UpdateFunctionEntryRequest.__module__ = "nominal_api.scout_checks_api"
35132
-
35133
-
35134
- class scout_checks_api_UpdateFunctionEntryRequestVisitor:
35135
-
35136
- @abstractmethod
35137
- def _create_function(self, create_function: "scout_checks_api_CreateFunctionRequest") -> Any:
35138
- pass
35139
-
35140
- @abstractmethod
35141
- def _function(self, function: str) -> Any:
35142
- pass
35143
-
35144
-
35145
- scout_checks_api_UpdateFunctionEntryRequestVisitor.__name__ = "UpdateFunctionEntryRequestVisitor"
35146
- scout_checks_api_UpdateFunctionEntryRequestVisitor.__qualname__ = "UpdateFunctionEntryRequestVisitor"
35147
- scout_checks_api_UpdateFunctionEntryRequestVisitor.__module__ = "nominal_api.scout_checks_api"
35148
-
35149
-
35150
35115
  class scout_checks_api_VariableLocator(ConjureUnionType):
35151
35116
  _checklist_variable: Optional[str] = None
35152
35117
  _compute_node: Optional["scout_checks_api_ComputeNodeWithContext"] = None
35153
- _function_rid: Optional[str] = None
35154
35118
  _series: Optional["scout_api_ChannelLocator"] = None
35155
35119
  _timestamp: Optional["scout_checks_api_TimestampLocator"] = None
35156
35120
 
@@ -35159,7 +35123,6 @@ class scout_checks_api_VariableLocator(ConjureUnionType):
35159
35123
  return {
35160
35124
  'checklist_variable': ConjureFieldDefinition('checklistVariable', scout_compute_api_VariableName),
35161
35125
  'compute_node': ConjureFieldDefinition('computeNode', scout_checks_api_ComputeNodeWithContext),
35162
- 'function_rid': ConjureFieldDefinition('functionRid', scout_rids_api_FunctionRid),
35163
35126
  'series': ConjureFieldDefinition('series', scout_api_ChannelLocator),
35164
35127
  'timestamp': ConjureFieldDefinition('timestamp', scout_checks_api_TimestampLocator)
35165
35128
  }
@@ -35168,13 +35131,12 @@ class scout_checks_api_VariableLocator(ConjureUnionType):
35168
35131
  self,
35169
35132
  checklist_variable: Optional[str] = None,
35170
35133
  compute_node: Optional["scout_checks_api_ComputeNodeWithContext"] = None,
35171
- function_rid: Optional[str] = None,
35172
35134
  series: Optional["scout_api_ChannelLocator"] = None,
35173
35135
  timestamp: Optional["scout_checks_api_TimestampLocator"] = None,
35174
35136
  type_of_union: Optional[str] = None
35175
35137
  ) -> None:
35176
35138
  if type_of_union is None:
35177
- if (checklist_variable is not None) + (compute_node is not None) + (function_rid is not None) + (series is not None) + (timestamp is not None) != 1:
35139
+ if (checklist_variable is not None) + (compute_node is not None) + (series is not None) + (timestamp is not None) != 1:
35178
35140
  raise ValueError('a union must contain a single member')
35179
35141
 
35180
35142
  if checklist_variable is not None:
@@ -35183,9 +35145,6 @@ class scout_checks_api_VariableLocator(ConjureUnionType):
35183
35145
  if compute_node is not None:
35184
35146
  self._compute_node = compute_node
35185
35147
  self._type = 'computeNode'
35186
- if function_rid is not None:
35187
- self._function_rid = function_rid
35188
- self._type = 'functionRid'
35189
35148
  if series is not None:
35190
35149
  self._series = series
35191
35150
  self._type = 'series'
@@ -35203,11 +35162,6 @@ class scout_checks_api_VariableLocator(ConjureUnionType):
35203
35162
  raise ValueError('a union value must not be None')
35204
35163
  self._compute_node = compute_node
35205
35164
  self._type = 'computeNode'
35206
- elif type_of_union == 'functionRid':
35207
- if function_rid is None:
35208
- raise ValueError('a union value must not be None')
35209
- self._function_rid = function_rid
35210
- self._type = 'functionRid'
35211
35165
  elif type_of_union == 'series':
35212
35166
  if series is None:
35213
35167
  raise ValueError('a union value must not be None')
@@ -35229,10 +35183,6 @@ class scout_checks_api_VariableLocator(ConjureUnionType):
35229
35183
  def compute_node(self) -> Optional["scout_checks_api_ComputeNodeWithContext"]:
35230
35184
  return self._compute_node
35231
35185
 
35232
- @builtins.property
35233
- def function_rid(self) -> Optional[str]:
35234
- return self._function_rid
35235
-
35236
35186
  @builtins.property
35237
35187
  def series(self) -> Optional["scout_api_ChannelLocator"]:
35238
35188
  return self._series
@@ -35248,8 +35198,6 @@ class scout_checks_api_VariableLocator(ConjureUnionType):
35248
35198
  return visitor._checklist_variable(self.checklist_variable)
35249
35199
  if self._type == 'computeNode' and self.compute_node is not None:
35250
35200
  return visitor._compute_node(self.compute_node)
35251
- if self._type == 'functionRid' and self.function_rid is not None:
35252
- return visitor._function_rid(self.function_rid)
35253
35201
  if self._type == 'series' and self.series is not None:
35254
35202
  return visitor._series(self.series)
35255
35203
  if self._type == 'timestamp' and self.timestamp is not None:
@@ -35271,10 +35219,6 @@ class scout_checks_api_VariableLocatorVisitor:
35271
35219
  def _compute_node(self, compute_node: "scout_checks_api_ComputeNodeWithContext") -> Any:
35272
35220
  pass
35273
35221
 
35274
- @abstractmethod
35275
- def _function_rid(self, function_rid: str) -> Any:
35276
- pass
35277
-
35278
35222
  @abstractmethod
35279
35223
  def _series(self, series: "scout_api_ChannelLocator") -> Any:
35280
35224
  pass
@@ -35297,14 +35241,14 @@ class scout_checks_api_VersionedChecklist(ConjureBeanType):
35297
35241
  'rid': ConjureFieldDefinition('rid', scout_rids_api_ChecklistRid),
35298
35242
  'metadata': ConjureFieldDefinition('metadata', scout_checks_api_ChecklistMetadata),
35299
35243
  'commit': ConjureFieldDefinition('commit', scout_versioning_api_Commit),
35300
- 'functions': ConjureFieldDefinition('functions', List[scout_checks_api_Function]),
35244
+ 'functions': ConjureFieldDefinition('functions', OptionalTypeWrapper[List[scout_checks_api_Function]]),
35301
35245
  'checks': ConjureFieldDefinition('checks', List[scout_checks_api_ChecklistEntry]),
35302
35246
  'checklist_variables': ConjureFieldDefinition('checklistVariables', List[scout_checks_api_ChecklistVariable])
35303
35247
  }
35304
35248
 
35305
35249
  __slots__: List[str] = ['_rid', '_metadata', '_commit', '_functions', '_checks', '_checklist_variables']
35306
35250
 
35307
- def __init__(self, checklist_variables: List["scout_checks_api_ChecklistVariable"], checks: List["scout_checks_api_ChecklistEntry"], commit: "scout_versioning_api_Commit", functions: List["scout_checks_api_Function"], metadata: "scout_checks_api_ChecklistMetadata", rid: str) -> None:
35251
+ def __init__(self, checklist_variables: List["scout_checks_api_ChecklistVariable"], checks: List["scout_checks_api_ChecklistEntry"], commit: "scout_versioning_api_Commit", metadata: "scout_checks_api_ChecklistMetadata", rid: str, functions: Optional[List["scout_checks_api_Function"]] = None) -> None:
35308
35252
  self._rid = rid
35309
35253
  self._metadata = metadata
35310
35254
  self._commit = commit
@@ -35325,9 +35269,7 @@ class scout_checks_api_VersionedChecklist(ConjureBeanType):
35325
35269
  return self._commit
35326
35270
 
35327
35271
  @builtins.property
35328
- def functions(self) -> List["scout_checks_api_Function"]:
35329
- """A list of functions that are available to be used by checks in this checklist.
35330
- """
35272
+ def functions(self) -> Optional[List["scout_checks_api_Function"]]:
35331
35273
  return self._functions
35332
35274
 
35333
35275
  @builtins.property
@@ -35336,7 +35278,7 @@ class scout_checks_api_VersionedChecklist(ConjureBeanType):
35336
35278
 
35337
35279
  @builtins.property
35338
35280
  def checklist_variables(self) -> List["scout_checks_api_ChecklistVariable"]:
35339
- """Variables that can be used in checks and functions. Variables are resolved in order of declaration.
35281
+ """Variables that can be used in checks. Variables are resolved in order of declaration.
35340
35282
  If variable `a` depends on variable `b`, then `b` must be defined before `a` in the list.
35341
35283
  """
35342
35284
  return self._checklist_variables
@@ -40505,12 +40447,12 @@ class scout_compute_api_Context(ConjureBeanType):
40505
40447
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
40506
40448
  return {
40507
40449
  'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_compute_api_VariableValue]),
40508
- 'function_variables': ConjureFieldDefinition('functionVariables', Dict[scout_compute_api_FunctionReference, scout_compute_api_FunctionVariables])
40450
+ 'function_variables': ConjureFieldDefinition('functionVariables', OptionalTypeWrapper[Dict[scout_compute_api_FunctionReference, scout_compute_api_FunctionVariables]])
40509
40451
  }
40510
40452
 
40511
40453
  __slots__: List[str] = ['_variables', '_function_variables']
40512
40454
 
40513
- def __init__(self, function_variables: Dict[str, "scout_compute_api_FunctionVariables"], variables: Dict[str, "scout_compute_api_VariableValue"]) -> None:
40455
+ def __init__(self, variables: Dict[str, "scout_compute_api_VariableValue"], function_variables: Optional[Dict[str, "scout_compute_api_FunctionVariables"]] = None) -> None:
40514
40456
  self._variables = variables
40515
40457
  self._function_variables = function_variables
40516
40458
 
@@ -40519,11 +40461,7 @@ class scout_compute_api_Context(ConjureBeanType):
40519
40461
  return self._variables
40520
40462
 
40521
40463
  @builtins.property
40522
- def function_variables(self) -> Dict[str, "scout_compute_api_FunctionVariables"]:
40523
- """Map of function references to their variables. The function reference is defined in the FunctionNode definition.
40524
- If a function references another function, the variables for the referenced function should be in the
40525
- subFunctionVariables field of the FunctionVariables.
40526
- """
40464
+ def function_variables(self) -> Optional[Dict[str, "scout_compute_api_FunctionVariables"]]:
40527
40465
  return self._function_variables
40528
40466
 
40529
40467
 
@@ -41894,7 +41832,6 @@ scout_compute_api_EnumResampleSeries.__module__ = "nominal_api.scout_compute_api
41894
41832
 
41895
41833
  class scout_compute_api_EnumSeries(ConjureUnionType):
41896
41834
  _aggregate: Optional["scout_compute_api_AggregateEnumSeries"] = None
41897
- _function: Optional["scout_compute_api_EnumSeriesFunction"] = None
41898
41835
  _raw: Optional["scout_compute_api_Reference"] = None
41899
41836
  _channel: Optional["scout_compute_api_ChannelSeries"] = None
41900
41837
  _resample: Optional["scout_compute_api_EnumResampleSeries"] = None
@@ -41909,7 +41846,6 @@ class scout_compute_api_EnumSeries(ConjureUnionType):
41909
41846
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
41910
41847
  return {
41911
41848
  'aggregate': ConjureFieldDefinition('aggregate', scout_compute_api_AggregateEnumSeries),
41912
- 'function': ConjureFieldDefinition('function', scout_compute_api_EnumSeriesFunction),
41913
41849
  'raw': ConjureFieldDefinition('raw', scout_compute_api_Reference),
41914
41850
  'channel': ConjureFieldDefinition('channel', scout_compute_api_ChannelSeries),
41915
41851
  'resample': ConjureFieldDefinition('resample', scout_compute_api_EnumResampleSeries),
@@ -41924,7 +41860,6 @@ class scout_compute_api_EnumSeries(ConjureUnionType):
41924
41860
  def __init__(
41925
41861
  self,
41926
41862
  aggregate: Optional["scout_compute_api_AggregateEnumSeries"] = None,
41927
- function: Optional["scout_compute_api_EnumSeriesFunction"] = None,
41928
41863
  raw: Optional["scout_compute_api_Reference"] = None,
41929
41864
  channel: Optional["scout_compute_api_ChannelSeries"] = None,
41930
41865
  resample: Optional["scout_compute_api_EnumResampleSeries"] = None,
@@ -41937,15 +41872,12 @@ class scout_compute_api_EnumSeries(ConjureUnionType):
41937
41872
  type_of_union: Optional[str] = None
41938
41873
  ) -> None:
41939
41874
  if type_of_union is None:
41940
- if (aggregate is not None) + (function is not None) + (raw is not None) + (channel is not None) + (resample is not None) + (time_range_filter is not None) + (time_shift is not None) + (union is not None) + (filter_transformation is not None) + (value_map is not None) + (select1d_array_index is not None) != 1:
41875
+ if (aggregate is not None) + (raw is not None) + (channel is not None) + (resample is not None) + (time_range_filter is not None) + (time_shift is not None) + (union is not None) + (filter_transformation is not None) + (value_map is not None) + (select1d_array_index is not None) != 1:
41941
41876
  raise ValueError('a union must contain a single member')
41942
41877
 
41943
41878
  if aggregate is not None:
41944
41879
  self._aggregate = aggregate
41945
41880
  self._type = 'aggregate'
41946
- if function is not None:
41947
- self._function = function
41948
- self._type = 'function'
41949
41881
  if raw is not None:
41950
41882
  self._raw = raw
41951
41883
  self._type = 'raw'
@@ -41979,11 +41911,6 @@ class scout_compute_api_EnumSeries(ConjureUnionType):
41979
41911
  raise ValueError('a union value must not be None')
41980
41912
  self._aggregate = aggregate
41981
41913
  self._type = 'aggregate'
41982
- elif type_of_union == 'function':
41983
- if function is None:
41984
- raise ValueError('a union value must not be None')
41985
- self._function = function
41986
- self._type = 'function'
41987
41914
  elif type_of_union == 'raw':
41988
41915
  if raw is None:
41989
41916
  raise ValueError('a union value must not be None')
@@ -42034,10 +41961,6 @@ class scout_compute_api_EnumSeries(ConjureUnionType):
42034
41961
  def aggregate(self) -> Optional["scout_compute_api_AggregateEnumSeries"]:
42035
41962
  return self._aggregate
42036
41963
 
42037
- @builtins.property
42038
- def function(self) -> Optional["scout_compute_api_EnumSeriesFunction"]:
42039
- return self._function
42040
-
42041
41964
  @builtins.property
42042
41965
  def raw(self) -> Optional["scout_compute_api_Reference"]:
42043
41966
  return self._raw
@@ -42079,8 +42002,6 @@ class scout_compute_api_EnumSeries(ConjureUnionType):
42079
42002
  raise ValueError('{} is not an instance of scout_compute_api_EnumSeriesVisitor'.format(visitor.__class__.__name__))
42080
42003
  if self._type == 'aggregate' and self.aggregate is not None:
42081
42004
  return visitor._aggregate(self.aggregate)
42082
- if self._type == 'function' and self.function is not None:
42083
- return visitor._function(self.function)
42084
42005
  if self._type == 'raw' and self.raw is not None:
42085
42006
  return visitor._raw(self.raw)
42086
42007
  if self._type == 'channel' and self.channel is not None:
@@ -42112,10 +42033,6 @@ class scout_compute_api_EnumSeriesVisitor:
42112
42033
  def _aggregate(self, aggregate: "scout_compute_api_AggregateEnumSeries") -> Any:
42113
42034
  pass
42114
42035
 
42115
- @abstractmethod
42116
- def _function(self, function: "scout_compute_api_EnumSeriesFunction") -> Any:
42117
- pass
42118
-
42119
42036
  @abstractmethod
42120
42037
  def _raw(self, raw: "scout_compute_api_Reference") -> Any:
42121
42038
  pass
@@ -42203,41 +42120,6 @@ scout_compute_api_EnumSeriesEqualityRanges.__qualname__ = "EnumSeriesEqualityRan
42203
42120
  scout_compute_api_EnumSeriesEqualityRanges.__module__ = "nominal_api.scout_compute_api"
42204
42121
 
42205
42122
 
42206
- class scout_compute_api_EnumSeriesFunction(ConjureBeanType):
42207
- """A function reference that outputs an enum series.
42208
- """
42209
-
42210
- @builtins.classmethod
42211
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
42212
- return {
42213
- 'function_reference': ConjureFieldDefinition('functionReference', scout_compute_api_FunctionReference),
42214
- 'function_identifier': ConjureFieldDefinition('functionIdentifier', scout_compute_api_FunctionVariable)
42215
- }
42216
-
42217
- __slots__: List[str] = ['_function_reference', '_function_identifier']
42218
-
42219
- def __init__(self, function_identifier: "scout_compute_api_FunctionVariable", function_reference: str) -> None:
42220
- self._function_reference = function_reference
42221
- self._function_identifier = function_identifier
42222
-
42223
- @builtins.property
42224
- def function_reference(self) -> str:
42225
- """A reference to identify the function node for substituting variables used within the function.
42226
- """
42227
- return self._function_reference
42228
-
42229
- @builtins.property
42230
- def function_identifier(self) -> "scout_compute_api_FunctionVariable":
42231
- """The variable that needs to be substituted with the function RID.
42232
- """
42233
- return self._function_identifier
42234
-
42235
-
42236
- scout_compute_api_EnumSeriesFunction.__name__ = "EnumSeriesFunction"
42237
- scout_compute_api_EnumSeriesFunction.__qualname__ = "EnumSeriesFunction"
42238
- scout_compute_api_EnumSeriesFunction.__module__ = "nominal_api.scout_compute_api"
42239
-
42240
-
42241
42123
  class scout_compute_api_EnumTimeRangeFilterSeries(ConjureBeanType):
42242
42124
  """Filters the series to points within the specified time range.
42243
42125
  """
@@ -42669,62 +42551,6 @@ scout_compute_api_FrequencyDomainPlot.__qualname__ = "FrequencyDomainPlot"
42669
42551
  scout_compute_api_FrequencyDomainPlot.__module__ = "nominal_api.scout_compute_api"
42670
42552
 
42671
42553
 
42672
- class scout_compute_api_FunctionVariable(ConjureUnionType):
42673
- _variable: Optional[str] = None
42674
-
42675
- @builtins.classmethod
42676
- def _options(cls) -> Dict[str, ConjureFieldDefinition]:
42677
- return {
42678
- 'variable': ConjureFieldDefinition('variable', scout_compute_api_VariableName)
42679
- }
42680
-
42681
- def __init__(
42682
- self,
42683
- variable: Optional[str] = None,
42684
- type_of_union: Optional[str] = None
42685
- ) -> None:
42686
- if type_of_union is None:
42687
- if (variable is not None) != 1:
42688
- raise ValueError('a union must contain a single member')
42689
-
42690
- if variable is not None:
42691
- self._variable = variable
42692
- self._type = 'variable'
42693
-
42694
- elif type_of_union == 'variable':
42695
- if variable is None:
42696
- raise ValueError('a union value must not be None')
42697
- self._variable = variable
42698
- self._type = 'variable'
42699
-
42700
- @builtins.property
42701
- def variable(self) -> Optional[str]:
42702
- return self._variable
42703
-
42704
- def accept(self, visitor) -> Any:
42705
- if not isinstance(visitor, scout_compute_api_FunctionVariableVisitor):
42706
- raise ValueError('{} is not an instance of scout_compute_api_FunctionVariableVisitor'.format(visitor.__class__.__name__))
42707
- if self._type == 'variable' and self.variable is not None:
42708
- return visitor._variable(self.variable)
42709
-
42710
-
42711
- scout_compute_api_FunctionVariable.__name__ = "FunctionVariable"
42712
- scout_compute_api_FunctionVariable.__qualname__ = "FunctionVariable"
42713
- scout_compute_api_FunctionVariable.__module__ = "nominal_api.scout_compute_api"
42714
-
42715
-
42716
- class scout_compute_api_FunctionVariableVisitor:
42717
-
42718
- @abstractmethod
42719
- def _variable(self, variable: str) -> Any:
42720
- pass
42721
-
42722
-
42723
- scout_compute_api_FunctionVariableVisitor.__name__ = "FunctionVariableVisitor"
42724
- scout_compute_api_FunctionVariableVisitor.__qualname__ = "FunctionVariableVisitor"
42725
- scout_compute_api_FunctionVariableVisitor.__module__ = "nominal_api.scout_compute_api"
42726
-
42727
-
42728
42554
  class scout_compute_api_FunctionVariables(ConjureBeanType):
42729
42555
 
42730
42556
  @builtins.classmethod
@@ -45063,7 +44889,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45063
44889
  _count_duplicate: Optional["scout_compute_api_EnumCountDuplicateSeries"] = None
45064
44890
  _cumulative_sum: Optional["scout_compute_api_CumulativeSumSeries"] = None
45065
44891
  _derivative: Optional["scout_compute_api_DerivativeSeries"] = None
45066
- _function: Optional["scout_compute_api_NumericSeriesFunction"] = None
45067
44892
  _integral: Optional["scout_compute_api_IntegralSeries"] = None
45068
44893
  _max: Optional["scout_compute_api_MaxSeries"] = None
45069
44894
  _mean: Optional["scout_compute_api_MeanSeries"] = None
@@ -45100,7 +44925,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45100
44925
  'count_duplicate': ConjureFieldDefinition('countDuplicate', scout_compute_api_EnumCountDuplicateSeries),
45101
44926
  'cumulative_sum': ConjureFieldDefinition('cumulativeSum', scout_compute_api_CumulativeSumSeries),
45102
44927
  'derivative': ConjureFieldDefinition('derivative', scout_compute_api_DerivativeSeries),
45103
- 'function': ConjureFieldDefinition('function', scout_compute_api_NumericSeriesFunction),
45104
44928
  'integral': ConjureFieldDefinition('integral', scout_compute_api_IntegralSeries),
45105
44929
  'max': ConjureFieldDefinition('max', scout_compute_api_MaxSeries),
45106
44930
  'mean': ConjureFieldDefinition('mean', scout_compute_api_MeanSeries),
@@ -45137,7 +44961,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45137
44961
  count_duplicate: Optional["scout_compute_api_EnumCountDuplicateSeries"] = None,
45138
44962
  cumulative_sum: Optional["scout_compute_api_CumulativeSumSeries"] = None,
45139
44963
  derivative: Optional["scout_compute_api_DerivativeSeries"] = None,
45140
- function: Optional["scout_compute_api_NumericSeriesFunction"] = None,
45141
44964
  integral: Optional["scout_compute_api_IntegralSeries"] = None,
45142
44965
  max: Optional["scout_compute_api_MaxSeries"] = None,
45143
44966
  mean: Optional["scout_compute_api_MeanSeries"] = None,
@@ -45167,7 +44990,7 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45167
44990
  type_of_union: Optional[str] = None
45168
44991
  ) -> None:
45169
44992
  if type_of_union is None:
45170
- if (aggregate is not None) + (arithmetic is not None) + (bit_operation is not None) + (count_duplicate is not None) + (cumulative_sum is not None) + (derivative is not None) + (function is not None) + (integral is not None) + (max is not None) + (mean is not None) + (min is not None) + (offset is not None) + (product is not None) + (raw is not None) + (channel is not None) + (resample is not None) + (rolling_operation is not None) + (signal_filter is not None) + (sum is not None) + (scale is not None) + (time_difference is not None) + (absolute_timestamp is not None) + (time_range_filter is not None) + (time_shift is not None) + (unary_arithmetic is not None) + (binary_arithmetic is not None) + (union is not None) + (unit_conversion is not None) + (value_difference is not None) + (filter_transformation is not None) + (threshold_filter is not None) + (approximate_filter is not None) + (select1d_array_index is not None) != 1:
44993
+ if (aggregate is not None) + (arithmetic is not None) + (bit_operation is not None) + (count_duplicate is not None) + (cumulative_sum is not None) + (derivative is not None) + (integral is not None) + (max is not None) + (mean is not None) + (min is not None) + (offset is not None) + (product is not None) + (raw is not None) + (channel is not None) + (resample is not None) + (rolling_operation is not None) + (signal_filter is not None) + (sum is not None) + (scale is not None) + (time_difference is not None) + (absolute_timestamp is not None) + (time_range_filter is not None) + (time_shift is not None) + (unary_arithmetic is not None) + (binary_arithmetic is not None) + (union is not None) + (unit_conversion is not None) + (value_difference is not None) + (filter_transformation is not None) + (threshold_filter is not None) + (approximate_filter is not None) + (select1d_array_index is not None) != 1:
45171
44994
  raise ValueError('a union must contain a single member')
45172
44995
 
45173
44996
  if aggregate is not None:
@@ -45188,9 +45011,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45188
45011
  if derivative is not None:
45189
45012
  self._derivative = derivative
45190
45013
  self._type = 'derivative'
45191
- if function is not None:
45192
- self._function = function
45193
- self._type = 'function'
45194
45014
  if integral is not None:
45195
45015
  self._integral = integral
45196
45016
  self._type = 'integral'
@@ -45300,11 +45120,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45300
45120
  raise ValueError('a union value must not be None')
45301
45121
  self._derivative = derivative
45302
45122
  self._type = 'derivative'
45303
- elif type_of_union == 'function':
45304
- if function is None:
45305
- raise ValueError('a union value must not be None')
45306
- self._function = function
45307
- self._type = 'function'
45308
45123
  elif type_of_union == 'integral':
45309
45124
  if integral is None:
45310
45125
  raise ValueError('a union value must not be None')
@@ -45460,10 +45275,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45460
45275
  def derivative(self) -> Optional["scout_compute_api_DerivativeSeries"]:
45461
45276
  return self._derivative
45462
45277
 
45463
- @builtins.property
45464
- def function(self) -> Optional["scout_compute_api_NumericSeriesFunction"]:
45465
- return self._function
45466
-
45467
45278
  @builtins.property
45468
45279
  def integral(self) -> Optional["scout_compute_api_IntegralSeries"]:
45469
45280
  return self._integral
@@ -45583,8 +45394,6 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
45583
45394
  return visitor._cumulative_sum(self.cumulative_sum)
45584
45395
  if self._type == 'derivative' and self.derivative is not None:
45585
45396
  return visitor._derivative(self.derivative)
45586
- if self._type == 'function' and self.function is not None:
45587
- return visitor._function(self.function)
45588
45397
  if self._type == 'integral' and self.integral is not None:
45589
45398
  return visitor._integral(self.integral)
45590
45399
  if self._type == 'max' and self.max is not None:
@@ -45670,10 +45479,6 @@ class scout_compute_api_NumericSeriesVisitor:
45670
45479
  def _derivative(self, derivative: "scout_compute_api_DerivativeSeries") -> Any:
45671
45480
  pass
45672
45481
 
45673
- @abstractmethod
45674
- def _function(self, function: "scout_compute_api_NumericSeriesFunction") -> Any:
45675
- pass
45676
-
45677
45482
  @abstractmethod
45678
45483
  def _integral(self, integral: "scout_compute_api_IntegralSeries") -> Any:
45679
45484
  pass
@@ -45784,41 +45589,6 @@ scout_compute_api_NumericSeriesVisitor.__qualname__ = "NumericSeriesVisitor"
45784
45589
  scout_compute_api_NumericSeriesVisitor.__module__ = "nominal_api.scout_compute_api"
45785
45590
 
45786
45591
 
45787
- class scout_compute_api_NumericSeriesFunction(ConjureBeanType):
45788
- """A function reference that outputs a numeric series.
45789
- """
45790
-
45791
- @builtins.classmethod
45792
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
45793
- return {
45794
- 'function_reference': ConjureFieldDefinition('functionReference', scout_compute_api_FunctionReference),
45795
- 'function_identifier': ConjureFieldDefinition('functionIdentifier', scout_compute_api_FunctionVariable)
45796
- }
45797
-
45798
- __slots__: List[str] = ['_function_reference', '_function_identifier']
45799
-
45800
- def __init__(self, function_identifier: "scout_compute_api_FunctionVariable", function_reference: str) -> None:
45801
- self._function_reference = function_reference
45802
- self._function_identifier = function_identifier
45803
-
45804
- @builtins.property
45805
- def function_reference(self) -> str:
45806
- """A reference to identify the function node for substituting variables used within the function.
45807
- """
45808
- return self._function_reference
45809
-
45810
- @builtins.property
45811
- def function_identifier(self) -> "scout_compute_api_FunctionVariable":
45812
- """The variable that needs to be substituted with the function RID.
45813
- """
45814
- return self._function_identifier
45815
-
45816
-
45817
- scout_compute_api_NumericSeriesFunction.__name__ = "NumericSeriesFunction"
45818
- scout_compute_api_NumericSeriesFunction.__qualname__ = "NumericSeriesFunction"
45819
- scout_compute_api_NumericSeriesFunction.__module__ = "nominal_api.scout_compute_api"
45820
-
45821
-
45822
45592
  class scout_compute_api_NumericThresholdFilterSeries(ConjureBeanType):
45823
45593
  """Outputs only the values of the numeric plot value that satisfy the threshold condition.
45824
45594
  """
@@ -46335,29 +46105,19 @@ class scout_compute_api_ParameterInput(ConjureBeanType):
46335
46105
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
46336
46106
  return {
46337
46107
  'variables': ConjureFieldDefinition('variables', Dict[scout_compute_api_VariableName, scout_compute_api_VariableValue]),
46338
- 'function_variables': ConjureFieldDefinition('functionVariables', Dict[scout_compute_api_FunctionReference, scout_compute_api_FunctionVariables]),
46339
46108
  'time_range': ConjureFieldDefinition('timeRange', OptionalTypeWrapper[scout_compute_api_Range])
46340
46109
  }
46341
46110
 
46342
- __slots__: List[str] = ['_variables', '_function_variables', '_time_range']
46111
+ __slots__: List[str] = ['_variables', '_time_range']
46343
46112
 
46344
- def __init__(self, function_variables: Dict[str, "scout_compute_api_FunctionVariables"], variables: Dict[str, "scout_compute_api_VariableValue"], time_range: Optional["scout_compute_api_Range"] = None) -> None:
46113
+ def __init__(self, variables: Dict[str, "scout_compute_api_VariableValue"], time_range: Optional["scout_compute_api_Range"] = None) -> None:
46345
46114
  self._variables = variables
46346
- self._function_variables = function_variables
46347
46115
  self._time_range = time_range
46348
46116
 
46349
46117
  @builtins.property
46350
46118
  def variables(self) -> Dict[str, "scout_compute_api_VariableValue"]:
46351
46119
  return self._variables
46352
46120
 
46353
- @builtins.property
46354
- def function_variables(self) -> Dict[str, "scout_compute_api_FunctionVariables"]:
46355
- """Map of function references to their variables. The function reference is defined in the FunctionNode definition.
46356
- If a function references another function, the variables for the referenced function should be in the
46357
- subFunctionVariables field of the FunctionVariables.
46358
- """
46359
- return self._function_variables
46360
-
46361
46121
  @builtins.property
46362
46122
  def time_range(self) -> Optional["scout_compute_api_Range"]:
46363
46123
  """Overrides the start and end time of the compute request. If either the start or end are not present, we
@@ -47060,7 +46820,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47060
46820
  _enum_filter: Optional["scout_compute_api_EnumFilterRanges"] = None
47061
46821
  _enum_series_equality_ranges_node: Optional["scout_compute_api_EnumSeriesEqualityRanges"] = None
47062
46822
  _events_search: Optional["scout_compute_api_EventsSearchRanges"] = None
47063
- _function: Optional["scout_compute_api_RangesFunction"] = None
47064
46823
  _intersect_range: Optional["scout_compute_api_IntersectRanges"] = None
47065
46824
  _literal_ranges: Optional["scout_compute_api_LiteralRanges"] = None
47066
46825
  _min_max_threshold: Optional["scout_compute_api_MinMaxThresholdRanges"] = None
@@ -47084,7 +46843,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47084
46843
  'enum_filter': ConjureFieldDefinition('enumFilter', scout_compute_api_EnumFilterRanges),
47085
46844
  'enum_series_equality_ranges_node': ConjureFieldDefinition('enumSeriesEqualityRangesNode', scout_compute_api_EnumSeriesEqualityRanges),
47086
46845
  'events_search': ConjureFieldDefinition('eventsSearch', scout_compute_api_EventsSearchRanges),
47087
- 'function': ConjureFieldDefinition('function', scout_compute_api_RangesFunction),
47088
46846
  'intersect_range': ConjureFieldDefinition('intersectRange', scout_compute_api_IntersectRanges),
47089
46847
  'literal_ranges': ConjureFieldDefinition('literalRanges', scout_compute_api_LiteralRanges),
47090
46848
  'min_max_threshold': ConjureFieldDefinition('minMaxThreshold', scout_compute_api_MinMaxThresholdRanges),
@@ -47108,7 +46866,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47108
46866
  enum_filter: Optional["scout_compute_api_EnumFilterRanges"] = None,
47109
46867
  enum_series_equality_ranges_node: Optional["scout_compute_api_EnumSeriesEqualityRanges"] = None,
47110
46868
  events_search: Optional["scout_compute_api_EventsSearchRanges"] = None,
47111
- function: Optional["scout_compute_api_RangesFunction"] = None,
47112
46869
  intersect_range: Optional["scout_compute_api_IntersectRanges"] = None,
47113
46870
  literal_ranges: Optional["scout_compute_api_LiteralRanges"] = None,
47114
46871
  min_max_threshold: Optional["scout_compute_api_MinMaxThresholdRanges"] = None,
@@ -47126,7 +46883,7 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47126
46883
  type_of_union: Optional[str] = None
47127
46884
  ) -> None:
47128
46885
  if type_of_union is None:
47129
- if (approximate_threshold is not None) + (duration_filter is not None) + (enum_filter is not None) + (enum_series_equality_ranges_node is not None) + (events_search is not None) + (function is not None) + (intersect_range is not None) + (literal_ranges is not None) + (min_max_threshold is not None) + (not_ is not None) + (on_change is not None) + (peak is not None) + (range_numeric_aggregation is not None) + (raw is not None) + (series_crossover_ranges_node is not None) + (series_equality_ranges_node is not None) + (stability_detection is not None) + (stale_range is not None) + (threshold is not None) + (union_range is not None) != 1:
46886
+ if (approximate_threshold is not None) + (duration_filter is not None) + (enum_filter is not None) + (enum_series_equality_ranges_node is not None) + (events_search is not None) + (intersect_range is not None) + (literal_ranges is not None) + (min_max_threshold is not None) + (not_ is not None) + (on_change is not None) + (peak is not None) + (range_numeric_aggregation is not None) + (raw is not None) + (series_crossover_ranges_node is not None) + (series_equality_ranges_node is not None) + (stability_detection is not None) + (stale_range is not None) + (threshold is not None) + (union_range is not None) != 1:
47130
46887
  raise ValueError('a union must contain a single member')
47131
46888
 
47132
46889
  if approximate_threshold is not None:
@@ -47144,9 +46901,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47144
46901
  if events_search is not None:
47145
46902
  self._events_search = events_search
47146
46903
  self._type = 'eventsSearch'
47147
- if function is not None:
47148
- self._function = function
47149
- self._type = 'function'
47150
46904
  if intersect_range is not None:
47151
46905
  self._intersect_range = intersect_range
47152
46906
  self._type = 'intersectRange'
@@ -47215,11 +46969,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47215
46969
  raise ValueError('a union value must not be None')
47216
46970
  self._events_search = events_search
47217
46971
  self._type = 'eventsSearch'
47218
- elif type_of_union == 'function':
47219
- if function is None:
47220
- raise ValueError('a union value must not be None')
47221
- self._function = function
47222
- self._type = 'function'
47223
46972
  elif type_of_union == 'intersectRange':
47224
46973
  if intersect_range is None:
47225
46974
  raise ValueError('a union value must not be None')
@@ -47311,10 +47060,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47311
47060
  def events_search(self) -> Optional["scout_compute_api_EventsSearchRanges"]:
47312
47061
  return self._events_search
47313
47062
 
47314
- @builtins.property
47315
- def function(self) -> Optional["scout_compute_api_RangesFunction"]:
47316
- return self._function
47317
-
47318
47063
  @builtins.property
47319
47064
  def intersect_range(self) -> Optional["scout_compute_api_IntersectRanges"]:
47320
47065
  return self._intersect_range
@@ -47388,8 +47133,6 @@ class scout_compute_api_RangeSeries(ConjureUnionType):
47388
47133
  return visitor._enum_series_equality_ranges_node(self.enum_series_equality_ranges_node)
47389
47134
  if self._type == 'eventsSearch' and self.events_search is not None:
47390
47135
  return visitor._events_search(self.events_search)
47391
- if self._type == 'function' and self.function is not None:
47392
- return visitor._function(self.function)
47393
47136
  if self._type == 'intersectRange' and self.intersect_range is not None:
47394
47137
  return visitor._intersect_range(self.intersect_range)
47395
47138
  if self._type == 'literalRanges' and self.literal_ranges is not None:
@@ -47447,10 +47190,6 @@ class scout_compute_api_RangeSeriesVisitor:
47447
47190
  def _events_search(self, events_search: "scout_compute_api_EventsSearchRanges") -> Any:
47448
47191
  pass
47449
47192
 
47450
- @abstractmethod
47451
- def _function(self, function: "scout_compute_api_RangesFunction") -> Any:
47452
- pass
47453
-
47454
47193
  @abstractmethod
47455
47194
  def _intersect_range(self, intersect_range: "scout_compute_api_IntersectRanges") -> Any:
47456
47195
  pass
@@ -47646,41 +47385,6 @@ scout_compute_api_RangeValueVisitor.__qualname__ = "RangeValueVisitor"
47646
47385
  scout_compute_api_RangeValueVisitor.__module__ = "nominal_api.scout_compute_api"
47647
47386
 
47648
47387
 
47649
- class scout_compute_api_RangesFunction(ConjureBeanType):
47650
- """A function reference that outputs a ranges series.
47651
- """
47652
-
47653
- @builtins.classmethod
47654
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
47655
- return {
47656
- 'function_reference': ConjureFieldDefinition('functionReference', scout_compute_api_FunctionReference),
47657
- 'function_identifier': ConjureFieldDefinition('functionIdentifier', scout_compute_api_FunctionVariable)
47658
- }
47659
-
47660
- __slots__: List[str] = ['_function_reference', '_function_identifier']
47661
-
47662
- def __init__(self, function_identifier: "scout_compute_api_FunctionVariable", function_reference: str) -> None:
47663
- self._function_reference = function_reference
47664
- self._function_identifier = function_identifier
47665
-
47666
- @builtins.property
47667
- def function_reference(self) -> str:
47668
- """A reference to identify the function node for substituting variables used within the function.
47669
- """
47670
- return self._function_reference
47671
-
47672
- @builtins.property
47673
- def function_identifier(self) -> "scout_compute_api_FunctionVariable":
47674
- """The variable that needs to be substituted with the function RID.
47675
- """
47676
- return self._function_identifier
47677
-
47678
-
47679
- scout_compute_api_RangesFunction.__name__ = "RangesFunction"
47680
- scout_compute_api_RangesFunction.__qualname__ = "RangesFunction"
47681
- scout_compute_api_RangesFunction.__module__ = "nominal_api.scout_compute_api"
47682
-
47683
-
47684
47388
  class scout_compute_api_RangesNumericAggregation(ConjureBeanType):
47685
47389
  """Aggregates the values of a numeric series at each range specified by the input ranges.
47686
47390
  """
@@ -50612,7 +50316,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50612
50316
  _double: Optional[float] = None
50613
50317
  _compute_node: Optional["scout_compute_api_ComputeNodeWithContext"] = None
50614
50318
  _duration: Optional["scout_run_api_Duration"] = None
50615
- _function_rid: Optional[str] = None
50616
50319
  _integer: Optional[int] = None
50617
50320
  _channel: Optional["scout_compute_api_ChannelSeries"] = None
50618
50321
  _series: Optional["scout_compute_api_SeriesSpec"] = None
@@ -50626,7 +50329,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50626
50329
  'double': ConjureFieldDefinition('double', float),
50627
50330
  'compute_node': ConjureFieldDefinition('computeNode', scout_compute_api_ComputeNodeWithContext),
50628
50331
  'duration': ConjureFieldDefinition('duration', scout_run_api_Duration),
50629
- 'function_rid': ConjureFieldDefinition('functionRid', scout_rids_api_FunctionRid),
50630
50332
  'integer': ConjureFieldDefinition('integer', int),
50631
50333
  'channel': ConjureFieldDefinition('channel', scout_compute_api_ChannelSeries),
50632
50334
  'series': ConjureFieldDefinition('series', scout_compute_api_SeriesSpec),
@@ -50640,7 +50342,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50640
50342
  double: Optional[float] = None,
50641
50343
  compute_node: Optional["scout_compute_api_ComputeNodeWithContext"] = None,
50642
50344
  duration: Optional["scout_run_api_Duration"] = None,
50643
- function_rid: Optional[str] = None,
50644
50345
  integer: Optional[int] = None,
50645
50346
  channel: Optional["scout_compute_api_ChannelSeries"] = None,
50646
50347
  series: Optional["scout_compute_api_SeriesSpec"] = None,
@@ -50650,7 +50351,7 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50650
50351
  type_of_union: Optional[str] = None
50651
50352
  ) -> None:
50652
50353
  if type_of_union is None:
50653
- if (double is not None) + (compute_node is not None) + (duration is not None) + (function_rid is not None) + (integer is not None) + (channel is not None) + (series is not None) + (string is not None) + (string_set is not None) + (timestamp is not None) != 1:
50354
+ if (double is not None) + (compute_node is not None) + (duration is not None) + (integer is not None) + (channel is not None) + (series is not None) + (string is not None) + (string_set is not None) + (timestamp is not None) != 1:
50654
50355
  raise ValueError('a union must contain a single member')
50655
50356
 
50656
50357
  if double is not None:
@@ -50662,9 +50363,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50662
50363
  if duration is not None:
50663
50364
  self._duration = duration
50664
50365
  self._type = 'duration'
50665
- if function_rid is not None:
50666
- self._function_rid = function_rid
50667
- self._type = 'functionRid'
50668
50366
  if integer is not None:
50669
50367
  self._integer = integer
50670
50368
  self._type = 'integer'
@@ -50699,11 +50397,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50699
50397
  raise ValueError('a union value must not be None')
50700
50398
  self._duration = duration
50701
50399
  self._type = 'duration'
50702
- elif type_of_union == 'functionRid':
50703
- if function_rid is None:
50704
- raise ValueError('a union value must not be None')
50705
- self._function_rid = function_rid
50706
- self._type = 'functionRid'
50707
50400
  elif type_of_union == 'integer':
50708
50401
  if integer is None:
50709
50402
  raise ValueError('a union value must not be None')
@@ -50747,10 +50440,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50747
50440
  def duration(self) -> Optional["scout_run_api_Duration"]:
50748
50441
  return self._duration
50749
50442
 
50750
- @builtins.property
50751
- def function_rid(self) -> Optional[str]:
50752
- return self._function_rid
50753
-
50754
50443
  @builtins.property
50755
50444
  def integer(self) -> Optional[int]:
50756
50445
  return self._integer
@@ -50784,8 +50473,6 @@ class scout_compute_api_VariableValue(ConjureUnionType):
50784
50473
  return visitor._compute_node(self.compute_node)
50785
50474
  if self._type == 'duration' and self.duration is not None:
50786
50475
  return visitor._duration(self.duration)
50787
- if self._type == 'functionRid' and self.function_rid is not None:
50788
- return visitor._function_rid(self.function_rid)
50789
50476
  if self._type == 'integer' and self.integer is not None:
50790
50477
  return visitor._integer(self.integer)
50791
50478
  if self._type == 'channel' and self.channel is not None:
@@ -50819,10 +50506,6 @@ class scout_compute_api_VariableValueVisitor:
50819
50506
  def _duration(self, duration: "scout_run_api_Duration") -> Any:
50820
50507
  pass
50821
50508
 
50822
- @abstractmethod
50823
- def _function_rid(self, function_rid: str) -> Any:
50824
- pass
50825
-
50826
50509
  @abstractmethod
50827
50510
  def _integer(self, integer: int) -> Any:
50828
50511
  pass
@@ -51399,7 +51082,6 @@ scout_compute_api_deprecated_EnumFilterRangesNode.__module__ = "nominal_api.scou
51399
51082
 
51400
51083
  class scout_compute_api_deprecated_EnumSeriesNode(ConjureUnionType):
51401
51084
  _raw: Optional["scout_compute_api_Reference"] = None
51402
- _function: Optional["scout_compute_api_EnumSeriesFunction"] = None
51403
51085
  _time_range_filter: Optional["scout_compute_api_deprecated_EnumTimeRangeFilterSeriesNode"] = None
51404
51086
  _time_shift: Optional["scout_compute_api_deprecated_EnumTimeShiftSeriesNode"] = None
51405
51087
  _union: Optional["scout_compute_api_deprecated_EnumUnionSeriesNode"] = None
@@ -51408,7 +51090,6 @@ class scout_compute_api_deprecated_EnumSeriesNode(ConjureUnionType):
51408
51090
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
51409
51091
  return {
51410
51092
  'raw': ConjureFieldDefinition('raw', scout_compute_api_Reference),
51411
- 'function': ConjureFieldDefinition('function', scout_compute_api_EnumSeriesFunction),
51412
51093
  'time_range_filter': ConjureFieldDefinition('timeRangeFilter', scout_compute_api_deprecated_EnumTimeRangeFilterSeriesNode),
51413
51094
  'time_shift': ConjureFieldDefinition('timeShift', scout_compute_api_deprecated_EnumTimeShiftSeriesNode),
51414
51095
  'union': ConjureFieldDefinition('union', scout_compute_api_deprecated_EnumUnionSeriesNode)
@@ -51417,22 +51098,18 @@ class scout_compute_api_deprecated_EnumSeriesNode(ConjureUnionType):
51417
51098
  def __init__(
51418
51099
  self,
51419
51100
  raw: Optional["scout_compute_api_Reference"] = None,
51420
- function: Optional["scout_compute_api_EnumSeriesFunction"] = None,
51421
51101
  time_range_filter: Optional["scout_compute_api_deprecated_EnumTimeRangeFilterSeriesNode"] = None,
51422
51102
  time_shift: Optional["scout_compute_api_deprecated_EnumTimeShiftSeriesNode"] = None,
51423
51103
  union: Optional["scout_compute_api_deprecated_EnumUnionSeriesNode"] = None,
51424
51104
  type_of_union: Optional[str] = None
51425
51105
  ) -> None:
51426
51106
  if type_of_union is None:
51427
- if (raw is not None) + (function is not None) + (time_range_filter is not None) + (time_shift is not None) + (union is not None) != 1:
51107
+ if (raw is not None) + (time_range_filter is not None) + (time_shift is not None) + (union is not None) != 1:
51428
51108
  raise ValueError('a union must contain a single member')
51429
51109
 
51430
51110
  if raw is not None:
51431
51111
  self._raw = raw
51432
51112
  self._type = 'raw'
51433
- if function is not None:
51434
- self._function = function
51435
- self._type = 'function'
51436
51113
  if time_range_filter is not None:
51437
51114
  self._time_range_filter = time_range_filter
51438
51115
  self._type = 'timeRangeFilter'
@@ -51448,11 +51125,6 @@ class scout_compute_api_deprecated_EnumSeriesNode(ConjureUnionType):
51448
51125
  raise ValueError('a union value must not be None')
51449
51126
  self._raw = raw
51450
51127
  self._type = 'raw'
51451
- elif type_of_union == 'function':
51452
- if function is None:
51453
- raise ValueError('a union value must not be None')
51454
- self._function = function
51455
- self._type = 'function'
51456
51128
  elif type_of_union == 'timeRangeFilter':
51457
51129
  if time_range_filter is None:
51458
51130
  raise ValueError('a union value must not be None')
@@ -51473,10 +51145,6 @@ class scout_compute_api_deprecated_EnumSeriesNode(ConjureUnionType):
51473
51145
  def raw(self) -> Optional["scout_compute_api_Reference"]:
51474
51146
  return self._raw
51475
51147
 
51476
- @builtins.property
51477
- def function(self) -> Optional["scout_compute_api_EnumSeriesFunction"]:
51478
- return self._function
51479
-
51480
51148
  @builtins.property
51481
51149
  def time_range_filter(self) -> Optional["scout_compute_api_deprecated_EnumTimeRangeFilterSeriesNode"]:
51482
51150
  return self._time_range_filter
@@ -51494,8 +51162,6 @@ class scout_compute_api_deprecated_EnumSeriesNode(ConjureUnionType):
51494
51162
  raise ValueError('{} is not an instance of scout_compute_api_deprecated_EnumSeriesNodeVisitor'.format(visitor.__class__.__name__))
51495
51163
  if self._type == 'raw' and self.raw is not None:
51496
51164
  return visitor._raw(self.raw)
51497
- if self._type == 'function' and self.function is not None:
51498
- return visitor._function(self.function)
51499
51165
  if self._type == 'timeRangeFilter' and self.time_range_filter is not None:
51500
51166
  return visitor._time_range_filter(self.time_range_filter)
51501
51167
  if self._type == 'timeShift' and self.time_shift is not None:
@@ -51515,10 +51181,6 @@ class scout_compute_api_deprecated_EnumSeriesNodeVisitor:
51515
51181
  def _raw(self, raw: "scout_compute_api_Reference") -> Any:
51516
51182
  pass
51517
51183
 
51518
- @abstractmethod
51519
- def _function(self, function: "scout_compute_api_EnumSeriesFunction") -> Any:
51520
- pass
51521
-
51522
51184
  @abstractmethod
51523
51185
  def _time_range_filter(self, time_range_filter: "scout_compute_api_deprecated_EnumTimeRangeFilterSeriesNode") -> Any:
51524
51186
  pass
@@ -51737,7 +51399,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51737
51399
  _arithmetic: Optional["scout_compute_api_deprecated_ArithmeticSeriesNode"] = None
51738
51400
  _bit_operation: Optional["scout_compute_api_deprecated_BitOperationSeriesNode"] = None
51739
51401
  _cumulative_sum: Optional["scout_compute_api_deprecated_CumulativeSumSeriesNode"] = None
51740
- _function: Optional["scout_compute_api_NumericSeriesFunction"] = None
51741
51402
  _derivative: Optional["scout_compute_api_deprecated_DerivativeSeriesNode"] = None
51742
51403
  _rolling_operation: Optional["scout_compute_api_deprecated_RollingOperationSeriesNode"] = None
51743
51404
  _unary_arithmetic: Optional["scout_compute_api_deprecated_UnaryArithmeticSeriesNode"] = None
@@ -51754,7 +51415,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51754
51415
  'arithmetic': ConjureFieldDefinition('arithmetic', scout_compute_api_deprecated_ArithmeticSeriesNode),
51755
51416
  'bit_operation': ConjureFieldDefinition('bitOperation', scout_compute_api_deprecated_BitOperationSeriesNode),
51756
51417
  'cumulative_sum': ConjureFieldDefinition('cumulativeSum', scout_compute_api_deprecated_CumulativeSumSeriesNode),
51757
- 'function': ConjureFieldDefinition('function', scout_compute_api_NumericSeriesFunction),
51758
51418
  'derivative': ConjureFieldDefinition('derivative', scout_compute_api_deprecated_DerivativeSeriesNode),
51759
51419
  'rolling_operation': ConjureFieldDefinition('rollingOperation', scout_compute_api_deprecated_RollingOperationSeriesNode),
51760
51420
  'unary_arithmetic': ConjureFieldDefinition('unaryArithmetic', scout_compute_api_deprecated_UnaryArithmeticSeriesNode),
@@ -51771,7 +51431,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51771
51431
  arithmetic: Optional["scout_compute_api_deprecated_ArithmeticSeriesNode"] = None,
51772
51432
  bit_operation: Optional["scout_compute_api_deprecated_BitOperationSeriesNode"] = None,
51773
51433
  cumulative_sum: Optional["scout_compute_api_deprecated_CumulativeSumSeriesNode"] = None,
51774
- function: Optional["scout_compute_api_NumericSeriesFunction"] = None,
51775
51434
  derivative: Optional["scout_compute_api_deprecated_DerivativeSeriesNode"] = None,
51776
51435
  rolling_operation: Optional["scout_compute_api_deprecated_RollingOperationSeriesNode"] = None,
51777
51436
  unary_arithmetic: Optional["scout_compute_api_deprecated_UnaryArithmeticSeriesNode"] = None,
@@ -51783,7 +51442,7 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51783
51442
  type_of_union: Optional[str] = None
51784
51443
  ) -> None:
51785
51444
  if type_of_union is None:
51786
- if (raw is not None) + (arithmetic is not None) + (bit_operation is not None) + (cumulative_sum is not None) + (function is not None) + (derivative is not None) + (rolling_operation is not None) + (unary_arithmetic is not None) + (time_difference is not None) + (time_range_filter is not None) + (time_shift is not None) + (union is not None) + (value_difference is not None) != 1:
51445
+ if (raw is not None) + (arithmetic is not None) + (bit_operation is not None) + (cumulative_sum is not None) + (derivative is not None) + (rolling_operation is not None) + (unary_arithmetic is not None) + (time_difference is not None) + (time_range_filter is not None) + (time_shift is not None) + (union is not None) + (value_difference is not None) != 1:
51787
51446
  raise ValueError('a union must contain a single member')
51788
51447
 
51789
51448
  if raw is not None:
@@ -51798,9 +51457,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51798
51457
  if cumulative_sum is not None:
51799
51458
  self._cumulative_sum = cumulative_sum
51800
51459
  self._type = 'cumulativeSum'
51801
- if function is not None:
51802
- self._function = function
51803
- self._type = 'function'
51804
51460
  if derivative is not None:
51805
51461
  self._derivative = derivative
51806
51462
  self._type = 'derivative'
@@ -51846,11 +51502,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51846
51502
  raise ValueError('a union value must not be None')
51847
51503
  self._cumulative_sum = cumulative_sum
51848
51504
  self._type = 'cumulativeSum'
51849
- elif type_of_union == 'function':
51850
- if function is None:
51851
- raise ValueError('a union value must not be None')
51852
- self._function = function
51853
- self._type = 'function'
51854
51505
  elif type_of_union == 'derivative':
51855
51506
  if derivative is None:
51856
51507
  raise ValueError('a union value must not be None')
@@ -51908,10 +51559,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51908
51559
  def cumulative_sum(self) -> Optional["scout_compute_api_deprecated_CumulativeSumSeriesNode"]:
51909
51560
  return self._cumulative_sum
51910
51561
 
51911
- @builtins.property
51912
- def function(self) -> Optional["scout_compute_api_NumericSeriesFunction"]:
51913
- return self._function
51914
-
51915
51562
  @builtins.property
51916
51563
  def derivative(self) -> Optional["scout_compute_api_deprecated_DerivativeSeriesNode"]:
51917
51564
  return self._derivative
@@ -51955,8 +51602,6 @@ class scout_compute_api_deprecated_NumericSeriesNode(ConjureUnionType):
51955
51602
  return visitor._bit_operation(self.bit_operation)
51956
51603
  if self._type == 'cumulativeSum' and self.cumulative_sum is not None:
51957
51604
  return visitor._cumulative_sum(self.cumulative_sum)
51958
- if self._type == 'function' and self.function is not None:
51959
- return visitor._function(self.function)
51960
51605
  if self._type == 'derivative' and self.derivative is not None:
51961
51606
  return visitor._derivative(self.derivative)
51962
51607
  if self._type == 'rollingOperation' and self.rolling_operation is not None:
@@ -51998,10 +51643,6 @@ class scout_compute_api_deprecated_NumericSeriesNodeVisitor:
51998
51643
  def _cumulative_sum(self, cumulative_sum: "scout_compute_api_deprecated_CumulativeSumSeriesNode") -> Any:
51999
51644
  pass
52000
51645
 
52001
- @abstractmethod
52002
- def _function(self, function: "scout_compute_api_NumericSeriesFunction") -> Any:
52003
- pass
52004
-
52005
51646
  @abstractmethod
52006
51647
  def _derivative(self, derivative: "scout_compute_api_deprecated_DerivativeSeriesNode") -> Any:
52007
51648
  pass
@@ -52192,7 +51833,6 @@ scout_compute_api_deprecated_PersistenceWindowConfiguration.__module__ = "nomina
52192
51833
 
52193
51834
 
52194
51835
  class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52195
- _function: Optional["scout_compute_api_RangesFunction"] = None
52196
51836
  _on_change: Optional["scout_compute_api_deprecated_OnChangeRangesNode"] = None
52197
51837
  _enum_filter: Optional["scout_compute_api_deprecated_EnumFilterRangesNode"] = None
52198
51838
  _threshold: Optional["scout_compute_api_deprecated_ThresholdingRangesNode"] = None
@@ -52202,7 +51842,6 @@ class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52202
51842
  @builtins.classmethod
52203
51843
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
52204
51844
  return {
52205
- 'function': ConjureFieldDefinition('function', scout_compute_api_RangesFunction),
52206
51845
  'on_change': ConjureFieldDefinition('onChange', scout_compute_api_deprecated_OnChangeRangesNode),
52207
51846
  'enum_filter': ConjureFieldDefinition('enumFilter', scout_compute_api_deprecated_EnumFilterRangesNode),
52208
51847
  'threshold': ConjureFieldDefinition('threshold', scout_compute_api_deprecated_ThresholdingRangesNode),
@@ -52212,7 +51851,6 @@ class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52212
51851
 
52213
51852
  def __init__(
52214
51853
  self,
52215
- function: Optional["scout_compute_api_RangesFunction"] = None,
52216
51854
  on_change: Optional["scout_compute_api_deprecated_OnChangeRangesNode"] = None,
52217
51855
  enum_filter: Optional["scout_compute_api_deprecated_EnumFilterRangesNode"] = None,
52218
51856
  threshold: Optional["scout_compute_api_deprecated_ThresholdingRangesNode"] = None,
@@ -52221,12 +51859,9 @@ class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52221
51859
  type_of_union: Optional[str] = None
52222
51860
  ) -> None:
52223
51861
  if type_of_union is None:
52224
- if (function is not None) + (on_change is not None) + (enum_filter is not None) + (threshold is not None) + (union_range is not None) + (intersect_range is not None) != 1:
51862
+ if (on_change is not None) + (enum_filter is not None) + (threshold is not None) + (union_range is not None) + (intersect_range is not None) != 1:
52225
51863
  raise ValueError('a union must contain a single member')
52226
51864
 
52227
- if function is not None:
52228
- self._function = function
52229
- self._type = 'function'
52230
51865
  if on_change is not None:
52231
51866
  self._on_change = on_change
52232
51867
  self._type = 'onChange'
@@ -52243,11 +51878,6 @@ class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52243
51878
  self._intersect_range = intersect_range
52244
51879
  self._type = 'intersectRange'
52245
51880
 
52246
- elif type_of_union == 'function':
52247
- if function is None:
52248
- raise ValueError('a union value must not be None')
52249
- self._function = function
52250
- self._type = 'function'
52251
51881
  elif type_of_union == 'onChange':
52252
51882
  if on_change is None:
52253
51883
  raise ValueError('a union value must not be None')
@@ -52274,10 +51904,6 @@ class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52274
51904
  self._intersect_range = intersect_range
52275
51905
  self._type = 'intersectRange'
52276
51906
 
52277
- @builtins.property
52278
- def function(self) -> Optional["scout_compute_api_RangesFunction"]:
52279
- return self._function
52280
-
52281
51907
  @builtins.property
52282
51908
  def on_change(self) -> Optional["scout_compute_api_deprecated_OnChangeRangesNode"]:
52283
51909
  return self._on_change
@@ -52301,8 +51927,6 @@ class scout_compute_api_deprecated_RangesNode(ConjureUnionType):
52301
51927
  def accept(self, visitor) -> Any:
52302
51928
  if not isinstance(visitor, scout_compute_api_deprecated_RangesNodeVisitor):
52303
51929
  raise ValueError('{} is not an instance of scout_compute_api_deprecated_RangesNodeVisitor'.format(visitor.__class__.__name__))
52304
- if self._type == 'function' and self.function is not None:
52305
- return visitor._function(self.function)
52306
51930
  if self._type == 'onChange' and self.on_change is not None:
52307
51931
  return visitor._on_change(self.on_change)
52308
51932
  if self._type == 'enumFilter' and self.enum_filter is not None:
@@ -52322,10 +51946,6 @@ scout_compute_api_deprecated_RangesNode.__module__ = "nominal_api.scout_compute_
52322
51946
 
52323
51947
  class scout_compute_api_deprecated_RangesNodeVisitor:
52324
51948
 
52325
- @abstractmethod
52326
- def _function(self, function: "scout_compute_api_RangesFunction") -> Any:
52327
- pass
52328
-
52329
51949
  @abstractmethod
52330
51950
  def _on_change(self, on_change: "scout_compute_api_deprecated_OnChangeRangesNode") -> Any:
52331
51951
  pass
@@ -86581,6 +86201,8 @@ scout_channelvariables_api_WorkbookChannelVariableMap = Dict[scout_channelvariab
86581
86201
 
86582
86202
  scout_rids_api_TypeRid = str
86583
86203
 
86204
+ scout_compute_api_FunctionReference = str
86205
+
86584
86206
  api_rids_AutomaticCheckEvaluationRid = str
86585
86207
 
86586
86208
  scout_rids_api_TemplateRid = str
@@ -86595,8 +86217,6 @@ api_ErrorType = str
86595
86217
 
86596
86218
  scout_compute_api_ComputeWithUnitsRequest = scout_compute_api_ComputeNodeRequest
86597
86219
 
86598
- scout_compute_api_FunctionReference = str
86599
-
86600
86220
  scout_rids_api_Version = int
86601
86221
 
86602
86222
  scout_versioning_api_BranchName = str