nominal-api 0.759.0__py3-none-any.whl → 0.761.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nominal-api might be problematic. Click here for more details.

nominal_api/__init__.py CHANGED
@@ -17,6 +17,7 @@ __all__ = [
17
17
  'ingest_api',
18
18
  'ingest_workflow_api',
19
19
  'module',
20
+ 'module_internal',
20
21
  'modules_api',
21
22
  'persistent_compute_api',
22
23
  'scout',
@@ -77,5 +78,5 @@ __all__ = [
77
78
 
78
79
  __conjure_generator_version__ = "4.17.0"
79
80
 
80
- __version__ = "0.759.0"
81
+ __version__ = "0.761.0"
81
82
 
nominal_api/_impl.py CHANGED
@@ -9192,6 +9192,8 @@ class ingest_api_FileOutputFormat(ConjureEnumType):
9192
9192
  '''PARQUET_TAR'''
9193
9193
  AVRO_STREAM = 'AVRO_STREAM'
9194
9194
  '''AVRO_STREAM'''
9195
+ JSON_L = 'JSON_L'
9196
+ '''JSON_L'''
9195
9197
  UNKNOWN = 'UNKNOWN'
9196
9198
  '''UNKNOWN'''
9197
9199
 
@@ -14213,15 +14215,17 @@ class module_CreateModuleRequest(ConjureBeanType):
14213
14215
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
14214
14216
  return {
14215
14217
  'name': ConjureFieldDefinition('name', str),
14218
+ 'title': ConjureFieldDefinition('title', str),
14216
14219
  'description': ConjureFieldDefinition('description', str),
14217
14220
  'definition': ConjureFieldDefinition('definition', module_ModuleVersionDefinition),
14218
14221
  'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_rids_WorkspaceRid])
14219
14222
  }
14220
14223
 
14221
- __slots__: List[str] = ['_name', '_description', '_definition', '_workspace']
14224
+ __slots__: List[str] = ['_name', '_title', '_description', '_definition', '_workspace']
14222
14225
 
14223
- def __init__(self, definition: "module_ModuleVersionDefinition", description: str, name: str, workspace: Optional[str] = None) -> None:
14226
+ def __init__(self, definition: "module_ModuleVersionDefinition", description: str, name: str, title: str, workspace: Optional[str] = None) -> None:
14224
14227
  self._name = name
14228
+ self._title = title
14225
14229
  self._description = description
14226
14230
  self._definition = definition
14227
14231
  self._workspace = workspace
@@ -14232,6 +14236,10 @@ class module_CreateModuleRequest(ConjureBeanType):
14232
14236
  """
14233
14237
  return self._name
14234
14238
 
14239
+ @builtins.property
14240
+ def title(self) -> str:
14241
+ return self._title
14242
+
14235
14243
  @builtins.property
14236
14244
  def description(self) -> str:
14237
14245
  return self._description
@@ -14668,17 +14676,19 @@ class module_ModuleMetadata(ConjureBeanType):
14668
14676
  return {
14669
14677
  'rid': ConjureFieldDefinition('rid', modules_api_ModuleRid),
14670
14678
  'name': ConjureFieldDefinition('name', str),
14679
+ 'title': ConjureFieldDefinition('title', str),
14671
14680
  'description': ConjureFieldDefinition('description', str),
14672
14681
  'created_by': ConjureFieldDefinition('createdBy', scout_rids_api_UserRid),
14673
14682
  'created_at': ConjureFieldDefinition('createdAt', str),
14674
14683
  'archived_at': ConjureFieldDefinition('archivedAt', OptionalTypeWrapper[str])
14675
14684
  }
14676
14685
 
14677
- __slots__: List[str] = ['_rid', '_name', '_description', '_created_by', '_created_at', '_archived_at']
14686
+ __slots__: List[str] = ['_rid', '_name', '_title', '_description', '_created_by', '_created_at', '_archived_at']
14678
14687
 
14679
- def __init__(self, created_at: str, created_by: str, description: str, name: str, rid: str, archived_at: Optional[str] = None) -> None:
14688
+ def __init__(self, created_at: str, created_by: str, description: str, name: str, rid: str, title: str, archived_at: Optional[str] = None) -> None:
14680
14689
  self._rid = rid
14681
14690
  self._name = name
14691
+ self._title = title
14682
14692
  self._description = description
14683
14693
  self._created_by = created_by
14684
14694
  self._created_at = created_at
@@ -14694,6 +14704,10 @@ class module_ModuleMetadata(ConjureBeanType):
14694
14704
  """
14695
14705
  return self._name
14696
14706
 
14707
+ @builtins.property
14708
+ def title(self) -> str:
14709
+ return self._title
14710
+
14697
14711
  @builtins.property
14698
14712
  def description(self) -> str:
14699
14713
  return self._description
@@ -15867,23 +15881,21 @@ class module_UpdateModuleRequest(ConjureBeanType):
15867
15881
  @builtins.classmethod
15868
15882
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
15869
15883
  return {
15870
- 'name': ConjureFieldDefinition('name', str),
15884
+ 'title': ConjureFieldDefinition('title', str),
15871
15885
  'description': ConjureFieldDefinition('description', str),
15872
15886
  'definition': ConjureFieldDefinition('definition', module_ModuleVersionDefinition)
15873
15887
  }
15874
15888
 
15875
- __slots__: List[str] = ['_name', '_description', '_definition']
15889
+ __slots__: List[str] = ['_title', '_description', '_definition']
15876
15890
 
15877
- def __init__(self, definition: "module_ModuleVersionDefinition", description: str, name: str) -> None:
15878
- self._name = name
15891
+ def __init__(self, definition: "module_ModuleVersionDefinition", description: str, title: str) -> None:
15892
+ self._title = title
15879
15893
  self._description = description
15880
15894
  self._definition = definition
15881
15895
 
15882
15896
  @builtins.property
15883
- def name(self) -> str:
15884
- """The name of the module. This should be unique to the module in the current workspace.
15885
- """
15886
- return self._name
15897
+ def title(self) -> str:
15898
+ return self._title
15887
15899
 
15888
15900
  @builtins.property
15889
15901
  def description(self) -> str:
@@ -15929,6 +15941,148 @@ module_ValueType.__qualname__ = "ValueType"
15929
15941
  module_ValueType.__module__ = "nominal_api.module"
15930
15942
 
15931
15943
 
15944
+ class module_internal_BatchGetResolvedModuleDefinitionsRequest(ConjureBeanType):
15945
+
15946
+ @builtins.classmethod
15947
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
15948
+ return {
15949
+ 'requests': ConjureFieldDefinition('requests', List[module_internal_ModuleApplicationReference])
15950
+ }
15951
+
15952
+ __slots__: List[str] = ['_requests']
15953
+
15954
+ def __init__(self, requests: List["module_internal_ModuleApplicationReference"]) -> None:
15955
+ self._requests = requests
15956
+
15957
+ @builtins.property
15958
+ def requests(self) -> List["module_internal_ModuleApplicationReference"]:
15959
+ return self._requests
15960
+
15961
+
15962
+ module_internal_BatchGetResolvedModuleDefinitionsRequest.__name__ = "BatchGetResolvedModuleDefinitionsRequest"
15963
+ module_internal_BatchGetResolvedModuleDefinitionsRequest.__qualname__ = "BatchGetResolvedModuleDefinitionsRequest"
15964
+ module_internal_BatchGetResolvedModuleDefinitionsRequest.__module__ = "nominal_api.module_internal"
15965
+
15966
+
15967
+ class module_internal_InternalModuleService(Service):
15968
+ """This service provides internal APIs related to modules.
15969
+ """
15970
+
15971
+ def batch_get_resolved_module_definitions(self, auth_header: str, request: "module_internal_BatchGetResolvedModuleDefinitionsRequest") -> List["module_internal_ResolvedModuleVersionDefinition"]:
15972
+ """Returns the resolved module definitions for the given module-asset pairs. If any of modules have not been
15973
+ applied to their corresponding asset, this will throw.
15974
+ """
15975
+ _conjure_encoder = ConjureEncoder()
15976
+
15977
+ _headers: Dict[str, Any] = {
15978
+ 'Accept': 'application/json',
15979
+ 'Content-Type': 'application/json',
15980
+ 'Authorization': auth_header,
15981
+ }
15982
+
15983
+ _params: Dict[str, Any] = {
15984
+ }
15985
+
15986
+ _path_params: Dict[str, str] = {
15987
+ }
15988
+
15989
+ _json: Any = _conjure_encoder.default(request)
15990
+
15991
+ _path = '/internal/scout/v2/module/resolved-module/batch-get'
15992
+ _path = _path.format(**_path_params)
15993
+
15994
+ _response: Response = self._request(
15995
+ 'POST',
15996
+ self._uri + _path,
15997
+ params=_params,
15998
+ headers=_headers,
15999
+ json=_json)
16000
+
16001
+ _decoder = ConjureDecoder()
16002
+ return _decoder.decode(_response.json(), List[module_internal_ResolvedModuleVersionDefinition], self._return_none_for_unknown_union_types)
16003
+
16004
+
16005
+ module_internal_InternalModuleService.__name__ = "InternalModuleService"
16006
+ module_internal_InternalModuleService.__qualname__ = "InternalModuleService"
16007
+ module_internal_InternalModuleService.__module__ = "nominal_api.module_internal"
16008
+
16009
+
16010
+ class module_internal_ModuleApplicationReference(ConjureBeanType):
16011
+
16012
+ @builtins.classmethod
16013
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
16014
+ return {
16015
+ 'module_name': ConjureFieldDefinition('moduleName', str),
16016
+ 'asset_rid': ConjureFieldDefinition('assetRid', scout_rids_api_AssetRid)
16017
+ }
16018
+
16019
+ __slots__: List[str] = ['_module_name', '_asset_rid']
16020
+
16021
+ def __init__(self, asset_rid: str, module_name: str) -> None:
16022
+ self._module_name = module_name
16023
+ self._asset_rid = asset_rid
16024
+
16025
+ @builtins.property
16026
+ def module_name(self) -> str:
16027
+ return self._module_name
16028
+
16029
+ @builtins.property
16030
+ def asset_rid(self) -> str:
16031
+ return self._asset_rid
16032
+
16033
+
16034
+ module_internal_ModuleApplicationReference.__name__ = "ModuleApplicationReference"
16035
+ module_internal_ModuleApplicationReference.__qualname__ = "ModuleApplicationReference"
16036
+ module_internal_ModuleApplicationReference.__module__ = "nominal_api.module_internal"
16037
+
16038
+
16039
+ class module_internal_ResolvedModuleVersionDefinition(ConjureBeanType):
16040
+
16041
+ @builtins.classmethod
16042
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
16043
+ return {
16044
+ 'module_name': ConjureFieldDefinition('moduleName', str),
16045
+ 'asset_rid': ConjureFieldDefinition('assetRid', scout_rids_api_AssetRid),
16046
+ 'resolved_parameters': ConjureFieldDefinition('resolvedParameters', List[module_ModuleVariable]),
16047
+ 'default_variables': ConjureFieldDefinition('defaultVariables', List[module_ModuleVariable]),
16048
+ 'functions': ConjureFieldDefinition('functions', List[module_Function])
16049
+ }
16050
+
16051
+ __slots__: List[str] = ['_module_name', '_asset_rid', '_resolved_parameters', '_default_variables', '_functions']
16052
+
16053
+ def __init__(self, asset_rid: str, default_variables: List["module_ModuleVariable"], functions: List["module_Function"], module_name: str, resolved_parameters: List["module_ModuleVariable"]) -> None:
16054
+ self._module_name = module_name
16055
+ self._asset_rid = asset_rid
16056
+ self._resolved_parameters = resolved_parameters
16057
+ self._default_variables = default_variables
16058
+ self._functions = functions
16059
+
16060
+ @builtins.property
16061
+ def module_name(self) -> str:
16062
+ return self._module_name
16063
+
16064
+ @builtins.property
16065
+ def asset_rid(self) -> str:
16066
+ return self._asset_rid
16067
+
16068
+ @builtins.property
16069
+ def resolved_parameters(self) -> List["module_ModuleVariable"]:
16070
+ return self._resolved_parameters
16071
+
16072
+ @builtins.property
16073
+ def default_variables(self) -> List["module_ModuleVariable"]:
16074
+ return self._default_variables
16075
+
16076
+ @builtins.property
16077
+ def functions(self) -> List["module_Function"]:
16078
+ return self._functions
16079
+
16080
+
16081
+ module_internal_ResolvedModuleVersionDefinition.__name__ = "ResolvedModuleVersionDefinition"
16082
+ module_internal_ResolvedModuleVersionDefinition.__qualname__ = "ResolvedModuleVersionDefinition"
16083
+ module_internal_ResolvedModuleVersionDefinition.__module__ = "nominal_api.module_internal"
16084
+
16085
+
15932
16086
  class persistent_compute_api_AppendResult(ConjureBeanType):
15933
16087
  """An append result won't cover the full `StreamingComputeNodeRequest#windowWidth` but rather just a smaller
15934
16088
  window. The end of the window that the append covers is guaranteed to be later than previously sent results.
@@ -48920,7 +49074,7 @@ class scout_compute_api_StabilityDetectionRanges(ConjureBeanType):
48920
49074
  the specified lookback window, including the current point. A point is considered stable if its value does
48921
49075
  not deviate from the calculated min and the max by more than the threshold and the total number of points
48922
49076
  within the window is at least the specified amount. The threshold can be either fixed values or percentages
48923
- of the value. The minimum points threshold defaults to 2.
49077
+ of the value. The lookback window must be strictly positive. The minimum points threshold defaults to 2.
48924
49078
  """
48925
49079
 
48926
49080
  @builtins.classmethod
@@ -69926,6 +70080,8 @@ class scout_metadata_ResourceType(ConjureEnumType):
69926
70080
  '''EVENT'''
69927
70081
  DATASET = 'DATASET'
69928
70082
  '''DATASET'''
70083
+ MODULE = 'MODULE'
70084
+ '''MODULE'''
69929
70085
  UNKNOWN = 'UNKNOWN'
69930
70086
  '''UNKNOWN'''
69931
70087
 
@@ -86484,6 +86640,8 @@ api_ErrorType = str
86484
86640
 
86485
86641
  scout_compute_api_ComputeWithUnitsRequest = scout_compute_api_ComputeNodeRequest
86486
86642
 
86643
+ scout_rids_api_GroupRid = str
86644
+
86487
86645
  scout_rids_api_Version = int
86488
86646
 
86489
86647
  scout_versioning_api_BranchName = str
@@ -0,0 +1,15 @@
1
+ # coding=utf-8
2
+ from .._impl import (
3
+ module_internal_BatchGetResolvedModuleDefinitionsRequest as BatchGetResolvedModuleDefinitionsRequest,
4
+ module_internal_InternalModuleService as InternalModuleService,
5
+ module_internal_ModuleApplicationReference as ModuleApplicationReference,
6
+ module_internal_ResolvedModuleVersionDefinition as ResolvedModuleVersionDefinition,
7
+ )
8
+
9
+ __all__ = [
10
+ 'BatchGetResolvedModuleDefinitionsRequest',
11
+ 'ModuleApplicationReference',
12
+ 'ResolvedModuleVersionDefinition',
13
+ 'InternalModuleService',
14
+ ]
15
+
@@ -14,6 +14,7 @@ from .._impl import (
14
14
  scout_rids_api_DataReviewRid as DataReviewRid,
15
15
  scout_rids_api_FunctionLineageRid as FunctionLineageRid,
16
16
  scout_rids_api_FunctionRid as FunctionRid,
17
+ scout_rids_api_GroupRid as GroupRid,
17
18
  scout_rids_api_NotebookRid as NotebookRid,
18
19
  scout_rids_api_PendingReviewAlertState as PendingReviewAlertState,
19
20
  scout_rids_api_SnapshotRid as SnapshotRid,
@@ -40,6 +41,7 @@ __all__ = [
40
41
  'DataReviewRid',
41
42
  'FunctionLineageRid',
42
43
  'FunctionRid',
44
+ 'GroupRid',
43
45
  'NotebookRid',
44
46
  'PendingReviewAlertState',
45
47
  'SnapshotRid',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.759.0
3
+ Version: 0.761.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<4,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=cMiHHbUR3HQJAgBRBEmQ1C3V7eqzDuRI87N4wPPMhFw,1989
2
- nominal_api/_impl.py,sha256=JRTNTYF_IyzRp9XjvxjiOdICaiZL0Z8EaL389jQGIW0,3400468
1
+ nominal_api/__init__.py,sha256=r7z12m-sU3DZHZawsy_8EAD0FSAENC-lvArmtm-9fwY,2012
2
+ nominal_api/_impl.py,sha256=_TthWus8cZIxRUPCd6KZUojdDjkr_tiLwUGCmd_BlIc,3406429
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=PMREKP7UhxJ1_gHkrlJET46qlDHksKMm6-woR1p6WnU,1970
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -18,6 +18,7 @@ nominal_api/event/__init__.py,sha256=t5q8N5ozj3tHwRVhwtL6kwu-1-FMIoTGJT1RX75pwZM
18
18
  nominal_api/ingest_api/__init__.py,sha256=vkOFk6X2S4jpv0FBwsT9JpaK7Hb7lk9nkMNwcTi4zTw,11266
19
19
  nominal_api/ingest_workflow_api/__init__.py,sha256=lTCb7s4VCrpur0TDpTy_EDvUdHJ4UKqcTv8MYiEeeko,2954
20
20
  nominal_api/module/__init__.py,sha256=lM3ETKLddEed2ZeQgjz1eb0C_AEU0qnGX_sceK05sc0,3650
21
+ nominal_api/module_internal/__init__.py,sha256=qEQ3cxDc78ImuKO1Fr59cnMZvAvidMgjatZAJMsyUKc,545
21
22
  nominal_api/modules_api/__init__.py,sha256=V8ccEclLTh6CbzZvpRhcncPFqFBU-sSUSkfr4KzXL6w,112
22
23
  nominal_api/persistent_compute_api/__init__.py,sha256=bOWBiRLJbl3winMP9EowCUpPpRIUYyejua3059wJWQk,3314
23
24
  nominal_api/scout/__init__.py,sha256=dZzrrqBeio2l0txhlNoHSfv6QsA9a3EVDp0_XpubUGk,481
@@ -50,7 +51,7 @@ nominal_api/scout_layout_api/__init__.py,sha256=sUWO0V8Y0I0pa-nmKAjkeoIgTpP9tSG1
50
51
  nominal_api/scout_metadata/__init__.py,sha256=m8UNk53xgDtiZCLU2ZyfDxwwFC6_XztE9INJM2R1ApA,475
51
52
  nominal_api/scout_notebook_api/__init__.py,sha256=b-4ONsrgT2NziNHq8em09YxbZcQcKLWmPYkpxBFHPFA,1820
52
53
  nominal_api/scout_plotting/__init__.py,sha256=RJK9HlPmNW_dxSz7CprwjfNKke86x11rQ7BF5pwrBv4,127
53
- nominal_api/scout_rids_api/__init__.py,sha256=inHWSfRXEH29EMMmNW7uWGAd7WGTYoeNs-oD35UA8IE,1747
54
+ nominal_api/scout_rids_api/__init__.py,sha256=g0Ki940X9P5GEU6e68mfLTBhbxb7WpRSi8GALDQ7nXg,1804
54
55
  nominal_api/scout_run_api/__init__.py,sha256=DOerd1dppDM4RLDgPrjh-3i-VAaXtp6XPEqkET0N5W0,4051
55
56
  nominal_api/scout_template_api/__init__.py,sha256=Yu7FHTypJv09dBKqnWS_dDeXdwI1hgGGZNDbMOHZKr8,1550
56
57
  nominal_api/scout_units_api/__init__.py,sha256=gf47pW6JIcP3FgL1UuHwkibj266FCRszL9q6PGx0-Rg,512
@@ -74,7 +75,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
74
75
  nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
75
76
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
76
77
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
77
- nominal_api-0.759.0.dist-info/METADATA,sha256=zjr5tpByzXGzbVYZEAYlXz2CRcC77-UNGejtsXmodMo,199
78
- nominal_api-0.759.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- nominal_api-0.759.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
80
- nominal_api-0.759.0.dist-info/RECORD,,
78
+ nominal_api-0.761.0.dist-info/METADATA,sha256=TCnQzB5W1LvlwZcQzmAcK1zIKvXppSeGux-M2IOvgjo,199
79
+ nominal_api-0.761.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
80
+ nominal_api-0.761.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
81
+ nominal_api-0.761.0.dist-info/RECORD,,