platform-api-python-client 4.13.0__py3-none-any.whl → 4.20.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.
Files changed (63) hide show
  1. platform_api_python_client/__init__.py +45 -5
  2. platform_api_python_client/api/external_api.py +4676 -1655
  3. platform_api_python_client/api_client.py +1 -1
  4. platform_api_python_client/configuration.py +1 -1
  5. platform_api_python_client/models/__init__.py +44 -4
  6. platform_api_python_client/models/argo_rollouts.py +89 -0
  7. platform_api_python_client/models/cert_manager.py +89 -0
  8. platform_api_python_client/models/cloud_provider.py +39 -0
  9. platform_api_python_client/models/cluster_components.py +193 -0
  10. platform_api_python_client/models/cluster_config.py +91 -0
  11. platform_api_python_client/models/cluster_credential.py +91 -0
  12. platform_api_python_client/models/cluster_registration_request.py +110 -0
  13. platform_api_python_client/models/{create_url_response.py → cluster_registration_response.py} +8 -9
  14. platform_api_python_client/models/create_block_volume_request.py +108 -0
  15. platform_api_python_client/models/create_c_serve_v3_deployment_request.py +3 -1
  16. platform_api_python_client/models/create_compute_deployment_request.py +14 -3
  17. platform_api_python_client/models/create_compute_deployment_response.py +3 -10
  18. platform_api_python_client/models/create_hardware_instance_request.py +103 -0
  19. platform_api_python_client/models/create_inference_v3_deployment_request.py +4 -2
  20. platform_api_python_client/models/create_job_deployment_request.py +15 -2
  21. platform_api_python_client/models/create_object_volume_request.py +136 -0
  22. platform_api_python_client/models/create_service_account_request.py +97 -0
  23. platform_api_python_client/models/create_service_account_response.py +120 -0
  24. platform_api_python_client/models/create_volume_request.py +140 -0
  25. platform_api_python_client/models/external_dns.py +89 -0
  26. platform_api_python_client/models/final_stack.py +89 -0
  27. platform_api_python_client/models/fluent_bit.py +89 -0
  28. platform_api_python_client/models/{create_url_request.py → generate_service_account_secret_response.py} +7 -9
  29. platform_api_python_client/models/get_block_volume_response.py +113 -0
  30. platform_api_python_client/models/get_compute_deployment_response.py +12 -1
  31. platform_api_python_client/models/get_job_deployment_response.py +13 -2
  32. platform_api_python_client/models/get_object_volume_response.py +141 -0
  33. platform_api_python_client/models/get_volume_response.py +140 -0
  34. platform_api_python_client/models/gpu_operator.py +89 -0
  35. platform_api_python_client/models/ingress_nginx.py +89 -0
  36. platform_api_python_client/models/istio.py +98 -0
  37. platform_api_python_client/models/istio_cni_overrides.py +99 -0
  38. platform_api_python_client/models/istio_cni_subchart_overrides.py +96 -0
  39. platform_api_python_client/models/istio_overrides.py +96 -0
  40. platform_api_python_client/models/keda.py +89 -0
  41. platform_api_python_client/models/kube_prometheus_stack.py +89 -0
  42. platform_api_python_client/models/list_service_accounts_response.py +95 -0
  43. platform_api_python_client/models/list_volumes_response.py +95 -0
  44. platform_api_python_client/models/longhorn.py +89 -0
  45. platform_api_python_client/models/metrics_config.py +1 -1
  46. platform_api_python_client/models/metrics_server.py +89 -0
  47. platform_api_python_client/models/network_operator.py +89 -0
  48. platform_api_python_client/models/object_storage_provider.py +36 -0
  49. platform_api_python_client/models/opentelemetry_collector.py +89 -0
  50. platform_api_python_client/models/prometheus_adapter.py +89 -0
  51. platform_api_python_client/models/service_account_response.py +118 -0
  52. platform_api_python_client/models/spire.py +89 -0
  53. platform_api_python_client/models/spire_crds.py +89 -0
  54. platform_api_python_client/models/teleport_kube_agent.py +89 -0
  55. platform_api_python_client/models/update_service_account_request.py +107 -0
  56. platform_api_python_client/models/volume_access_mode.py +37 -0
  57. platform_api_python_client/models/volume_status.py +37 -0
  58. {platform_api_python_client-4.13.0.dist-info → platform_api_python_client-4.20.0.dist-info}/METADATA +1 -1
  59. {platform_api_python_client-4.13.0.dist-info → platform_api_python_client-4.20.0.dist-info}/RECORD +61 -21
  60. {platform_api_python_client-4.13.0.dist-info → platform_api_python_client-4.20.0.dist-info}/WHEEL +1 -1
  61. platform_api_python_client/models/create_c_serve_v2_deployment_request.py +0 -160
  62. platform_api_python_client/models/create_inference_deployment_request.py +0 -163
  63. {platform_api_python_client-4.13.0.dist-info → platform_api_python_client-4.20.0.dist-info}/top_level.txt +0 -0
@@ -1,163 +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, Field, StrictInt, StrictStr, field_validator
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from typing_extensions import Annotated
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class CreateInferenceDeploymentRequest(BaseModel):
27
- """
28
- CreateInferenceDeploymentRequest
29
- """ # noqa: E501
30
- name: Annotated[str, Field(min_length=1, strict=True, max_length=20)]
31
- cluster_id: StrictInt
32
- hardware_instance_id: StrictInt
33
- user_annotations: Optional[Dict[str, StrictStr]] = None
34
- image_url: StrictStr
35
- port: StrictInt
36
- min_scale: StrictInt
37
- max_scale: StrictInt
38
- initial_scale: Optional[StrictInt] = None
39
- concurrency: Optional[StrictInt] = None
40
- healthcheck: Optional[StrictStr] = None
41
- env_vars: Optional[Dict[str, StrictStr]] = None
42
- command: Optional[StrictStr] = None
43
- endpoint_bearer_token: Optional[StrictStr] = None
44
- endpoint_certificate_authority: Optional[StrictStr] = None
45
- __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "image_url", "port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority"]
46
-
47
- @field_validator('name')
48
- def name_validate_regular_expression(cls, value):
49
- """Validates the regular expression"""
50
- if not re.match(r"^[a-z][a-z0-9-]*$", value):
51
- raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
52
- return value
53
-
54
- model_config = ConfigDict(
55
- populate_by_name=True,
56
- validate_assignment=True,
57
- protected_namespaces=(),
58
- )
59
-
60
-
61
- def to_str(self) -> str:
62
- """Returns the string representation of the model using alias"""
63
- return pprint.pformat(self.model_dump(by_alias=True))
64
-
65
- def to_json(self) -> str:
66
- """Returns the JSON representation of the model using alias"""
67
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
68
- return json.dumps(self.to_dict())
69
-
70
- @classmethod
71
- def from_json(cls, json_str: str) -> Optional[Self]:
72
- """Create an instance of CreateInferenceDeploymentRequest from a JSON string"""
73
- return cls.from_dict(json.loads(json_str))
74
-
75
- def to_dict(self) -> Dict[str, Any]:
76
- """Return the dictionary representation of the model using alias.
77
-
78
- This has the following differences from calling pydantic's
79
- `self.model_dump(by_alias=True)`:
80
-
81
- * `None` is only added to the output dict for nullable fields that
82
- were set at model initialization. Other fields with value `None`
83
- are ignored.
84
- """
85
- excluded_fields: Set[str] = set([
86
- ])
87
-
88
- _dict = self.model_dump(
89
- by_alias=True,
90
- exclude=excluded_fields,
91
- exclude_none=True,
92
- )
93
- # set to None if user_annotations (nullable) is None
94
- # and model_fields_set contains the field
95
- if self.user_annotations is None and "user_annotations" in self.model_fields_set:
96
- _dict['user_annotations'] = None
97
-
98
- # set to None if initial_scale (nullable) is None
99
- # and model_fields_set contains the field
100
- if self.initial_scale is None and "initial_scale" in self.model_fields_set:
101
- _dict['initial_scale'] = None
102
-
103
- # set to None if concurrency (nullable) is None
104
- # and model_fields_set contains the field
105
- if self.concurrency is None and "concurrency" in self.model_fields_set:
106
- _dict['concurrency'] = None
107
-
108
- # set to None if healthcheck (nullable) is None
109
- # and model_fields_set contains the field
110
- if self.healthcheck is None and "healthcheck" in self.model_fields_set:
111
- _dict['healthcheck'] = None
112
-
113
- # set to None if env_vars (nullable) is None
114
- # and model_fields_set contains the field
115
- if self.env_vars is None and "env_vars" in self.model_fields_set:
116
- _dict['env_vars'] = None
117
-
118
- # set to None if command (nullable) is None
119
- # and model_fields_set contains the field
120
- if self.command is None and "command" in self.model_fields_set:
121
- _dict['command'] = None
122
-
123
- # set to None if endpoint_bearer_token (nullable) is None
124
- # and model_fields_set contains the field
125
- if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
126
- _dict['endpoint_bearer_token'] = None
127
-
128
- # set to None if endpoint_certificate_authority (nullable) is None
129
- # and model_fields_set contains the field
130
- if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
131
- _dict['endpoint_certificate_authority'] = None
132
-
133
- return _dict
134
-
135
- @classmethod
136
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
137
- """Create an instance of CreateInferenceDeploymentRequest from a dict"""
138
- if obj is None:
139
- return None
140
-
141
- if not isinstance(obj, dict):
142
- return cls.model_validate(obj)
143
-
144
- _obj = cls.model_validate({
145
- "name": obj.get("name"),
146
- "cluster_id": obj.get("cluster_id"),
147
- "hardware_instance_id": obj.get("hardware_instance_id"),
148
- "user_annotations": obj.get("user_annotations"),
149
- "image_url": obj.get("image_url"),
150
- "port": obj.get("port"),
151
- "min_scale": obj.get("min_scale"),
152
- "max_scale": obj.get("max_scale"),
153
- "initial_scale": obj.get("initial_scale"),
154
- "concurrency": obj.get("concurrency"),
155
- "healthcheck": obj.get("healthcheck"),
156
- "env_vars": obj.get("env_vars"),
157
- "command": obj.get("command"),
158
- "endpoint_bearer_token": obj.get("endpoint_bearer_token"),
159
- "endpoint_certificate_authority": obj.get("endpoint_certificate_authority")
160
- })
161
- return _obj
162
-
163
-