nominal-api 0.584.0__py3-none-any.whl → 0.584.1__py3-none-any.whl

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

Potentially problematic release.


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

nominal_api/__init__.py CHANGED
@@ -73,5 +73,5 @@ __all__ = [
73
73
 
74
74
  __conjure_generator_version__ = "4.9.0"
75
75
 
76
- __version__ = "0.584.0"
76
+ __version__ = "0.584.1"
77
77
 
nominal_api/_impl.py CHANGED
@@ -12086,83 +12086,6 @@ scout_api_ChannelLocator.__qualname__ = "ChannelLocator"
12086
12086
  scout_api_ChannelLocator.__module__ = "nominal_api.scout_api"
12087
12087
 
12088
12088
 
12089
- class scout_api_DataScope(ConjureBeanType):
12090
-
12091
- @builtins.classmethod
12092
- def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
12093
- return {
12094
- 'data_source': ConjureFieldDefinition('dataSource', scout_run_api_DataSource),
12095
- 'offset': ConjureFieldDefinition('offset', scout_run_api_Duration),
12096
- 'ref_name': ConjureFieldDefinition('refName', scout_api_DataSourceRefName),
12097
- 'timestamp_type': ConjureFieldDefinition('timestampType', scout_api_WeakTimestampType),
12098
- 'series_tags': ConjureFieldDefinition('seriesTags', Dict[api_TagName, api_TagValue])
12099
- }
12100
-
12101
- __slots__: List[str] = ['_data_source', '_offset', '_ref_name', '_timestamp_type', '_series_tags']
12102
-
12103
- def __init__(self, data_source: "scout_run_api_DataSource", offset: "scout_run_api_Duration", ref_name: str, series_tags: Dict[str, str], timestamp_type: "scout_api_WeakTimestampType") -> None:
12104
- self._data_source = data_source
12105
- self._offset = offset
12106
- self._ref_name = ref_name
12107
- self._timestamp_type = timestamp_type
12108
- self._series_tags = series_tags
12109
-
12110
- @builtins.property
12111
- def data_source(self) -> "scout_run_api_DataSource":
12112
- return self._data_source
12113
-
12114
- @builtins.property
12115
- def offset(self) -> "scout_run_api_Duration":
12116
- """
12117
- This offset is used for small time-sync corrections. Notably, it is
12118
- not the offset to move a relative data source to the start of the run.
12119
- """
12120
- return self._offset
12121
-
12122
- @builtins.property
12123
- def ref_name(self) -> str:
12124
- return self._ref_name
12125
-
12126
- @builtins.property
12127
- def timestamp_type(self) -> "scout_api_WeakTimestampType":
12128
- return self._timestamp_type
12129
-
12130
- @builtins.property
12131
- def series_tags(self) -> Dict[str, str]:
12132
- """
12133
- Used to resolve logical series for this data source.
12134
- """
12135
- return self._series_tags
12136
-
12137
-
12138
- scout_api_DataScope.__name__ = "DataScope"
12139
- scout_api_DataScope.__qualname__ = "DataScope"
12140
- scout_api_DataScope.__module__ = "nominal_api.scout_api"
12141
-
12142
-
12143
- class scout_api_WeakTimestampType(ConjureEnumType):
12144
- """
12145
- If a CSV data source is still being split, the timestamp type is not known.
12146
- """
12147
-
12148
- ABSOLUTE = 'ABSOLUTE'
12149
- '''ABSOLUTE'''
12150
- RELATIVE = 'RELATIVE'
12151
- '''RELATIVE'''
12152
- PENDING = 'PENDING'
12153
- '''PENDING'''
12154
- UNKNOWN = 'UNKNOWN'
12155
- '''UNKNOWN'''
12156
-
12157
- def __reduce_ex__(self, proto):
12158
- return self.__class__, (self.name,)
12159
-
12160
-
12161
- scout_api_WeakTimestampType.__name__ = "WeakTimestampType"
12162
- scout_api_WeakTimestampType.__qualname__ = "WeakTimestampType"
12163
- scout_api_WeakTimestampType.__module__ = "nominal_api.scout_api"
12164
-
12165
-
12166
12089
  class scout_asset_api_AddDataScopesToAssetRequest(ConjureBeanType):
12167
12090
 
12168
12091
  @builtins.classmethod
@@ -12302,10 +12225,6 @@ scout_asset_api_Asset.__module__ = "nominal_api.scout_asset_api"
12302
12225
 
12303
12226
 
12304
12227
  class scout_asset_api_AssetDataScope(ConjureBeanType):
12305
- """
12306
- This type is equivalent to the DataScope type, except it uses a dataScopeName instead of refName. It will
12307
- eventually be deprecated in favor of DataScope.
12308
- """
12309
12228
 
12310
12229
  @builtins.classmethod
12311
12230
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -12313,13 +12232,13 @@ eventually be deprecated in favor of DataScope.
12313
12232
  'data_scope_name': ConjureFieldDefinition('dataScopeName', scout_asset_api_DataScopeName),
12314
12233
  'data_source': ConjureFieldDefinition('dataSource', scout_run_api_DataSource),
12315
12234
  'offset': ConjureFieldDefinition('offset', OptionalTypeWrapper[scout_run_api_Duration]),
12316
- 'timestamp_type': ConjureFieldDefinition('timestampType', scout_api_WeakTimestampType),
12235
+ 'timestamp_type': ConjureFieldDefinition('timestampType', scout_run_api_WeakTimestampType),
12317
12236
  'series_tags': ConjureFieldDefinition('seriesTags', Dict[scout_asset_api_SeriesTagName, scout_asset_api_SeriesTagValue])
12318
12237
  }
12319
12238
 
12320
12239
  __slots__: List[str] = ['_data_scope_name', '_data_source', '_offset', '_timestamp_type', '_series_tags']
12321
12240
 
12322
- def __init__(self, data_scope_name: str, data_source: "scout_run_api_DataSource", series_tags: Dict[str, str], timestamp_type: "scout_api_WeakTimestampType", offset: Optional["scout_run_api_Duration"] = None) -> None:
12241
+ def __init__(self, data_scope_name: str, data_source: "scout_run_api_DataSource", series_tags: Dict[str, str], timestamp_type: "scout_run_api_WeakTimestampType", offset: Optional["scout_run_api_Duration"] = None) -> None:
12323
12242
  self._data_scope_name = data_scope_name
12324
12243
  self._data_source = data_source
12325
12244
  self._offset = offset
@@ -12342,7 +12261,7 @@ eventually be deprecated in favor of DataScope.
12342
12261
  return self._offset
12343
12262
 
12344
12263
  @builtins.property
12345
- def timestamp_type(self) -> "scout_api_WeakTimestampType":
12264
+ def timestamp_type(self) -> "scout_run_api_WeakTimestampType":
12346
12265
  return self._timestamp_type
12347
12266
 
12348
12267
  @builtins.property
@@ -60358,17 +60277,16 @@ class scout_run_api_Run(ConjureBeanType):
60358
60277
  'links': ConjureFieldDefinition('links', List[scout_run_api_Link]),
60359
60278
  'created_at': ConjureFieldDefinition('createdAt', str),
60360
60279
  'updated_at': ConjureFieldDefinition('updatedAt', str),
60361
- 'asset_data_scopes': ConjureFieldDefinition('assetDataScopes', List[scout_api_DataScope]),
60362
- 'additional_data_scopes': ConjureFieldDefinition('additionalDataScopes', List[scout_api_DataScope]),
60363
- 'data_sources': ConjureFieldDefinition('dataSources', Dict[scout_api_DataSourceRefName, scout_api_DataScope]),
60280
+ 'asset_data_scopes': ConjureFieldDefinition('assetDataScopes', List[scout_asset_api_AssetDataScope]),
60281
+ 'data_sources': ConjureFieldDefinition('dataSources', Dict[scout_api_DataSourceRefName, scout_run_api_RunDataSource]),
60364
60282
  'attachments': ConjureFieldDefinition('attachments', List[api_rids_AttachmentRid]),
60365
60283
  'asset': ConjureFieldDefinition('asset', OptionalTypeWrapper[scout_rids_api_AssetRid]),
60366
60284
  'assets': ConjureFieldDefinition('assets', List[scout_rids_api_AssetRid])
60367
60285
  }
60368
60286
 
60369
- __slots__: List[str] = ['_rid', '_run_number', '_run_prefix', '_title', '_description', '_author_rid', '_start_time', '_end_time', '_properties', '_labels', '_links', '_created_at', '_updated_at', '_asset_data_scopes', '_additional_data_scopes', '_data_sources', '_attachments', '_asset', '_assets']
60287
+ __slots__: List[str] = ['_rid', '_run_number', '_run_prefix', '_title', '_description', '_author_rid', '_start_time', '_end_time', '_properties', '_labels', '_links', '_created_at', '_updated_at', '_asset_data_scopes', '_data_sources', '_attachments', '_asset', '_assets']
60370
60288
 
60371
- def __init__(self, additional_data_scopes: List["scout_api_DataScope"], asset_data_scopes: List["scout_api_DataScope"], assets: List[str], attachments: List[str], created_at: str, data_sources: Dict[str, "scout_api_DataScope"], description: str, labels: List[str], links: List["scout_run_api_Link"], properties: Dict[str, str], rid: str, run_number: int, start_time: "scout_run_api_UtcTimestamp", title: str, updated_at: str, asset: Optional[str] = None, author_rid: Optional[str] = None, end_time: Optional["scout_run_api_UtcTimestamp"] = None, run_prefix: Optional[str] = None) -> None:
60289
+ def __init__(self, asset_data_scopes: List["scout_asset_api_AssetDataScope"], assets: List[str], attachments: List[str], created_at: str, data_sources: Dict[str, "scout_run_api_RunDataSource"], description: str, labels: List[str], links: List["scout_run_api_Link"], properties: Dict[str, str], rid: str, run_number: int, start_time: "scout_run_api_UtcTimestamp", title: str, updated_at: str, asset: Optional[str] = None, author_rid: Optional[str] = None, end_time: Optional["scout_run_api_UtcTimestamp"] = None, run_prefix: Optional[str] = None) -> None:
60372
60290
  self._rid = rid
60373
60291
  self._run_number = run_number
60374
60292
  self._run_prefix = run_prefix
@@ -60383,7 +60301,6 @@ class scout_run_api_Run(ConjureBeanType):
60383
60301
  self._created_at = created_at
60384
60302
  self._updated_at = updated_at
60385
60303
  self._asset_data_scopes = asset_data_scopes
60386
- self._additional_data_scopes = additional_data_scopes
60387
60304
  self._data_sources = data_sources
60388
60305
  self._attachments = attachments
60389
60306
  self._asset = asset
@@ -60442,24 +60359,14 @@ class scout_run_api_Run(ConjureBeanType):
60442
60359
  return self._updated_at
60443
60360
 
60444
60361
  @builtins.property
60445
- def asset_data_scopes(self) -> List["scout_api_DataScope"]:
60362
+ def asset_data_scopes(self) -> List["scout_asset_api_AssetDataScope"]:
60446
60363
  """
60447
60364
  returns the data scopes for the assets associated with the run.
60448
60365
  """
60449
60366
  return self._asset_data_scopes
60450
60367
 
60451
60368
  @builtins.property
60452
- def additional_data_scopes(self) -> List["scout_api_DataScope"]:
60453
- """
60454
- returns any data scopes added directly to the run.
60455
- """
60456
- return self._additional_data_scopes
60457
-
60458
- @builtins.property
60459
- def data_sources(self) -> Dict[str, "scout_api_DataScope"]:
60460
- """
60461
- returns all of the data scopes under the run. This includes data scopes of any associated assets. If there are data scopes attached directly to the run that have the same ref name as data scopes from the asset, they will override them.
60462
- """
60369
+ def data_sources(self) -> Dict[str, "scout_run_api_RunDataSource"]:
60463
60370
  return self._data_sources
60464
60371
 
60465
60372
  @builtins.property
@@ -60557,6 +60464,66 @@ scout_run_api_RunDataReviewSummary.__qualname__ = "RunDataReviewSummary"
60557
60464
  scout_run_api_RunDataReviewSummary.__module__ = "nominal_api.scout_run_api"
60558
60465
 
60559
60466
 
60467
+ class scout_run_api_RunDataSource(ConjureBeanType):
60468
+ """
60469
+ For read requests, we want to require all fields
60470
+ """
60471
+
60472
+ @builtins.classmethod
60473
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
60474
+ return {
60475
+ 'data_source': ConjureFieldDefinition('dataSource', scout_run_api_DataSource),
60476
+ 'offset': ConjureFieldDefinition('offset', scout_run_api_Duration),
60477
+ 'ref_name': ConjureFieldDefinition('refName', scout_api_DataSourceRefName),
60478
+ 'timestamp_type': ConjureFieldDefinition('timestampType', scout_run_api_WeakTimestampType),
60479
+ 'series_tags': ConjureFieldDefinition('seriesTags', Dict[api_TagName, api_TagValue])
60480
+ }
60481
+
60482
+ __slots__: List[str] = ['_data_source', '_offset', '_ref_name', '_timestamp_type', '_series_tags']
60483
+
60484
+ def __init__(self, data_source: "scout_run_api_DataSource", offset: "scout_run_api_Duration", ref_name: str, series_tags: Dict[str, str], timestamp_type: "scout_run_api_WeakTimestampType") -> None:
60485
+ self._data_source = data_source
60486
+ self._offset = offset
60487
+ self._ref_name = ref_name
60488
+ self._timestamp_type = timestamp_type
60489
+ self._series_tags = series_tags
60490
+
60491
+ @builtins.property
60492
+ def data_source(self) -> "scout_run_api_DataSource":
60493
+ return self._data_source
60494
+
60495
+ @builtins.property
60496
+ def offset(self) -> "scout_run_api_Duration":
60497
+ """
60498
+ This offset is used for small time-sync corrections. Notably, it is
60499
+ not the offset to move a relative data source to the start of the run.
60500
+ """
60501
+ return self._offset
60502
+
60503
+ @builtins.property
60504
+ def ref_name(self) -> str:
60505
+ """
60506
+ Included for convenience, duplicated from the key of the map
60507
+ """
60508
+ return self._ref_name
60509
+
60510
+ @builtins.property
60511
+ def timestamp_type(self) -> "scout_run_api_WeakTimestampType":
60512
+ return self._timestamp_type
60513
+
60514
+ @builtins.property
60515
+ def series_tags(self) -> Dict[str, str]:
60516
+ """
60517
+ Used to resolve logical series for this data source.
60518
+ """
60519
+ return self._series_tags
60520
+
60521
+
60522
+ scout_run_api_RunDataSource.__name__ = "RunDataSource"
60523
+ scout_run_api_RunDataSource.__qualname__ = "RunDataSource"
60524
+ scout_run_api_RunDataSource.__module__ = "nominal_api.scout_run_api"
60525
+
60526
+
60560
60527
  class scout_run_api_RunWithDataReviewMetrics(ConjureBeanType):
60561
60528
 
60562
60529
  @builtins.classmethod
@@ -61411,6 +61378,29 @@ scout_run_api_UtcTimestamp.__qualname__ = "UtcTimestamp"
61411
61378
  scout_run_api_UtcTimestamp.__module__ = "nominal_api.scout_run_api"
61412
61379
 
61413
61380
 
61381
+ class scout_run_api_WeakTimestampType(ConjureEnumType):
61382
+ """
61383
+ If a CSV data source is still being split, the timestamp type is not known.
61384
+ """
61385
+
61386
+ ABSOLUTE = 'ABSOLUTE'
61387
+ '''ABSOLUTE'''
61388
+ RELATIVE = 'RELATIVE'
61389
+ '''RELATIVE'''
61390
+ PENDING = 'PENDING'
61391
+ '''PENDING'''
61392
+ UNKNOWN = 'UNKNOWN'
61393
+ '''UNKNOWN'''
61394
+
61395
+ def __reduce_ex__(self, proto):
61396
+ return self.__class__, (self.name,)
61397
+
61398
+
61399
+ scout_run_api_WeakTimestampType.__name__ = "WeakTimestampType"
61400
+ scout_run_api_WeakTimestampType.__qualname__ = "WeakTimestampType"
61401
+ scout_run_api_WeakTimestampType.__module__ = "nominal_api.scout_run_api"
61402
+
61403
+
61414
61404
  class scout_template_api_CommitTemplateRequest(ConjureBeanType):
61415
61405
 
61416
61406
  @builtins.classmethod
@@ -1,9 +1,7 @@
1
1
  # coding=utf-8
2
2
  from .._impl import (
3
3
  scout_api_ChannelLocator as ChannelLocator,
4
- scout_api_DataScope as DataScope,
5
4
  scout_api_DataSourceRefName as DataSourceRefName,
6
5
  scout_api_HexColor as HexColor,
7
- scout_api_WeakTimestampType as WeakTimestampType,
8
6
  )
9
7
 
@@ -24,6 +24,7 @@ from .._impl import (
24
24
  scout_run_api_Run as Run,
25
25
  scout_run_api_RunDataReviewEvaluationStatus as RunDataReviewEvaluationStatus,
26
26
  scout_run_api_RunDataReviewSummary as RunDataReviewSummary,
27
+ scout_run_api_RunDataSource as RunDataSource,
27
28
  scout_run_api_RunRid as RunRid,
28
29
  scout_run_api_RunWithDataReviewMetrics as RunWithDataReviewMetrics,
29
30
  scout_run_api_RunWithDataReviewSummary as RunWithDataReviewSummary,
@@ -41,5 +42,6 @@ from .._impl import (
41
42
  scout_run_api_UpdateAttachmentsRequest as UpdateAttachmentsRequest,
42
43
  scout_run_api_UpdateRunRequest as UpdateRunRequest,
43
44
  scout_run_api_UtcTimestamp as UtcTimestamp,
45
+ scout_run_api_WeakTimestampType as WeakTimestampType,
44
46
  )
45
47
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.584.0
3
+ Version: 0.584.1
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<3,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=hlazt7F04ugLjExfDf-M_qjlB1Z-VbbmPj7SxygJdlc,1923
2
- nominal_api/_impl.py,sha256=NRyDv2wZFU9Tlz50mpswAh1yhSxrUJnFVNDLVLSJHz8,2828743
1
+ nominal_api/__init__.py,sha256=5PeQ3gJZUe-tQ06IoXPGNxBCUqNjY2bYgESx0omnO2g,1923
2
+ nominal_api/_impl.py,sha256=ve4kz6aF6u4zPf93SstNaFup4rC1T035r6nr_OFWrEU,2828133
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=kJBEE_HLVpKYdLH12KyO-cSAVzwxYpBwaaDutCtT-LM,1236
5
5
  nominal_api/api_rids/__init__.py,sha256=Bu-pKUh3aS9_f5m-DZf6W_BUlVo9qYE7EDvaT-rvWQ0,423
@@ -16,7 +16,7 @@ nominal_api/datasource_pagination_api/__init__.py,sha256=3GO8TAUavOe6dUEitOhje74
16
16
  nominal_api/event/__init__.py,sha256=YUhvDFXtyAn08WNd7Xwnybz3PtflvtTcIOaunRS5-1I,836
17
17
  nominal_api/ingest_api/__init__.py,sha256=U4rA8WoGLgVr8yzWcigZijvOOy13BYYzpz5ium94sp4,5532
18
18
  nominal_api/scout/__init__.py,sha256=ip3XK_9jJKAoFiCifUVMTpDMiUE4mWIdGzMDu7LASus,324
19
- nominal_api/scout_api/__init__.py,sha256=zl03M5lLjNaxN9WxRgx96xKYWwked6WM6nfxSFnak4Q,270
19
+ nominal_api/scout_api/__init__.py,sha256=biO4DEygbGcLwM6Dg2VuvMra3A5EW6NBjukbIemXoG8,178
20
20
  nominal_api/scout_asset_api/__init__.py,sha256=Ph-KlW-ki0JRejYQZDvbZ2jRzNAttVBux27lcEj7--Q,1910
21
21
  nominal_api/scout_assets/__init__.py,sha256=dT-b9HnbwVbI-fEalfskKSMGzhGRwZDZ2cdzWul1daY,87
22
22
  nominal_api/scout_catalog/__init__.py,sha256=ZGm4w1YKd4B-3CNxijTpB-1B653nctA_R0u24oPS3To,3508
@@ -47,7 +47,7 @@ nominal_api/scout_metadata/__init__.py,sha256=GIhWKJL2XSMB0iGaKfcGgmPHuvGWWmkK4l
47
47
  nominal_api/scout_notebook_api/__init__.py,sha256=QW0vg8ZrAmuctjnNLxTnqtwyQoX-H9MOkHlLWioe5AA,1230
48
48
  nominal_api/scout_plotting/__init__.py,sha256=m6u3y7R70mo3ugaCp_-fwlS8_tDwrsq1l5ElOTY0TBc,91
49
49
  nominal_api/scout_rids_api/__init__.py,sha256=zAioy5BpuLLgZQpF-11wWUEhntcHNj6sK5YzNC5z-3w,1188
50
- nominal_api/scout_run_api/__init__.py,sha256=3ITK86gMknGWi9RaHs4XmB3Xx16AHAL8GPPe1OwpVJk,2488
50
+ nominal_api/scout_run_api/__init__.py,sha256=lTAFwaHSqRs7dx316MzdQcgdBy7Y_fe_BbfbaktaZGs,2596
51
51
  nominal_api/scout_template_api/__init__.py,sha256=bsu8qPiZ4gf67G5iFvwsfkqEKJRZ7L5Wyg6qcFyogO0,1037
52
52
  nominal_api/scout_units_api/__init__.py,sha256=KxRDScfumX__0ncWJftGvgApn_LBTfnIBAvnaBrcA5A,368
53
53
  nominal_api/scout_versioning_api/__init__.py,sha256=Sf4T4t0rZXNRIZgkqLBN3yh0sAnrxiuzaTfDQVVkyO4,1323
@@ -70,7 +70,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=7NlQhIzOKOcjwMNUI89f
70
70
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
71
71
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
72
72
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
73
- nominal_api-0.584.0.dist-info/METADATA,sha256=AVBm4C-YAk5fuSH0l-Avc9kt7H3PgKsDThqVw9pjT9c,199
74
- nominal_api-0.584.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
75
- nominal_api-0.584.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
76
- nominal_api-0.584.0.dist-info/RECORD,,
73
+ nominal_api-0.584.1.dist-info/METADATA,sha256=uX0pSdwJaKPQfSTE9tBxMAmHgkCrBiN_kyWGDHYKqB8,199
74
+ nominal_api-0.584.1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
75
+ nominal_api-0.584.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
76
+ nominal_api-0.584.1.dist-info/RECORD,,