nominal-api 0.725.0__py3-none-any.whl → 0.726.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nominal-api might be problematic. Click here for more details.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +64 -7
- {nominal_api-0.725.0.dist-info → nominal_api-0.726.0.dist-info}/METADATA +1 -1
- {nominal_api-0.725.0.dist-info → nominal_api-0.726.0.dist-info}/RECORD +6 -6
- {nominal_api-0.725.0.dist-info → nominal_api-0.726.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.725.0.dist-info → nominal_api-0.726.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -10414,6 +10414,43 @@ Will only reingest dataset files and will drop streaming data from datasets.
|
|
|
10414
10414
|
_decoder = ConjureDecoder()
|
|
10415
10415
|
return _decoder.decode(_response.json(), ingest_api_ReingestDatasetsResponse, self._return_none_for_unknown_union_types)
|
|
10416
10416
|
|
|
10417
|
+
def delete_file(self, auth_header: str, dataset_rid: str, file_id: str) -> None:
|
|
10418
|
+
"""This is a best effort deletion of the file's data based on the ingestedAt timestamp. This is an unreversible
|
|
10419
|
+
action. Only v2 dataset file deletion is supported.
|
|
10420
|
+
!!!WARNING!!!
|
|
10421
|
+
It's possible that the file has overwritten points, in which case, those older points will not be recovered.
|
|
10422
|
+
Only use this endpoint if this is acceptable, the data across files are disjoint, or you're willing to
|
|
10423
|
+
re-ingest files to manually recover older points.
|
|
10424
|
+
"""
|
|
10425
|
+
_conjure_encoder = ConjureEncoder()
|
|
10426
|
+
|
|
10427
|
+
_headers: Dict[str, Any] = {
|
|
10428
|
+
'Accept': 'application/json',
|
|
10429
|
+
'Authorization': auth_header,
|
|
10430
|
+
}
|
|
10431
|
+
|
|
10432
|
+
_params: Dict[str, Any] = {
|
|
10433
|
+
}
|
|
10434
|
+
|
|
10435
|
+
_path_params: Dict[str, str] = {
|
|
10436
|
+
'datasetRid': quote(str(_conjure_encoder.default(dataset_rid)), safe=''),
|
|
10437
|
+
'fileId': quote(str(_conjure_encoder.default(file_id)), safe=''),
|
|
10438
|
+
}
|
|
10439
|
+
|
|
10440
|
+
_json: Any = None
|
|
10441
|
+
|
|
10442
|
+
_path = '/ingest/v1/delete-file/{datasetRid}/file/{fileId}'
|
|
10443
|
+
_path = _path.format(**_path_params)
|
|
10444
|
+
|
|
10445
|
+
_response: Response = self._request(
|
|
10446
|
+
'DELETE',
|
|
10447
|
+
self._uri + _path,
|
|
10448
|
+
params=_params,
|
|
10449
|
+
headers=_headers,
|
|
10450
|
+
json=_json)
|
|
10451
|
+
|
|
10452
|
+
return
|
|
10453
|
+
|
|
10417
10454
|
|
|
10418
10455
|
ingest_api_IngestService.__name__ = "IngestService"
|
|
10419
10456
|
ingest_api_IngestService.__qualname__ = "IngestService"
|
|
@@ -21251,12 +21288,13 @@ class scout_catalog_DatasetFile(ConjureBeanType):
|
|
|
21251
21288
|
'ingest_status': ConjureFieldDefinition('ingestStatus', api_IngestStatusV2),
|
|
21252
21289
|
'timestamp_metadata': ConjureFieldDefinition('timestampMetadata', OptionalTypeWrapper[scout_catalog_TimestampMetadata]),
|
|
21253
21290
|
'origin_file_paths': ConjureFieldDefinition('originFilePaths', OptionalTypeWrapper[List[str]]),
|
|
21254
|
-
'ingest_job_rid': ConjureFieldDefinition('ingestJobRid', OptionalTypeWrapper[ingest_api_IngestJobRid])
|
|
21291
|
+
'ingest_job_rid': ConjureFieldDefinition('ingestJobRid', OptionalTypeWrapper[ingest_api_IngestJobRid]),
|
|
21292
|
+
'deleted_at': ConjureFieldDefinition('deletedAt', OptionalTypeWrapper[str])
|
|
21255
21293
|
}
|
|
21256
21294
|
|
|
21257
|
-
__slots__: List[str] = ['_id', '_dataset_rid', '_name', '_handle', '_bounds', '_uploaded_at', '_ingested_at', '_ingest_status', '_timestamp_metadata', '_origin_file_paths', '_ingest_job_rid']
|
|
21295
|
+
__slots__: List[str] = ['_id', '_dataset_rid', '_name', '_handle', '_bounds', '_uploaded_at', '_ingested_at', '_ingest_status', '_timestamp_metadata', '_origin_file_paths', '_ingest_job_rid', '_deleted_at']
|
|
21258
21296
|
|
|
21259
|
-
def __init__(self, dataset_rid: str, handle: "scout_catalog_Handle", id: str, ingest_status: "api_IngestStatusV2", name: str, uploaded_at: str, bounds: Optional["scout_catalog_Bounds"] = None, ingest_job_rid: Optional[str] = None, ingested_at: Optional[str] = None, origin_file_paths: Optional[List[str]] = None, timestamp_metadata: Optional["scout_catalog_TimestampMetadata"] = None) -> None:
|
|
21297
|
+
def __init__(self, dataset_rid: str, handle: "scout_catalog_Handle", id: str, ingest_status: "api_IngestStatusV2", name: str, uploaded_at: str, bounds: Optional["scout_catalog_Bounds"] = None, deleted_at: Optional[str] = None, ingest_job_rid: Optional[str] = None, ingested_at: Optional[str] = None, origin_file_paths: Optional[List[str]] = None, timestamp_metadata: Optional["scout_catalog_TimestampMetadata"] = None) -> None:
|
|
21260
21298
|
self._id = id
|
|
21261
21299
|
self._dataset_rid = dataset_rid
|
|
21262
21300
|
self._name = name
|
|
@@ -21268,6 +21306,7 @@ class scout_catalog_DatasetFile(ConjureBeanType):
|
|
|
21268
21306
|
self._timestamp_metadata = timestamp_metadata
|
|
21269
21307
|
self._origin_file_paths = origin_file_paths
|
|
21270
21308
|
self._ingest_job_rid = ingest_job_rid
|
|
21309
|
+
self._deleted_at = deleted_at
|
|
21271
21310
|
|
|
21272
21311
|
@builtins.property
|
|
21273
21312
|
def id(self) -> str:
|
|
@@ -21318,6 +21357,12 @@ ingested for any reason or is still being processed, then this value will be emp
|
|
|
21318
21357
|
def ingest_job_rid(self) -> Optional[str]:
|
|
21319
21358
|
return self._ingest_job_rid
|
|
21320
21359
|
|
|
21360
|
+
@builtins.property
|
|
21361
|
+
def deleted_at(self) -> Optional[str]:
|
|
21362
|
+
"""Timestamp that the file is deleted at, only present if the file has been deleted.
|
|
21363
|
+
"""
|
|
21364
|
+
return self._deleted_at
|
|
21365
|
+
|
|
21321
21366
|
|
|
21322
21367
|
scout_catalog_DatasetFile.__name__ = "DatasetFile"
|
|
21323
21368
|
scout_catalog_DatasetFile.__qualname__ = "DatasetFile"
|
|
@@ -29637,13 +29682,14 @@ class scout_checks_api_Check(ConjureBeanType):
|
|
|
29637
29682
|
'auto_generated_title': ConjureFieldDefinition('autoGeneratedTitle', OptionalTypeWrapper[str]),
|
|
29638
29683
|
'auto_generated_description': ConjureFieldDefinition('autoGeneratedDescription', OptionalTypeWrapper[str]),
|
|
29639
29684
|
'priority': ConjureFieldDefinition('priority', scout_api_Priority),
|
|
29685
|
+
'generated_event_type': ConjureFieldDefinition('generatedEventType', event_EventType),
|
|
29640
29686
|
'chart': ConjureFieldDefinition('chart', OptionalTypeWrapper[scout_rids_api_VersionedVizId]),
|
|
29641
29687
|
'condition': ConjureFieldDefinition('condition', OptionalTypeWrapper[scout_checks_api_CheckCondition])
|
|
29642
29688
|
}
|
|
29643
29689
|
|
|
29644
|
-
__slots__: List[str] = ['_rid', '_check_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_priority', '_chart', '_condition']
|
|
29690
|
+
__slots__: List[str] = ['_rid', '_check_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_priority', '_generated_event_type', '_chart', '_condition']
|
|
29645
29691
|
|
|
29646
|
-
def __init__(self, check_lineage_rid: str, description: str, priority: "scout_api_Priority", rid: str, title: str, auto_generated_description: Optional[str] = None, auto_generated_title: Optional[str] = None, chart: Optional["scout_rids_api_VersionedVizId"] = None, condition: Optional["scout_checks_api_CheckCondition"] = None) -> None:
|
|
29692
|
+
def __init__(self, check_lineage_rid: str, description: str, generated_event_type: "event_EventType", priority: "scout_api_Priority", rid: str, title: str, auto_generated_description: Optional[str] = None, auto_generated_title: Optional[str] = None, chart: Optional["scout_rids_api_VersionedVizId"] = None, condition: Optional["scout_checks_api_CheckCondition"] = None) -> None:
|
|
29647
29693
|
self._rid = rid
|
|
29648
29694
|
self._check_lineage_rid = check_lineage_rid
|
|
29649
29695
|
self._title = title
|
|
@@ -29651,6 +29697,7 @@ class scout_checks_api_Check(ConjureBeanType):
|
|
|
29651
29697
|
self._auto_generated_title = auto_generated_title
|
|
29652
29698
|
self._auto_generated_description = auto_generated_description
|
|
29653
29699
|
self._priority = priority
|
|
29700
|
+
self._generated_event_type = generated_event_type
|
|
29654
29701
|
self._chart = chart
|
|
29655
29702
|
self._condition = condition
|
|
29656
29703
|
|
|
@@ -29682,6 +29729,10 @@ class scout_checks_api_Check(ConjureBeanType):
|
|
|
29682
29729
|
def priority(self) -> "scout_api_Priority":
|
|
29683
29730
|
return self._priority
|
|
29684
29731
|
|
|
29732
|
+
@builtins.property
|
|
29733
|
+
def generated_event_type(self) -> "event_EventType":
|
|
29734
|
+
return self._generated_event_type
|
|
29735
|
+
|
|
29685
29736
|
@builtins.property
|
|
29686
29737
|
def chart(self) -> Optional["scout_rids_api_VersionedVizId"]:
|
|
29687
29738
|
return self._chart
|
|
@@ -31043,19 +31094,21 @@ class scout_checks_api_CreateCheckRequest(ConjureBeanType):
|
|
|
31043
31094
|
'auto_generated_title': ConjureFieldDefinition('autoGeneratedTitle', OptionalTypeWrapper[str]),
|
|
31044
31095
|
'auto_generated_description': ConjureFieldDefinition('autoGeneratedDescription', OptionalTypeWrapper[str]),
|
|
31045
31096
|
'priority': ConjureFieldDefinition('priority', scout_api_Priority),
|
|
31097
|
+
'generated_event_type': ConjureFieldDefinition('generatedEventType', OptionalTypeWrapper[event_EventType]),
|
|
31046
31098
|
'chart': ConjureFieldDefinition('chart', OptionalTypeWrapper[scout_rids_api_VersionedVizId]),
|
|
31047
31099
|
'condition': ConjureFieldDefinition('condition', OptionalTypeWrapper[scout_checks_api_UnresolvedCheckCondition])
|
|
31048
31100
|
}
|
|
31049
31101
|
|
|
31050
|
-
__slots__: List[str] = ['_check_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_priority', '_chart', '_condition']
|
|
31102
|
+
__slots__: List[str] = ['_check_lineage_rid', '_title', '_description', '_auto_generated_title', '_auto_generated_description', '_priority', '_generated_event_type', '_chart', '_condition']
|
|
31051
31103
|
|
|
31052
|
-
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) -> None:
|
|
31104
|
+
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:
|
|
31053
31105
|
self._check_lineage_rid = check_lineage_rid
|
|
31054
31106
|
self._title = title
|
|
31055
31107
|
self._description = description
|
|
31056
31108
|
self._auto_generated_title = auto_generated_title
|
|
31057
31109
|
self._auto_generated_description = auto_generated_description
|
|
31058
31110
|
self._priority = priority
|
|
31111
|
+
self._generated_event_type = generated_event_type
|
|
31059
31112
|
self._chart = chart
|
|
31060
31113
|
self._condition = condition
|
|
31061
31114
|
|
|
@@ -31086,6 +31139,10 @@ This is named checkLineageRid for historical reasons but is actually a UUID.
|
|
|
31086
31139
|
def priority(self) -> "scout_api_Priority":
|
|
31087
31140
|
return self._priority
|
|
31088
31141
|
|
|
31142
|
+
@builtins.property
|
|
31143
|
+
def generated_event_type(self) -> Optional["event_EventType"]:
|
|
31144
|
+
return self._generated_event_type
|
|
31145
|
+
|
|
31089
31146
|
@builtins.property
|
|
31090
31147
|
def chart(self) -> Optional["scout_rids_api_VersionedVizId"]:
|
|
31091
31148
|
return self._chart
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=6PJh77T24dhZiTAM-w5xhWc84GIEfPyN_P7ISgdpnrQ,1956
|
|
2
|
+
nominal_api/_impl.py,sha256=3jydt-Qo5a2BAnwYRWtZpTX2HDNfRbh0uoYlr5WBNf0,3293297
|
|
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
|
|
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
|
|
|
72
72
|
nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
|
|
73
73
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
|
|
74
74
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
|
75
|
-
nominal_api-0.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.726.0.dist-info/METADATA,sha256=5_Nk8XxVAP2HmQuiHqZKAtu4U9Yx7dUhrS8aJcZOBKc,199
|
|
76
|
+
nominal_api-0.726.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
77
|
+
nominal_api-0.726.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.726.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|