nominal-api 0.741.0__py3-none-any.whl → 0.742.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.
nominal_api/__init__.py CHANGED
@@ -77,5 +77,5 @@ __all__ = [
77
77
 
78
78
  __conjure_generator_version__ = "4.17.0"
79
79
 
80
- __version__ = "0.741.0"
80
+ __version__ = "0.742.0"
81
81
 
nominal_api/_impl.py CHANGED
@@ -81919,6 +81919,74 @@ timeseries_archetype_api_CreateSeriesArchetypeRequest.__qualname__ = "CreateSeri
81919
81919
  timeseries_archetype_api_CreateSeriesArchetypeRequest.__module__ = "nominal_api.timeseries_archetype_api"
81920
81920
 
81921
81921
 
81922
+ class timeseries_archetype_api_CsvLocatorTemplate(ConjureBeanType):
81923
+ """Deprecated in favor of CsvLocatorV2Template
81924
+ """
81925
+
81926
+ @builtins.classmethod
81927
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
81928
+ return {
81929
+ 's3_path': ConjureFieldDefinition('s3Path', api_S3Path),
81930
+ 'index': ConjureFieldDefinition('index', int),
81931
+ 'uses_legacy_format': ConjureFieldDefinition('usesLegacyFormat', OptionalTypeWrapper[bool]),
81932
+ 'x_series_handle': ConjureFieldDefinition('xSeriesHandle', OptionalTypeWrapper[str]),
81933
+ 'y_series_handle': ConjureFieldDefinition('ySeriesHandle', OptionalTypeWrapper[str]),
81934
+ 'type': ConjureFieldDefinition('type', storage_series_api_NominalDataType),
81935
+ 'channel': ConjureFieldDefinition('channel', api_Channel)
81936
+ }
81937
+
81938
+ __slots__: List[str] = ['_s3_path', '_index', '_uses_legacy_format', '_x_series_handle', '_y_series_handle', '_type', '_channel']
81939
+
81940
+ def __init__(self, channel: str, index: int, s3_path: str, type: "storage_series_api_NominalDataType", uses_legacy_format: Optional[bool] = None, x_series_handle: Optional[str] = None, y_series_handle: Optional[str] = None) -> None:
81941
+ self._s3_path = s3_path
81942
+ self._index = index
81943
+ self._uses_legacy_format = uses_legacy_format
81944
+ self._x_series_handle = x_series_handle
81945
+ self._y_series_handle = y_series_handle
81946
+ self._type = type
81947
+ self._channel = channel
81948
+
81949
+ @builtins.property
81950
+ def s3_path(self) -> str:
81951
+ return self._s3_path
81952
+
81953
+ @builtins.property
81954
+ def index(self) -> int:
81955
+ return self._index
81956
+
81957
+ @builtins.property
81958
+ def uses_legacy_format(self) -> Optional[bool]:
81959
+ """If empty, defaults to false. This refers to whether the CSV was ingested using legacy format where the timestamp
81960
+ and values are split into two separate arrow files.
81961
+ """
81962
+ return self._uses_legacy_format
81963
+
81964
+ @builtins.property
81965
+ def x_series_handle(self) -> Optional[str]:
81966
+ """The handle of the x series to use for this logical series.
81967
+ """
81968
+ return self._x_series_handle
81969
+
81970
+ @builtins.property
81971
+ def y_series_handle(self) -> Optional[str]:
81972
+ """The handle of the y series to use for this logical series.
81973
+ """
81974
+ return self._y_series_handle
81975
+
81976
+ @builtins.property
81977
+ def type(self) -> "storage_series_api_NominalDataType":
81978
+ return self._type
81979
+
81980
+ @builtins.property
81981
+ def channel(self) -> str:
81982
+ return self._channel
81983
+
81984
+
81985
+ timeseries_archetype_api_CsvLocatorTemplate.__name__ = "CsvLocatorTemplate"
81986
+ timeseries_archetype_api_CsvLocatorTemplate.__qualname__ = "CsvLocatorTemplate"
81987
+ timeseries_archetype_api_CsvLocatorTemplate.__module__ = "nominal_api.timeseries_archetype_api"
81988
+
81989
+
81922
81990
  class timeseries_archetype_api_CsvLocatorV2Template(ConjureBeanType):
81923
81991
 
81924
81992
  @builtins.classmethod
@@ -82058,6 +82126,7 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82058
82126
  _timestream: Optional["timeseries_archetype_api_TimestreamLocatorTemplate"] = None
82059
82127
  _visual_crossing: Optional["timeseries_archetype_api_VisualCrossingLocatorTemplate"] = None
82060
82128
  _big_query: Optional["timeseries_archetype_api_BigQueryLocatorTemplate"] = None
82129
+ _csv: Optional["timeseries_archetype_api_CsvLocatorTemplate"] = None
82061
82130
  _csv_v2: Optional["timeseries_archetype_api_CsvLocatorV2Template"] = None
82062
82131
 
82063
82132
  @builtins.classmethod
@@ -82070,6 +82139,7 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82070
82139
  'timestream': ConjureFieldDefinition('timestream', timeseries_archetype_api_TimestreamLocatorTemplate),
82071
82140
  'visual_crossing': ConjureFieldDefinition('visualCrossing', timeseries_archetype_api_VisualCrossingLocatorTemplate),
82072
82141
  'big_query': ConjureFieldDefinition('bigQuery', timeseries_archetype_api_BigQueryLocatorTemplate),
82142
+ 'csv': ConjureFieldDefinition('csv', timeseries_archetype_api_CsvLocatorTemplate),
82073
82143
  'csv_v2': ConjureFieldDefinition('csvV2', timeseries_archetype_api_CsvLocatorV2Template)
82074
82144
  }
82075
82145
 
@@ -82082,11 +82152,12 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82082
82152
  timestream: Optional["timeseries_archetype_api_TimestreamLocatorTemplate"] = None,
82083
82153
  visual_crossing: Optional["timeseries_archetype_api_VisualCrossingLocatorTemplate"] = None,
82084
82154
  big_query: Optional["timeseries_archetype_api_BigQueryLocatorTemplate"] = None,
82155
+ csv: Optional["timeseries_archetype_api_CsvLocatorTemplate"] = None,
82085
82156
  csv_v2: Optional["timeseries_archetype_api_CsvLocatorV2Template"] = None,
82086
82157
  type_of_union: Optional[str] = None
82087
82158
  ) -> None:
82088
82159
  if type_of_union is None:
82089
- if (timescale_db is not None) + (influx is not None) + (influx1 is not None) + (nominal is not None) + (timestream is not None) + (visual_crossing is not None) + (big_query is not None) + (csv_v2 is not None) != 1:
82160
+ if (timescale_db is not None) + (influx is not None) + (influx1 is not None) + (nominal is not None) + (timestream is not None) + (visual_crossing is not None) + (big_query is not None) + (csv is not None) + (csv_v2 is not None) != 1:
82090
82161
  raise ValueError('a union must contain a single member')
82091
82162
 
82092
82163
  if timescale_db is not None:
@@ -82110,6 +82181,9 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82110
82181
  if big_query is not None:
82111
82182
  self._big_query = big_query
82112
82183
  self._type = 'bigQuery'
82184
+ if csv is not None:
82185
+ self._csv = csv
82186
+ self._type = 'csv'
82113
82187
  if csv_v2 is not None:
82114
82188
  self._csv_v2 = csv_v2
82115
82189
  self._type = 'csvV2'
@@ -82149,6 +82223,11 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82149
82223
  raise ValueError('a union value must not be None')
82150
82224
  self._big_query = big_query
82151
82225
  self._type = 'bigQuery'
82226
+ elif type_of_union == 'csv':
82227
+ if csv is None:
82228
+ raise ValueError('a union value must not be None')
82229
+ self._csv = csv
82230
+ self._type = 'csv'
82152
82231
  elif type_of_union == 'csvV2':
82153
82232
  if csv_v2 is None:
82154
82233
  raise ValueError('a union value must not be None')
@@ -82183,6 +82262,10 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82183
82262
  def big_query(self) -> Optional["timeseries_archetype_api_BigQueryLocatorTemplate"]:
82184
82263
  return self._big_query
82185
82264
 
82265
+ @builtins.property
82266
+ def csv(self) -> Optional["timeseries_archetype_api_CsvLocatorTemplate"]:
82267
+ return self._csv
82268
+
82186
82269
  @builtins.property
82187
82270
  def csv_v2(self) -> Optional["timeseries_archetype_api_CsvLocatorV2Template"]:
82188
82271
  return self._csv_v2
@@ -82204,6 +82287,8 @@ class timeseries_archetype_api_LocatorTemplate(ConjureUnionType):
82204
82287
  return visitor._visual_crossing(self.visual_crossing)
82205
82288
  if self._type == 'bigQuery' and self.big_query is not None:
82206
82289
  return visitor._big_query(self.big_query)
82290
+ if self._type == 'csv' and self.csv is not None:
82291
+ return visitor._csv(self.csv)
82207
82292
  if self._type == 'csvV2' and self.csv_v2 is not None:
82208
82293
  return visitor._csv_v2(self.csv_v2)
82209
82294
 
@@ -82243,6 +82328,10 @@ class timeseries_archetype_api_LocatorTemplateVisitor:
82243
82328
  def _big_query(self, big_query: "timeseries_archetype_api_BigQueryLocatorTemplate") -> Any:
82244
82329
  pass
82245
82330
 
82331
+ @abstractmethod
82332
+ def _csv(self, csv: "timeseries_archetype_api_CsvLocatorTemplate") -> Any:
82333
+ pass
82334
+
82246
82335
  @abstractmethod
82247
82336
  def _csv_v2(self, csv_v2: "timeseries_archetype_api_CsvLocatorV2Template") -> Any:
82248
82337
  pass
@@ -5,6 +5,7 @@ from .._impl import (
5
5
  timeseries_archetype_api_BatchGetSeriesArchetypeResponse as BatchGetSeriesArchetypeResponse,
6
6
  timeseries_archetype_api_BigQueryLocatorTemplate as BigQueryLocatorTemplate,
7
7
  timeseries_archetype_api_CreateSeriesArchetypeRequest as CreateSeriesArchetypeRequest,
8
+ timeseries_archetype_api_CsvLocatorTemplate as CsvLocatorTemplate,
8
9
  timeseries_archetype_api_CsvLocatorV2Template as CsvLocatorV2Template,
9
10
  timeseries_archetype_api_Influx1LocatorTemplate as Influx1LocatorTemplate,
10
11
  timeseries_archetype_api_Influx2LocatorTemplate as Influx2LocatorTemplate,
@@ -25,6 +26,7 @@ __all__ = [
25
26
  'BatchGetSeriesArchetypeResponse',
26
27
  'BigQueryLocatorTemplate',
27
28
  'CreateSeriesArchetypeRequest',
29
+ 'CsvLocatorTemplate',
28
30
  'CsvLocatorV2Template',
29
31
  'Influx1LocatorTemplate',
30
32
  'Influx2LocatorTemplate',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.741.0
3
+ Version: 0.742.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=Lsai4mSZb85EHOxnyoWMpextCVsy-Qrmz9dAUSmzf30,1990
2
- nominal_api/_impl.py,sha256=P4SsoqQquQs7b17HbyYqJbbtjesKLalnccZLb4Ba3Sg,3365176
1
+ nominal_api/__init__.py,sha256=HxU-gdKcOVcQ5u26ymv67xzFrqBaliNPT96pGSiGayE,1990
2
+ nominal_api/_impl.py,sha256=WkxwVjj-bvAQsYYUTWP9-l18Lfn1Bo1mJBM2I3dB4B0,3368839
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
@@ -66,7 +66,7 @@ nominal_api/storage_series_api/__init__.py,sha256=wq6d_C7M31wVt9CM-bw0DtOBfcrPyv
66
66
  nominal_api/storage_writer_api/__init__.py,sha256=a6EGXk7GgDraTFLYRdJTi4baAYtuRsEX7xrKQTYRydo,2587
67
67
  nominal_api/themes_api/__init__.py,sha256=ep1lghKFHuXCRbvHc4Qsa8O5h-Idr3n9aDTSuKEF4Nk,1341
68
68
  nominal_api/timeseries_archetype/__init__.py,sha256=sZdZCA3nTyv0rF4YHaAZTw4kglrNREcsYTMjjl85hWY,160
69
- nominal_api/timeseries_archetype_api/__init__.py,sha256=chjnzhDWGXCUUxU3hPF1z4kD1cJVYXgBCfxbadjCflw,2040
69
+ nominal_api/timeseries_archetype_api/__init__.py,sha256=xd51luqmUAPR5gn1vVWx6Kzw1EU6rzfit7iK8vYlkB8,2137
70
70
  nominal_api/timeseries_channelmetadata/__init__.py,sha256=K5rQ2FnPxUJJ-763HWInYu0tRfnOyf1V9H232SyliD4,166
71
71
  nominal_api/timeseries_channelmetadata_api/__init__.py,sha256=cnW4lnburn1z58pMO1inqf7DCqbxcTivQmEMCEtqtvQ,1086
72
72
  nominal_api/timeseries_logicalseries/__init__.py,sha256=8GyG6TLiwCUsfooVx8fotkILjCFwsqiDmy9LmSb-OrY,158
@@ -74,7 +74,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=BwdqHLq_98LOsRV14JA3
74
74
  nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
75
75
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
76
76
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
77
- nominal_api-0.741.0.dist-info/METADATA,sha256=2jTN7wQylNCBqWnvHzdI7DU8LUdjAI6Tuig2mINui_4,199
78
- nominal_api-0.741.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- nominal_api-0.741.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
80
- nominal_api-0.741.0.dist-info/RECORD,,
77
+ nominal_api-0.742.0.dist-info/METADATA,sha256=eO66XMYiBwGRNmibRFjHkbutRRxsn66BmeUgDAj36rA,199
78
+ nominal_api-0.742.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ nominal_api-0.742.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
80
+ nominal_api-0.742.0.dist-info/RECORD,,