nominal-api 0.576.0__py3-none-any.whl → 0.578.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.576.0"
74
+ __version__ = "0.578.0"
74
75
 
nominal_api/_impl.py CHANGED
@@ -17922,6 +17922,12 @@ class scout_chartdefinition_api_GeoLineStyle(ConjureEnumType):
17922
17922
 
17923
17923
  POINTS = 'POINTS'
17924
17924
  '''POINTS'''
17925
+ SOLID = 'SOLID'
17926
+ '''SOLID'''
17927
+ DASH = 'DASH'
17928
+ '''DASH'''
17929
+ NONE = 'NONE'
17930
+ '''NONE'''
17925
17931
  UNKNOWN = 'UNKNOWN'
17926
17932
  '''UNKNOWN'''
17927
17933
 
@@ -67121,6 +67127,121 @@ storage_datasource_api_UpdateNominalDataSourceRequest.__qualname__ = "UpdateNomi
67121
67127
  storage_datasource_api_UpdateNominalDataSourceRequest.__module__ = "nominal_api.storage_datasource_api"
67122
67128
 
67123
67129
 
67130
+ class storage_deletion_api_DeleteDataRequest(ConjureBeanType):
67131
+
67132
+ @builtins.classmethod
67133
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
67134
+ return {
67135
+ 'data_source_rid': ConjureFieldDefinition('dataSourceRid', api_rids_NominalDataSourceRid),
67136
+ 'time_range': ConjureFieldDefinition('timeRange', OptionalTypeWrapper[storage_deletion_api_TimeRange]),
67137
+ 'tags': ConjureFieldDefinition('tags', OptionalTypeWrapper[Dict[api_TagName, api_TagValue]])
67138
+ }
67139
+
67140
+ __slots__: List[str] = ['_data_source_rid', '_time_range', '_tags']
67141
+
67142
+ def __init__(self, data_source_rid: str, tags: Optional[Dict[str, str]] = None, time_range: Optional["storage_deletion_api_TimeRange"] = None) -> None:
67143
+ self._data_source_rid = data_source_rid
67144
+ self._time_range = time_range
67145
+ self._tags = tags
67146
+
67147
+ @builtins.property
67148
+ def data_source_rid(self) -> str:
67149
+ return self._data_source_rid
67150
+
67151
+ @builtins.property
67152
+ def time_range(self) -> Optional["storage_deletion_api_TimeRange"]:
67153
+ """
67154
+ If specified, will only delete data within the given time range.
67155
+ If not specified, will delete data across all time.
67156
+ """
67157
+ return self._time_range
67158
+
67159
+ @builtins.property
67160
+ def tags(self) -> Optional[Dict[str, str]]:
67161
+ """
67162
+ If specified, will only delete data that fully matches the given tags.
67163
+ If not specified, will delete data across all tags.
67164
+ """
67165
+ return self._tags
67166
+
67167
+
67168
+ storage_deletion_api_DeleteDataRequest.__name__ = "DeleteDataRequest"
67169
+ storage_deletion_api_DeleteDataRequest.__qualname__ = "DeleteDataRequest"
67170
+ storage_deletion_api_DeleteDataRequest.__module__ = "nominal_api.storage_deletion_api"
67171
+
67172
+
67173
+ class storage_deletion_api_InternalNominalStorageDataDeletionService(Service):
67174
+ """
67175
+ For internal user only. Contact Nominal support if you need to delete data.
67176
+ """
67177
+
67178
+ def delete(self, auth_header: str, request: "storage_deletion_api_DeleteDataRequest") -> None:
67179
+ """
67180
+ Deletes stored data. This is an irreversible operation so be careful about specified
67181
+ time range and tag scope.
67182
+ """
67183
+
67184
+ _headers: Dict[str, Any] = {
67185
+ 'Accept': 'application/json',
67186
+ 'Content-Type': 'application/json',
67187
+ 'Authorization': auth_header,
67188
+ }
67189
+
67190
+ _params: Dict[str, Any] = {
67191
+ }
67192
+
67193
+ _path_params: Dict[str, Any] = {
67194
+ }
67195
+
67196
+ _json: Any = ConjureEncoder().default(request)
67197
+
67198
+ _path = '/internal/storage-data-deletion/v1/delete-data'
67199
+ _path = _path.format(**_path_params)
67200
+
67201
+ _response: Response = self._request(
67202
+ 'POST',
67203
+ self._uri + _path,
67204
+ params=_params,
67205
+ headers=_headers,
67206
+ json=_json)
67207
+
67208
+ return
67209
+
67210
+
67211
+ storage_deletion_api_InternalNominalStorageDataDeletionService.__name__ = "InternalNominalStorageDataDeletionService"
67212
+ storage_deletion_api_InternalNominalStorageDataDeletionService.__qualname__ = "InternalNominalStorageDataDeletionService"
67213
+ storage_deletion_api_InternalNominalStorageDataDeletionService.__module__ = "nominal_api.storage_deletion_api"
67214
+
67215
+
67216
+ class storage_deletion_api_TimeRange(ConjureBeanType):
67217
+
67218
+ @builtins.classmethod
67219
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
67220
+ return {
67221
+ 'start': ConjureFieldDefinition('start', api_Timestamp),
67222
+ 'end': ConjureFieldDefinition('end', api_Timestamp)
67223
+ }
67224
+
67225
+ __slots__: List[str] = ['_start', '_end']
67226
+
67227
+ def __init__(self, end: "api_Timestamp", start: "api_Timestamp") -> None:
67228
+ self._start = start
67229
+ self._end = end
67230
+
67231
+ @builtins.property
67232
+ def start(self) -> "api_Timestamp":
67233
+ return self._start
67234
+
67235
+ @builtins.property
67236
+ def end(self) -> "api_Timestamp":
67237
+ return self._end
67238
+
67239
+
67240
+ storage_deletion_api_TimeRange.__name__ = "TimeRange"
67241
+ storage_deletion_api_TimeRange.__qualname__ = "TimeRange"
67242
+ storage_deletion_api_TimeRange.__module__ = "nominal_api.storage_deletion_api"
67243
+
67244
+
67124
67245
  class storage_series_api_BatchCreateOrGetResponse(ConjureBeanType):
67125
67246
 
67126
67247
  @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.576.0
3
+ Version: 0.578.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=iqic7t3plPMnoLPjjPy4OtpNLU0yVsnrpeQVektxkP0,1823
2
- nominal_api/_impl.py,sha256=HYCAbZ7xojfMbOVAhIV18ifh0GRix-ucGB6SLzB5ysQ,2811995
1
+ nominal_api/__init__.py,sha256=jxH3NOm5LGgjZzXUQcQnOYFQ13AJStIOtB_eRpwBv8c,1851
2
+ nominal_api/_impl.py,sha256=pDBC-sZmgGKmxvZ_Bbe7OSaa8SnqKq3VI4XobxN5FC8,2816069
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.576.0.dist-info/METADATA,sha256=0YVxkuLw536SreK8xkG20o6sOcDxvezFoiExofGJ9f8,199
71
- nominal_api-0.576.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
72
- nominal_api-0.576.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
73
- nominal_api-0.576.0.dist-info/RECORD,,
71
+ nominal_api-0.578.0.dist-info/METADATA,sha256=Ue7sjQGjLg9qRAa68x_uCGY1PIiR1hAIegC6RTW-qiM,199
72
+ nominal_api-0.578.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
73
+ nominal_api-0.578.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
74
+ nominal_api-0.578.0.dist-info/RECORD,,