platform-api-python-client 3.2.4__py3-none-any.whl → 3.2.7__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.
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/3.2.4/python'
93
+ self.user_agent = 'OpenAPI-Generator/3.2.7/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -392,7 +392,7 @@ class Configuration:
392
392
  "OS: {env}\n"\
393
393
  "Python Version: {pyversion}\n"\
394
394
  "Version of the API: 0.1.0\n"\
395
- "SDK Package Version: 3.2.4".\
395
+ "SDK Package Version: 3.2.7".\
396
396
  format(env=sys.platform, pyversion=sys.version)
397
397
 
398
398
  def get_host_settings(self):
@@ -42,6 +42,7 @@ from platform_api_python_client.models.deployment_status_request import Deployme
42
42
  from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
43
43
  from platform_api_python_client.models.deployment_type import DeploymentType
44
44
  from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
45
+ from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse
45
46
  from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse
46
47
  from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse
47
48
  from platform_api_python_client.models.get_cluster_response import GetClusterResponse
@@ -64,9 +65,11 @@ from platform_api_python_client.models.list_payments_response import ListPayment
64
65
  from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
65
66
  from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
66
67
  from platform_api_python_client.models.metric import Metric
68
+ from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
67
69
  from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
68
70
  from platform_api_python_client.models.service_status import ServiceStatus
69
- from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest
71
+ from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
72
+ from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
70
73
  from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest
71
74
  from platform_api_python_client.models.user_vault_item import UserVaultItem
72
75
  from platform_api_python_client.models.user_vault_type import UserVaultType
@@ -17,20 +17,18 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictStr
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from platform_api_python_client.models.user_vault_type import UserVaultType
20
+ from pydantic import BaseModel, ConfigDict, StrictInt
21
+ from typing import Any, ClassVar, Dict, List
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
25
24
 
26
- class UserVaultItemInput(BaseModel):
25
+ class GetAutochargePreferencesResponse(BaseModel):
27
26
  """
28
- UserVaultItemInput
27
+ GetAutochargePreferencesResponse
29
28
  """ # noqa: E501
30
- type: UserVaultType
31
- key: StrictStr
32
- value: Optional[StrictStr] = None
33
- __properties: ClassVar[List[str]] = ["type", "key", "value"]
29
+ threshold_in_cents: StrictInt
30
+ amount_in_cents: StrictInt
31
+ __properties: ClassVar[List[str]] = ["threshold_in_cents", "amount_in_cents"]
34
32
 
35
33
  model_config = ConfigDict(
36
34
  populate_by_name=True,
@@ -50,7 +48,7 @@ class UserVaultItemInput(BaseModel):
50
48
 
51
49
  @classmethod
52
50
  def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of UserVaultItemInput from a JSON string"""
51
+ """Create an instance of GetAutochargePreferencesResponse from a JSON string"""
54
52
  return cls.from_dict(json.loads(json_str))
55
53
 
56
54
  def to_dict(self) -> Dict[str, Any]:
@@ -71,16 +69,11 @@ class UserVaultItemInput(BaseModel):
71
69
  exclude=excluded_fields,
72
70
  exclude_none=True,
73
71
  )
74
- # set to None if value (nullable) is None
75
- # and model_fields_set contains the field
76
- if self.value is None and "value" in self.model_fields_set:
77
- _dict['value'] = None
78
-
79
72
  return _dict
80
73
 
81
74
  @classmethod
82
75
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
- """Create an instance of UserVaultItemInput from a dict"""
76
+ """Create an instance of GetAutochargePreferencesResponse from a dict"""
84
77
  if obj is None:
85
78
  return None
86
79
 
@@ -88,9 +81,8 @@ class UserVaultItemInput(BaseModel):
88
81
  return cls.model_validate(obj)
89
82
 
90
83
  _obj = cls.model_validate({
91
- "type": obj.get("type"),
92
- "key": obj.get("key"),
93
- "value": obj.get("value")
84
+ "threshold_in_cents": obj.get("threshold_in_cents"),
85
+ "amount_in_cents": obj.get("amount_in_cents")
94
86
  })
95
87
  return _obj
96
88
 
@@ -17,20 +17,17 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictStr
20
+ from pydantic import BaseModel, ConfigDict
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from platform_api_python_client.models.user_vault_type import UserVaultType
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
25
24
 
26
- class UserVaultItemOutput(BaseModel):
25
+ class PaymentMethodResponse(BaseModel):
27
26
  """
28
- UserVaultItemOutput
27
+ PaymentMethodResponse
29
28
  """ # noqa: E501
30
- type: UserVaultType
31
- key: StrictStr
32
- value: Optional[StrictStr]
33
- __properties: ClassVar[List[str]] = ["type", "key", "value"]
29
+ result: Optional[Dict[str, Any]]
30
+ __properties: ClassVar[List[str]] = ["result"]
34
31
 
35
32
  model_config = ConfigDict(
36
33
  populate_by_name=True,
@@ -50,7 +47,7 @@ class UserVaultItemOutput(BaseModel):
50
47
 
51
48
  @classmethod
52
49
  def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of UserVaultItemOutput from a JSON string"""
50
+ """Create an instance of PaymentMethodResponse from a JSON string"""
54
51
  return cls.from_dict(json.loads(json_str))
55
52
 
56
53
  def to_dict(self) -> Dict[str, Any]:
@@ -71,16 +68,16 @@ class UserVaultItemOutput(BaseModel):
71
68
  exclude=excluded_fields,
72
69
  exclude_none=True,
73
70
  )
74
- # set to None if value (nullable) is None
71
+ # set to None if result (nullable) is None
75
72
  # and model_fields_set contains the field
76
- if self.value is None and "value" in self.model_fields_set:
77
- _dict['value'] = None
73
+ if self.result is None and "result" in self.model_fields_set:
74
+ _dict['result'] = None
78
75
 
79
76
  return _dict
80
77
 
81
78
  @classmethod
82
79
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
- """Create an instance of UserVaultItemOutput from a dict"""
80
+ """Create an instance of PaymentMethodResponse from a dict"""
84
81
  if obj is None:
85
82
  return None
86
83
 
@@ -88,9 +85,7 @@ class UserVaultItemOutput(BaseModel):
88
85
  return cls.model_validate(obj)
89
86
 
90
87
  _obj = cls.model_validate({
91
- "type": obj.get("type"),
92
- "key": obj.get("key"),
93
- "value": obj.get("value")
88
+ "result": obj.get("result")
94
89
  })
95
90
  return _obj
96
91
 
@@ -18,17 +18,17 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictInt
21
- from typing import Any, ClassVar, Dict, List, Optional
21
+ from typing import Any, ClassVar, Dict, List
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
- class UpdateAutopayRequest(BaseModel):
25
+ class UpdateAutochargePreferencesRequest(BaseModel):
26
26
  """
27
- UpdateAutopayRequest
27
+ UpdateAutochargePreferencesRequest
28
28
  """ # noqa: E501
29
- threshold: Optional[StrictInt] = None
30
- amount: Optional[StrictInt] = None
31
- __properties: ClassVar[List[str]] = ["threshold", "amount"]
29
+ threshold_in_cents: StrictInt
30
+ amount_in_cents: StrictInt
31
+ __properties: ClassVar[List[str]] = ["threshold_in_cents", "amount_in_cents"]
32
32
 
33
33
  model_config = ConfigDict(
34
34
  populate_by_name=True,
@@ -48,7 +48,7 @@ class UpdateAutopayRequest(BaseModel):
48
48
 
49
49
  @classmethod
50
50
  def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of UpdateAutopayRequest from a JSON string"""
51
+ """Create an instance of UpdateAutochargePreferencesRequest from a JSON string"""
52
52
  return cls.from_dict(json.loads(json_str))
53
53
 
54
54
  def to_dict(self) -> Dict[str, Any]:
@@ -69,21 +69,11 @@ class UpdateAutopayRequest(BaseModel):
69
69
  exclude=excluded_fields,
70
70
  exclude_none=True,
71
71
  )
72
- # set to None if threshold (nullable) is None
73
- # and model_fields_set contains the field
74
- if self.threshold is None and "threshold" in self.model_fields_set:
75
- _dict['threshold'] = None
76
-
77
- # set to None if amount (nullable) is None
78
- # and model_fields_set contains the field
79
- if self.amount is None and "amount" in self.model_fields_set:
80
- _dict['amount'] = None
81
-
82
72
  return _dict
83
73
 
84
74
  @classmethod
85
75
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
86
- """Create an instance of UpdateAutopayRequest from a dict"""
76
+ """Create an instance of UpdateAutochargePreferencesRequest from a dict"""
87
77
  if obj is None:
88
78
  return None
89
79
 
@@ -91,8 +81,8 @@ class UpdateAutopayRequest(BaseModel):
91
81
  return cls.model_validate(obj)
92
82
 
93
83
  _obj = cls.model_validate({
94
- "threshold": obj.get("threshold"),
95
- "amount": obj.get("amount")
84
+ "threshold_in_cents": obj.get("threshold_in_cents"),
85
+ "amount_in_cents": obj.get("amount_in_cents")
96
86
  })
97
87
  return _obj
98
88
 
@@ -17,19 +17,20 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
20
+ from datetime import datetime
21
+ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
21
22
  from typing import Any, ClassVar, Dict, List
22
23
  from typing import Optional, Set
23
24
  from typing_extensions import Self
24
25
 
25
- class CServeV2RecipeOutput(BaseModel):
26
+ class UpdateDeploymentResponse(BaseModel):
26
27
  """
27
- Inputs to start deployment
28
+ UpdateDeploymentResponse
28
29
  """ # noqa: E501
29
- model: StrictStr
30
- is_embedding_model: StrictBool
31
- additional_properties: Dict[str, Any] = {}
32
- __properties: ClassVar[List[str]] = ["model", "is_embedding_model"]
30
+ id: StrictInt
31
+ endpoint_url: StrictStr
32
+ updated_at: datetime
33
+ __properties: ClassVar[List[str]] = ["id", "endpoint_url", "updated_at"]
33
34
 
34
35
  model_config = ConfigDict(
35
36
  populate_by_name=True,
@@ -49,7 +50,7 @@ class CServeV2RecipeOutput(BaseModel):
49
50
 
50
51
  @classmethod
51
52
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of CServeV2RecipeOutput from a JSON string"""
53
+ """Create an instance of UpdateDeploymentResponse from a JSON string"""
53
54
  return cls.from_dict(json.loads(json_str))
54
55
 
55
56
  def to_dict(self) -> Dict[str, Any]:
@@ -61,10 +62,8 @@ class CServeV2RecipeOutput(BaseModel):
61
62
  * `None` is only added to the output dict for nullable fields that
62
63
  were set at model initialization. Other fields with value `None`
63
64
  are ignored.
64
- * Fields in `self.additional_properties` are added to the output dict.
65
65
  """
66
66
  excluded_fields: Set[str] = set([
67
- "additional_properties",
68
67
  ])
69
68
 
70
69
  _dict = self.model_dump(
@@ -72,16 +71,11 @@ class CServeV2RecipeOutput(BaseModel):
72
71
  exclude=excluded_fields,
73
72
  exclude_none=True,
74
73
  )
75
- # puts key-value pairs in additional_properties in the top level
76
- if self.additional_properties is not None:
77
- for _key, _value in self.additional_properties.items():
78
- _dict[_key] = _value
79
-
80
74
  return _dict
81
75
 
82
76
  @classmethod
83
77
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of CServeV2RecipeOutput from a dict"""
78
+ """Create an instance of UpdateDeploymentResponse from a dict"""
85
79
  if obj is None:
86
80
  return None
87
81
 
@@ -89,14 +83,10 @@ class CServeV2RecipeOutput(BaseModel):
89
83
  return cls.model_validate(obj)
90
84
 
91
85
  _obj = cls.model_validate({
92
- "model": obj.get("model"),
93
- "is_embedding_model": obj.get("is_embedding_model") if obj.get("is_embedding_model") is not None else False
86
+ "id": obj.get("id"),
87
+ "endpoint_url": obj.get("endpoint_url"),
88
+ "updated_at": obj.get("updated_at")
94
89
  })
95
- # store additional fields in additional_properties
96
- for _key in obj.keys():
97
- if _key not in cls.__properties:
98
- _obj.additional_properties[_key] = obj.get(_key)
99
-
100
90
  return _obj
101
91
 
102
92
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: platform-api-python-client
3
- Version: 3.2.4
3
+ Version: 3.2.7
4
4
  Summary: Platform External API
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,21 +1,19 @@
1
- platform_api_python_client/__init__.py,sha256=ex6yiJAIba54tzukjSpAEZzo6SE7GZPOpnj9zgfNBkI,6582
2
- platform_api_python_client/api_client.py,sha256=Ae8wyziUKjWshH31rPffVRqIN-rf4rUAGuAPQBtrWBI,27553
1
+ platform_api_python_client/__init__.py,sha256=-K7vNlclGmWsFbYKShZZ8u1Ms7_rlpJth-9K-CxjyEw,6916
2
+ platform_api_python_client/api_client.py,sha256=mn0n0Q3VqtVlbeuFdxcrpWWgOB426PQ_2d_rVf7yuFM,27553
3
3
  platform_api_python_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- platform_api_python_client/configuration.py,sha256=eQcB6eSmAMnJOWU0dr11zU6d-QsL7n_QBDiFDnFqAcM,15335
4
+ platform_api_python_client/configuration.py,sha256=joA0ky5K6bqcX-FM10OZkS7vebZJSvggsJV3YrH-7Fo,15335
5
5
  platform_api_python_client/exceptions.py,sha256=SgBMBmRBD5JyEJj5ZiSQRbiOs4IVPOFZMGKX_fhPd58,5986
6
6
  platform_api_python_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  platform_api_python_client/rest.py,sha256=U514C8b2RXn4u0w7VpOFXeSaArP6_wuMCf8-G5xCbyk,9438
8
8
  platform_api_python_client/api/__init__.py,sha256=8FSPlQzadbgpFR5KYbpbN0DgPRWqOZkfooMstj2XcHg,116
9
- platform_api_python_client/api/external_api.py,sha256=ynAafeBQUpwbS5qGpKFKMlHajBZotq_NN1BdYn-i1wU,376677
10
- platform_api_python_client/models/__init__.py,sha256=OHdFGr7YIgicCTVGufMEfe6MRLDeYhSWrjhJM40xI8M,5862
9
+ platform_api_python_client/api/external_api.py,sha256=wMng83ZuxewFtuCUVGpKCUYbmOTlrKz00R9B0xLHCgY,462184
10
+ platform_api_python_client/models/__init__.py,sha256=ff3ZR7XDZzOXkLLEBfabnFRhBpPuk_ug0kjPrLYEBbg,6196
11
11
  platform_api_python_client/models/api_key_request.py,sha256=p4bkyCVMkcyyx72ZQnfRMC65wwb2DT4qT6QKYaaO7rA,2482
12
12
  platform_api_python_client/models/api_key_response.py,sha256=7yr2p-Y_KAMZ9RomPR7AlOJK20RlZz4IZJHBKyrI3ww,2661
13
13
  platform_api_python_client/models/c_serve_recipe.py,sha256=UGwl5TCmMf0Y8jTVwcYQHXVjcQ12zR-q39Gmh9LkgpI,10057
14
14
  platform_api_python_client/models/c_serve_recipe_perf.py,sha256=x23e783A-Pj-2socL4mlN2RgjHPtbJB_fJYhVmn9z08,3262
15
15
  platform_api_python_client/models/c_serve_recipe_response.py,sha256=NUAnNbshCSnpru8e7AzSAGOQhJpj4BXSNT964oDBYa0,3584
16
16
  platform_api_python_client/models/c_serve_v2_recipe.py,sha256=ZBajJ9XMO-tn0d4i-7Nbm46T97Pl3_hY4riL8p6klOY,3315
17
- platform_api_python_client/models/c_serve_v2_recipe_input.py,sha256=lIuS_VI36ednyAG7wfN__KtGTZGjK63OFob7BBgupcM,3330
18
- platform_api_python_client/models/c_serve_v2_recipe_output.py,sha256=wmFpmIfI-qJ4OYGvhMZa2ZRGEk3LGhEuqMHu5gUa808,3305
19
17
  platform_api_python_client/models/create_c_serve_deployment_request.py,sha256=vmnfj72SUFtgXopbDMnm9ZKmiA12BdtlBZux9ZQj60I,4991
20
18
  platform_api_python_client/models/create_c_serve_deployment_response.py,sha256=0Fs9SH_oU-m64WdXuP0IzZ5GiahglWDdB85Avy42cA0,2768
21
19
  platform_api_python_client/models/create_c_serve_v2_deployment_request.py,sha256=UsO4zKMusO9cn8YXF8g10lXklbwcHnOyfNpgOLNQnTM,5008
@@ -38,6 +36,7 @@ platform_api_python_client/models/deployment_status_request.py,sha256=Is7Z-UWvRb
38
36
  platform_api_python_client/models/deployment_status_response.py,sha256=TOLlYuPu1hkjknhKyt0nuP95MrRed5tWOjb3qzgTVXM,3985
39
37
  platform_api_python_client/models/deployment_type.py,sha256=OS-BdNUdcX0mDxP4-UCuIPHBz-r51EZYVCwqUPNZAAg,995
40
38
  platform_api_python_client/models/deployment_usage_value.py,sha256=-_2hhTFc3mVf4sCgoEND5COVch3XcVWRyrsPVgoRXj8,2639
39
+ platform_api_python_client/models/get_autocharge_preferences_response.py,sha256=gEXqNLzn0cNeHdzBn8DJlVV8vyXaP0J4hD4P1n6qfO8,2723
41
40
  platform_api_python_client/models/get_c_serve_deployment_response.py,sha256=LUuLbfBHUO5BBXFEo-cC4BjB6VhWJjF2xU93LlUzNz8,12385
42
41
  platform_api_python_client/models/get_c_serve_v2_deployment_response.py,sha256=7Jh_FwTB0sETROyPiU00BUK9G8NlKX1r41PVB1qvzTE,5174
43
42
  platform_api_python_client/models/get_cluster_response.py,sha256=TKEn8XMDwz0_Jp2MzEYh1Q3wSrzLmydyDguNHOIGjkY,2909
@@ -60,17 +59,17 @@ platform_api_python_client/models/list_payments_response.py,sha256=1ssx56JJLvBeu
60
59
  platform_api_python_client/models/list_prebuilt_image_response.py,sha256=o7W89S1KPn74b4Hbeo6eRmQBqMqSMfytwOpogZ7o3Iw,3064
61
60
  platform_api_python_client/models/list_user_vault_items_response.py,sha256=7lQ1fBnERqv4mI_RcIBe42MDvYwon_LjRRFTzD-HsMQ,3036
62
61
  platform_api_python_client/models/metric.py,sha256=KpCH04PS3zvk6q3s9I8Qo5Ri291jaK67jw5E3vp-810,755
62
+ platform_api_python_client/models/payment_method_response.py,sha256=Zm_LxQhFxG9FukX74m0RhudP2Y1QnFQ3xDXF_1GG6SI,2743
63
63
  platform_api_python_client/models/prebuilt_image_response.py,sha256=dnvVsxrLNOpQhQgT8YePMwXmMx-8lEpImVK2oU4dsUk,3248
64
64
  platform_api_python_client/models/service_status.py,sha256=fyOw-Z-J5AS7hkss77Dl653JlqfEjfJUpvnjfhGPnrI,1130
65
- platform_api_python_client/models/update_autopay_request.py,sha256=uIHYejCBYbWB-zwmmlQSkVhKE3SWWx88olypxWbAs_0,3073
65
+ platform_api_python_client/models/update_autocharge_preferences_request.py,sha256=j16AyOPjixtgq64plIJynsnGQPWd7NfxWMEJaoVED0o,2731
66
+ platform_api_python_client/models/update_deployment_response.py,sha256=qRFg5IxpaIJrXA9bA2eG0zChgz_aYtTEZRm-D7K5Vw0,2744
66
67
  platform_api_python_client/models/user_support_email_request.py,sha256=ECQZSLRIw3drE6dFmA5P8iOf3EnsbCwvAvGoUwHU8GI,2725
67
68
  platform_api_python_client/models/user_vault_item.py,sha256=nsUcxGB-vb1yYCerHxyxvISPEVPPdeDudCFzysSGIIc,2922
68
- platform_api_python_client/models/user_vault_item_input.py,sha256=ZO0Fsrpb6RQRpSOvmQgLXyJs-MXnS2Y5ersq8sgjAcE,2942
69
- platform_api_python_client/models/user_vault_item_output.py,sha256=9Xc7spwP6qgiXo75ovqEONJbs-KmEqtWfH8J22VYwo0,2939
70
69
  platform_api_python_client/models/user_vault_type.py,sha256=95gT-RYNc3y9RJMiGpoGpGVR1AOfK_WE3dJGvKgUP9Y,844
71
70
  platform_api_python_client/models/validation_error.py,sha256=bAAvyr7kxTVi7Xo-A-7sY64959W_7PISLgJjWBc_Q3k,3122
72
71
  platform_api_python_client/models/validation_error_loc_inner.py,sha256=_ossVs2HphEeptkKNGz_38WRQBvVHRPg00bhnE6imfs,4899
73
- platform_api_python_client-3.2.4.dist-info/METADATA,sha256=v8txl2Xv_LhoN3ZOwbeiF6nz3C2W5QIyKMw12PSxA7I,694
74
- platform_api_python_client-3.2.4.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
75
- platform_api_python_client-3.2.4.dist-info/top_level.txt,sha256=yy_3qpZ0HjJKg8tednSa1a2fNj8p5CIw_sAR71ZZz2Q,27
76
- platform_api_python_client-3.2.4.dist-info/RECORD,,
72
+ platform_api_python_client-3.2.7.dist-info/METADATA,sha256=K1ZkMi5CUTILG2WrU71fCPgxDCfxhgjp4b-UFbnTd9c,694
73
+ platform_api_python_client-3.2.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
74
+ platform_api_python_client-3.2.7.dist-info/top_level.txt,sha256=yy_3qpZ0HjJKg8tednSa1a2fNj8p5CIw_sAR71ZZz2Q,27
75
+ platform_api_python_client-3.2.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.1.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,102 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Platform External API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from typing import Optional, Set
23
- from typing_extensions import Self
24
-
25
- class CServeV2RecipeInput(BaseModel):
26
- """
27
- Inputs to start deployment
28
- """ # noqa: E501
29
- model: StrictStr
30
- is_embedding_model: Optional[StrictBool] = False
31
- additional_properties: Dict[str, Any] = {}
32
- __properties: ClassVar[List[str]] = ["model", "is_embedding_model"]
33
-
34
- model_config = ConfigDict(
35
- populate_by_name=True,
36
- validate_assignment=True,
37
- protected_namespaces=(),
38
- )
39
-
40
-
41
- def to_str(self) -> str:
42
- """Returns the string representation of the model using alias"""
43
- return pprint.pformat(self.model_dump(by_alias=True))
44
-
45
- def to_json(self) -> str:
46
- """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
- return json.dumps(self.to_dict())
49
-
50
- @classmethod
51
- def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of CServeV2RecipeInput from a JSON string"""
53
- return cls.from_dict(json.loads(json_str))
54
-
55
- def to_dict(self) -> Dict[str, Any]:
56
- """Return the dictionary representation of the model using alias.
57
-
58
- This has the following differences from calling pydantic's
59
- `self.model_dump(by_alias=True)`:
60
-
61
- * `None` is only added to the output dict for nullable fields that
62
- were set at model initialization. Other fields with value `None`
63
- are ignored.
64
- * Fields in `self.additional_properties` are added to the output dict.
65
- """
66
- excluded_fields: Set[str] = set([
67
- "additional_properties",
68
- ])
69
-
70
- _dict = self.model_dump(
71
- by_alias=True,
72
- exclude=excluded_fields,
73
- exclude_none=True,
74
- )
75
- # puts key-value pairs in additional_properties in the top level
76
- if self.additional_properties is not None:
77
- for _key, _value in self.additional_properties.items():
78
- _dict[_key] = _value
79
-
80
- return _dict
81
-
82
- @classmethod
83
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of CServeV2RecipeInput from a dict"""
85
- if obj is None:
86
- return None
87
-
88
- if not isinstance(obj, dict):
89
- return cls.model_validate(obj)
90
-
91
- _obj = cls.model_validate({
92
- "model": obj.get("model"),
93
- "is_embedding_model": obj.get("is_embedding_model") if obj.get("is_embedding_model") is not None else False
94
- })
95
- # store additional fields in additional_properties
96
- for _key in obj.keys():
97
- if _key not in cls.__properties:
98
- _obj.additional_properties[_key] = obj.get(_key)
99
-
100
- return _obj
101
-
102
-