convexity-api-client 0.9.2.dev181__py3-none-any.whl → 0.9.3.dev182__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.
@@ -27,16 +27,16 @@ class ChartConfig:
27
27
 
28
28
  Attributes:
29
29
  id (str): Unique chart configuration identifier
30
- dataset_id (str): Dataset identifier
31
30
  type_ (Literal['chartconfig'] | Unset): Default: 'chartconfig'.
31
+ dataset_id (None | str | Unset): Dataset identifier
32
32
  title (None | str | Unset): Chart title
33
33
  config (AreaChartConfig | BarChartConfig | KpiChartConfig | LineChartConfig | None | PieChartConfig |
34
34
  ScatterChartConfig | TableChartConfig | Unset): Chart type-specific configuration
35
35
  """
36
36
 
37
37
  id: str
38
- dataset_id: str
39
38
  type_: Literal["chartconfig"] | Unset = "chartconfig"
39
+ dataset_id: None | str | Unset = UNSET
40
40
  title: None | str | Unset = UNSET
41
41
  config: (
42
42
  AreaChartConfig
@@ -62,10 +62,14 @@ class ChartConfig:
62
62
 
63
63
  id = self.id
64
64
 
65
- dataset_id = self.dataset_id
66
-
67
65
  type_ = self.type_
68
66
 
67
+ dataset_id: None | str | Unset
68
+ if isinstance(self.dataset_id, Unset):
69
+ dataset_id = UNSET
70
+ else:
71
+ dataset_id = self.dataset_id
72
+
69
73
  title: None | str | Unset
70
74
  if isinstance(self.title, Unset):
71
75
  title = UNSET
@@ -97,11 +101,12 @@ class ChartConfig:
97
101
  field_dict.update(
98
102
  {
99
103
  "id": id,
100
- "datasetId": dataset_id,
101
104
  }
102
105
  )
103
106
  if type_ is not UNSET:
104
107
  field_dict["type"] = type_
108
+ if dataset_id is not UNSET:
109
+ field_dict["datasetId"] = dataset_id
105
110
  if title is not UNSET:
106
111
  field_dict["title"] = title
107
112
  if config is not UNSET:
@@ -122,12 +127,19 @@ class ChartConfig:
122
127
  d = dict(src_dict)
123
128
  id = d.pop("id")
124
129
 
125
- dataset_id = d.pop("datasetId")
126
-
127
130
  type_ = cast(Literal["chartconfig"] | Unset, d.pop("type", UNSET))
128
131
  if type_ != "chartconfig" and not isinstance(type_, Unset):
129
132
  raise ValueError(f"type must match const 'chartconfig', got '{type_}'")
130
133
 
134
+ def _parse_dataset_id(data: object) -> None | str | Unset:
135
+ if data is None:
136
+ return data
137
+ if isinstance(data, Unset):
138
+ return data
139
+ return cast(None | str | Unset, data)
140
+
141
+ dataset_id = _parse_dataset_id(d.pop("datasetId", UNSET))
142
+
131
143
  def _parse_title(data: object) -> None | str | Unset:
132
144
  if data is None:
133
145
  return data
@@ -227,8 +239,8 @@ class ChartConfig:
227
239
 
228
240
  chart_config = cls(
229
241
  id=id,
230
- dataset_id=dataset_id,
231
242
  type_=type_,
243
+ dataset_id=dataset_id,
232
244
  title=title,
233
245
  config=config,
234
246
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: convexity_api_client
3
- Version: 0.9.2.dev181
3
+ Version: 0.9.3.dev182
4
4
  Summary: A client library for accessing Convexity API
5
5
  Requires-Dist: httpx>=0.23.0,<0.29.0
6
6
  Requires-Dist: attrs>=22.2.0
@@ -172,7 +172,7 @@ convexity_api_client/models/batch_delete_runs_response.py,sha256=yTS9f-PaHG97M_b
172
172
  convexity_api_client/models/cancel_run_response.py,sha256=dUKDMTyzM4rODRa5j6V3Jx_H1lCihUr07uCKHqzl2NU,1747
173
173
  convexity_api_client/models/cell_execution_status.py,sha256=tm5V1uY7T6WxEsb5qAlFnKn6poPVsH2Q1vKhwg6GkAk,214
174
174
  convexity_api_client/models/cell_type.py,sha256=SdgQUoySu928n9fpmI4tQAoEhgqlBIo-YiN0j7FgQLc,157
175
- convexity_api_client/models/chart_config.py,sha256=hCLWX2HtSgof3Y20RKqLvZSRIYWp4IuETeeui24WkpQ,8664
175
+ convexity_api_client/models/chart_config.py,sha256=6lQ-sm8lfDrFsPFAaUL_C0OgcBKYsCI8J2alHv3gv_8,9150
176
176
  convexity_api_client/models/chart_field.py,sha256=I8qTqMRol4UQnb-xHl2lAWNyoYkVexQfureHvA6HsLQ,8588
177
177
  convexity_api_client/models/chart_field_line_style_type_0.py,sha256=FcQp4vy6TLINOohA4KjHWCRe7LRyH3jIhXh7hVnB7gY,193
178
178
  convexity_api_client/models/chart_field_line_type_type_0.py,sha256=ylilj9t5BB8t744N_kUJ5cs2OCAyzptvLlamUQn_i3I,264
@@ -454,6 +454,6 @@ convexity_api_client/models/worker_task_status.py,sha256=X6Qlg2dXq-RXdOwW8hWFeDW
454
454
  convexity_api_client/models/worker_task_type.py,sha256=w8lyJQGPFrB57B9unxin61k7YoIls-jseMB_WbzBB14,315
455
455
  convexity_api_client/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
456
456
  convexity_api_client/types.py,sha256=0We4NPvhIYASRpQ3le41nmJeEAVm42-2VKdzlJ4Ogok,1343
457
- convexity_api_client-0.9.2.dev181.dist-info/WHEEL,sha256=mydTeHxOpFHo-DnYhAd_3ATePms-g4rrYvM7wJK8P-U,80
458
- convexity_api_client-0.9.2.dev181.dist-info/METADATA,sha256=dH8mq63M2ljYQyGtptV1T8J3Y7SXLyECLELaKxtuK5A,5267
459
- convexity_api_client-0.9.2.dev181.dist-info/RECORD,,
457
+ convexity_api_client-0.9.3.dev182.dist-info/WHEEL,sha256=mydTeHxOpFHo-DnYhAd_3ATePms-g4rrYvM7wJK8P-U,80
458
+ convexity_api_client-0.9.3.dev182.dist-info/METADATA,sha256=puA3l6As_mvT4XB9hs_VCtGwGEY7ftBf8HKtIRwLPAA,5267
459
+ convexity_api_client-0.9.3.dev182.dist-info/RECORD,,