nominal-api 0.575.0__py3-none-any.whl → 0.577.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
@@ -56,6 +56,7 @@ __all__ = [
56
56
  'secrets_api',
57
57
  'security_api_workspace',
58
58
  'storage_datasource_api',
59
+ 'storage_deletion_api',
59
60
  'storage_series_api',
60
61
  'storage_writer_api',
61
62
  'themes_api',
@@ -70,5 +71,5 @@ __all__ = [
70
71
 
71
72
  __conjure_generator_version__ = "4.9.0"
72
73
 
73
- __version__ = "0.575.0"
74
+ __version__ = "0.577.0"
74
75
 
nominal_api/_impl.py CHANGED
@@ -67121,6 +67121,121 @@ storage_datasource_api_UpdateNominalDataSourceRequest.__qualname__ = "UpdateNomi
67121
67121
  storage_datasource_api_UpdateNominalDataSourceRequest.__module__ = "nominal_api.storage_datasource_api"
67122
67122
 
67123
67123
 
67124
+ class storage_deletion_api_DeleteDataRequest(ConjureBeanType):
67125
+
67126
+ @builtins.classmethod
67127
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
67128
+ return {
67129
+ 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
67130
+ 'time_range': ConjureFieldDefinition('timeRange', OptionalTypeWrapper[storage_deletion_api_TimeRange]),
67131
+ 'tags': ConjureFieldDefinition('tags', OptionalTypeWrapper[Dict[api_TagName, api_TagValue]])
67132
+ }
67133
+
67134
+ __slots__: List[str] = ['_data_source_rid', '_time_range', '_tags']
67135
+
67136
+ def __init__(self, data_source_rid: str, tags: Optional[Dict[str, str]] = None, time_range: Optional["storage_deletion_api_TimeRange"] = None) -> None:
67137
+ self._data_source_rid = data_source_rid
67138
+ self._time_range = time_range
67139
+ self._tags = tags
67140
+
67141
+ @builtins.property
67142
+ def data_source_rid(self) -> str:
67143
+ return self._data_source_rid
67144
+
67145
+ @builtins.property
67146
+ def time_range(self) -> Optional["storage_deletion_api_TimeRange"]:
67147
+ """
67148
+ If specified, will only delete data within the given time range.
67149
+ If not specified, will delete data across all time.
67150
+ """
67151
+ return self._time_range
67152
+
67153
+ @builtins.property
67154
+ def tags(self) -> Optional[Dict[str, str]]:
67155
+ """
67156
+ If specified, will only delete data that fully matches the given tags.
67157
+ If not specified, will delete data across all tags.
67158
+ """
67159
+ return self._tags
67160
+
67161
+
67162
+ storage_deletion_api_DeleteDataRequest.__name__ = "DeleteDataRequest"
67163
+ storage_deletion_api_DeleteDataRequest.__qualname__ = "DeleteDataRequest"
67164
+ storage_deletion_api_DeleteDataRequest.__module__ = "nominal_api.storage_deletion_api"
67165
+
67166
+
67167
+ class storage_deletion_api_InternalNominalStorageDataDeletionService(Service):
67168
+ """
67169
+ For internal user only. Contact Nominal support if you need to delete data.
67170
+ """
67171
+
67172
+ def delete(self, auth_header: str, request: "storage_deletion_api_DeleteDataRequest") -> None:
67173
+ """
67174
+ Deletes stored data. This is an irreversible operation so be careful about specified
67175
+ time range and tag scope.
67176
+ """
67177
+
67178
+ _headers: Dict[str, Any] = {
67179
+ 'Accept': 'application/json',
67180
+ 'Content-Type': 'application/json',
67181
+ 'Authorization': auth_header,
67182
+ }
67183
+
67184
+ _params: Dict[str, Any] = {
67185
+ }
67186
+
67187
+ _path_params: Dict[str, Any] = {
67188
+ }
67189
+
67190
+ _json: Any = ConjureEncoder().default(request)
67191
+
67192
+ _path = '/internal/storage-data-deletion/v1/delete-data'
67193
+ _path = _path.format(**_path_params)
67194
+
67195
+ _response: Response = self._request(
67196
+ 'POST',
67197
+ self._uri + _path,
67198
+ params=_params,
67199
+ headers=_headers,
67200
+ json=_json)
67201
+
67202
+ return
67203
+
67204
+
67205
+ storage_deletion_api_InternalNominalStorageDataDeletionService.__name__ = "InternalNominalStorageDataDeletionService"
67206
+ storage_deletion_api_InternalNominalStorageDataDeletionService.__qualname__ = "InternalNominalStorageDataDeletionService"
67207
+ storage_deletion_api_InternalNominalStorageDataDeletionService.__module__ = "nominal_api.storage_deletion_api"
67208
+
67209
+
67210
+ class storage_deletion_api_TimeRange(ConjureBeanType):
67211
+
67212
+ @builtins.classmethod
67213
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
67214
+ return {
67215
+ 'start': ConjureFieldDefinition('start', api_Timestamp),
67216
+ 'end': ConjureFieldDefinition('end', api_Timestamp)
67217
+ }
67218
+
67219
+ __slots__: List[str] = ['_start', '_end']
67220
+
67221
+ def __init__(self, end: "api_Timestamp", start: "api_Timestamp") -> None:
67222
+ self._start = start
67223
+ self._end = end
67224
+
67225
+ @builtins.property
67226
+ def start(self) -> "api_Timestamp":
67227
+ return self._start
67228
+
67229
+ @builtins.property
67230
+ def end(self) -> "api_Timestamp":
67231
+ return self._end
67232
+
67233
+
67234
+ storage_deletion_api_TimeRange.__name__ = "TimeRange"
67235
+ storage_deletion_api_TimeRange.__qualname__ = "TimeRange"
67236
+ storage_deletion_api_TimeRange.__module__ = "nominal_api.storage_deletion_api"
67237
+
67238
+
67124
67239
  class storage_series_api_BatchCreateOrGetResponse(ConjureBeanType):
67125
67240
 
67126
67241
  @builtins.classmethod
@@ -0,0 +1,7 @@
1
+ # coding=utf-8
2
+ from .._impl import (
3
+ storage_deletion_api_DeleteDataRequest as DeleteDataRequest,
4
+ storage_deletion_api_InternalNominalStorageDataDeletionService as InternalNominalStorageDataDeletionService,
5
+ storage_deletion_api_TimeRange as TimeRange,
6
+ )
7
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.575.0
3
+ Version: 0.577.0
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=HCKQc2z2QvBS11aFF-6EutJymt_qr1gXbHbJsj6owxI,1823
2
- nominal_api/_impl.py,sha256=HYCAbZ7xojfMbOVAhIV18ifh0GRix-ucGB6SLzB5ysQ,2811995
1
+ nominal_api/__init__.py,sha256=WpxIsCJJqYGo_bt7mfGSmyNDPSjb8KC6li7a8dFyKRs,1851
2
+ nominal_api/_impl.py,sha256=Ic-DWaFn7WKkhVCmlOlyjg9oe7IIKJEv31FZL2GkmQA,2815967
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
@@ -57,6 +57,7 @@ nominal_api/scout_workbookcommon_api/__init__.py,sha256=6Ai0cYNOOw2A6JOlKzraTbpZ
57
57
  nominal_api/secrets_api/__init__.py,sha256=V5BpnbNzjdMP8kgvR2N6SEVcVyXi6Vyl_lh_5fKjJzw,736
58
58
  nominal_api/security_api_workspace/__init__.py,sha256=18MQr8sUGDfaXl50sMR7objE5rBJ9dZ1Sjwuyf997dA,156
59
59
  nominal_api/storage_datasource_api/__init__.py,sha256=jh_OZE_b4nBNAvnyenBjw8aGZOnvIXR6qvUKd31fXOk,445
60
+ nominal_api/storage_deletion_api/__init__.py,sha256=2bIuAU0tcnT_8lqae0fcII4R45A_RzfV0y_E-vTkpSQ,267
60
61
  nominal_api/storage_series_api/__init__.py,sha256=HapfYMCap8kDYXh7_kjsdywLqwterOB0OdVUyU3QZz8,829
61
62
  nominal_api/storage_writer_api/__init__.py,sha256=kr14YqN44wGfHJIy_7hti6KFq5caA1523i45P2GX8hM,909
62
63
  nominal_api/themes_api/__init__.py,sha256=w-G93T5f6_2zSSUi-ffyUHxH8QA_2oI9jM7YBSMFpwY,924
@@ -67,7 +68,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=7NlQhIzOKOcjwMNUI89f
67
68
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
68
69
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
69
70
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
70
- nominal_api-0.575.0.dist-info/METADATA,sha256=fCOx2cAm1jPb5vYqtC7bBUTBaUV1QATH3Im0LUrDgjQ,199
71
- nominal_api-0.575.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
72
- nominal_api-0.575.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
73
- nominal_api-0.575.0.dist-info/RECORD,,
71
+ nominal_api-0.577.0.dist-info/METADATA,sha256=qtT6o47rR41f4FoKoNeNdOruxqVosFycq51PobUOcgI,199
72
+ nominal_api-0.577.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
73
+ nominal_api-0.577.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
74
+ nominal_api-0.577.0.dist-info/RECORD,,