superposition-sdk 0.92.0__py3-none-any.whl → 0.93.1__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 superposition-sdk might be problematic. Click here for more details.
- superposition_sdk/_private/schemas.py +726 -179
- superposition_sdk/deserialize.py +8 -7
- superposition_sdk/models.py +718 -816
- superposition_sdk/serialize.py +41 -35
- superposition_sdk-0.93.1.dist-info/METADATA +64 -0
- superposition_sdk-0.93.1.dist-info/RECORD +12 -0
- superposition_sdk-0.92.0.dist-info/METADATA +0 -31
- superposition_sdk-0.92.0.dist-info/RECORD +0 -12
- {superposition_sdk-0.92.0.dist-info → superposition_sdk-0.93.1.dist-info}/WHEEL +0 -0
superposition_sdk/deserialize.py
CHANGED
|
@@ -17,7 +17,6 @@ from .models import (
|
|
|
17
17
|
AddMembersToGroupOutput,
|
|
18
18
|
ApiError,
|
|
19
19
|
ApplicableVariantsOutput,
|
|
20
|
-
BulkOperationOut,
|
|
21
20
|
BulkOperationOutput,
|
|
22
21
|
ConcludeExperimentOutput,
|
|
23
22
|
CreateContextOutput,
|
|
@@ -154,7 +153,9 @@ async def _deserialize_bulk_operation(http_response: HTTPResponse, config: Confi
|
|
|
154
153
|
body = await http_response.consume_body_async()
|
|
155
154
|
if body:
|
|
156
155
|
codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS)
|
|
157
|
-
|
|
156
|
+
deserializer = codec.create_deserializer(body)
|
|
157
|
+
body_kwargs = BulkOperationOutput.deserialize_kwargs(deserializer)
|
|
158
|
+
kwargs.update(body_kwargs)
|
|
158
159
|
|
|
159
160
|
return BulkOperationOutput(**kwargs)
|
|
160
161
|
|
|
@@ -453,7 +454,7 @@ async def _deserialize_error_create_workspace(http_response: HTTPResponse, confi
|
|
|
453
454
|
return UnknownApiError(f"{code}: {message}")
|
|
454
455
|
|
|
455
456
|
async def _deserialize_delete_context(http_response: HTTPResponse, config: Config) -> DeleteContextOutput:
|
|
456
|
-
if http_response.status !=
|
|
457
|
+
if http_response.status != 204 and http_response.status >= 300:
|
|
457
458
|
raise await _deserialize_error_delete_context(http_response, config)
|
|
458
459
|
|
|
459
460
|
kwargs: dict[str, Any] = {}
|
|
@@ -474,7 +475,7 @@ async def _deserialize_error_delete_context(http_response: HTTPResponse, config:
|
|
|
474
475
|
return UnknownApiError(f"{code}: {message}")
|
|
475
476
|
|
|
476
477
|
async def _deserialize_delete_default_config(http_response: HTTPResponse, config: Config) -> DeleteDefaultConfigOutput:
|
|
477
|
-
if http_response.status !=
|
|
478
|
+
if http_response.status != 204 and http_response.status >= 300:
|
|
478
479
|
raise await _deserialize_error_delete_default_config(http_response, config)
|
|
479
480
|
|
|
480
481
|
kwargs: dict[str, Any] = {}
|
|
@@ -495,7 +496,7 @@ async def _deserialize_error_delete_default_config(http_response: HTTPResponse,
|
|
|
495
496
|
return UnknownApiError(f"{code}: {message}")
|
|
496
497
|
|
|
497
498
|
async def _deserialize_delete_dimension(http_response: HTTPResponse, config: Config) -> DeleteDimensionOutput:
|
|
498
|
-
if http_response.status !=
|
|
499
|
+
if http_response.status != 204 and http_response.status >= 300:
|
|
499
500
|
raise await _deserialize_error_delete_dimension(http_response, config)
|
|
500
501
|
|
|
501
502
|
kwargs: dict[str, Any] = {}
|
|
@@ -544,7 +545,7 @@ async def _deserialize_error_delete_experiment_group(http_response: HTTPResponse
|
|
|
544
545
|
return UnknownApiError(f"{code}: {message}")
|
|
545
546
|
|
|
546
547
|
async def _deserialize_delete_function(http_response: HTTPResponse, config: Config) -> DeleteFunctionOutput:
|
|
547
|
-
if http_response.status !=
|
|
548
|
+
if http_response.status != 204 and http_response.status >= 300:
|
|
548
549
|
raise await _deserialize_error_delete_function(http_response, config)
|
|
549
550
|
|
|
550
551
|
kwargs: dict[str, Any] = {}
|
|
@@ -593,7 +594,7 @@ async def _deserialize_error_delete_type_templates(http_response: HTTPResponse,
|
|
|
593
594
|
return UnknownApiError(f"{code}: {message}")
|
|
594
595
|
|
|
595
596
|
async def _deserialize_delete_webhook(http_response: HTTPResponse, config: Config) -> DeleteWebhookOutput:
|
|
596
|
-
if http_response.status !=
|
|
597
|
+
if http_response.status != 204 and http_response.status >= 300:
|
|
597
598
|
raise await _deserialize_error_delete_webhook(http_response, config)
|
|
598
599
|
|
|
599
600
|
kwargs: dict[str, Any] = {}
|