gcore 0.10.0__py3-none-any.whl → 0.12.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.

Potentially problematic release.


This version of gcore might be problematic. Click here for more details.

Files changed (320) hide show
  1. gcore/_base_client.py +3 -3
  2. gcore/_client.py +18 -0
  3. gcore/_compat.py +48 -48
  4. gcore/_models.py +41 -41
  5. gcore/_types.py +35 -1
  6. gcore/_utils/__init__.py +9 -2
  7. gcore/_utils/_compat.py +45 -0
  8. gcore/_utils/_datetime_parse.py +136 -0
  9. gcore/_utils/_transform.py +11 -1
  10. gcore/_utils/_typing.py +6 -1
  11. gcore/_utils/_utils.py +0 -1
  12. gcore/_version.py +1 -1
  13. gcore/resources/__init__.py +28 -0
  14. gcore/resources/cloud/__init__.py +14 -0
  15. gcore/resources/cloud/audit_logs.py +3 -3
  16. gcore/resources/cloud/baremetal/images.py +3 -4
  17. gcore/resources/cloud/baremetal/servers.py +16 -4
  18. gcore/resources/cloud/cloud.py +32 -0
  19. gcore/resources/cloud/cost_reports.py +24 -16
  20. gcore/resources/cloud/file_shares/access_rules.py +2 -2
  21. gcore/resources/cloud/file_shares/file_shares.py +30 -14
  22. gcore/resources/cloud/floating_ips.py +196 -4
  23. gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +1 -1
  24. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +166 -190
  25. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +268 -12
  26. gcore/resources/cloud/inference/__init__.py +14 -14
  27. gcore/resources/cloud/inference/applications/__init__.py +47 -0
  28. gcore/resources/cloud/inference/applications/applications.py +134 -0
  29. gcore/resources/cloud/inference/applications/deployments.py +649 -0
  30. gcore/resources/cloud/inference/applications/templates.py +238 -0
  31. gcore/resources/cloud/inference/deployments/deployments.py +41 -22
  32. gcore/resources/cloud/inference/inference.py +32 -32
  33. gcore/resources/cloud/inference/registry_credentials.py +8 -9
  34. gcore/resources/cloud/instances/images.py +4 -4
  35. gcore/resources/cloud/instances/instances.py +254 -4
  36. gcore/resources/cloud/instances/interfaces.py +544 -0
  37. gcore/resources/cloud/k8s/__init__.py +47 -0
  38. gcore/resources/cloud/k8s/clusters/__init__.py +47 -0
  39. gcore/resources/cloud/k8s/clusters/clusters.py +1391 -0
  40. gcore/resources/cloud/k8s/clusters/nodes.py +291 -0
  41. gcore/resources/cloud/k8s/clusters/pools/__init__.py +33 -0
  42. gcore/resources/cloud/k8s/clusters/pools/nodes.py +303 -0
  43. gcore/resources/cloud/k8s/clusters/pools/pools.py +870 -0
  44. gcore/resources/cloud/k8s/flavors.py +209 -0
  45. gcore/resources/cloud/k8s/k8s.py +233 -0
  46. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +11 -12
  47. gcore/resources/cloud/load_balancers/l7_policies/rules.py +9 -10
  48. gcore/resources/cloud/load_balancers/listeners.py +18 -18
  49. gcore/resources/cloud/load_balancers/load_balancers.py +4 -4
  50. gcore/resources/cloud/load_balancers/pools/health_monitors.py +18 -6
  51. gcore/resources/cloud/load_balancers/pools/members.py +32 -2
  52. gcore/resources/cloud/load_balancers/pools/pools.py +32 -8
  53. gcore/resources/cloud/networks/networks.py +192 -4
  54. gcore/resources/cloud/networks/subnets.py +140 -8
  55. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +608 -0
  56. gcore/resources/cloud/reserved_fixed_ips/vip.py +5 -7
  57. gcore/resources/cloud/security_groups/security_groups.py +6 -6
  58. gcore/resources/cloud/tasks.py +46 -46
  59. gcore/resources/cloud/users/role_assignments.py +5 -4
  60. gcore/resources/cloud/volumes.py +1125 -223
  61. gcore/resources/dns/__init__.py +75 -0
  62. gcore/resources/dns/dns.py +374 -0
  63. gcore/resources/dns/locations.py +288 -0
  64. gcore/resources/dns/metrics.py +214 -0
  65. gcore/resources/dns/pickers/__init__.py +33 -0
  66. gcore/resources/dns/pickers/pickers.py +167 -0
  67. gcore/resources/dns/pickers/presets.py +135 -0
  68. gcore/resources/dns/zones/__init__.py +47 -0
  69. gcore/resources/{cloud/inference/models.py → dns/zones/dnssec.py} +80 -122
  70. gcore/resources/dns/zones/rrsets.py +1005 -0
  71. gcore/resources/dns/zones/zones.py +1493 -0
  72. gcore/resources/storage/__init__.py +75 -0
  73. gcore/resources/storage/buckets/__init__.py +61 -0
  74. gcore/resources/storage/buckets/buckets.py +470 -0
  75. gcore/resources/storage/buckets/cors.py +265 -0
  76. gcore/resources/storage/buckets/lifecycle.py +276 -0
  77. gcore/resources/storage/buckets/policy.py +345 -0
  78. gcore/resources/storage/credentials.py +221 -0
  79. gcore/resources/storage/locations.py +190 -0
  80. gcore/resources/storage/statistics.py +364 -0
  81. gcore/resources/storage/storage.py +1046 -0
  82. gcore/resources/streaming/ai_tasks.py +56 -70
  83. gcore/resources/streaming/playlists.py +18 -18
  84. gcore/resources/streaming/quality_sets.py +8 -8
  85. gcore/resources/streaming/statistics.py +4 -122
  86. gcore/resources/streaming/streams/overlays.py +6 -6
  87. gcore/resources/streaming/streams/streams.py +40 -64
  88. gcore/resources/streaming/videos/subtitles.py +32 -30
  89. gcore/resources/streaming/videos/videos.py +78 -72
  90. gcore/resources/waap/domains/advanced_rules.py +2 -2
  91. gcore/resources/waap/domains/api_paths.py +13 -13
  92. gcore/resources/waap/domains/custom_rules.py +2 -2
  93. gcore/resources/waap/domains/domains.py +4 -4
  94. gcore/resources/waap/domains/firewall_rules.py +2 -2
  95. gcore/resources/waap/domains/insight_silences.py +6 -6
  96. gcore/resources/waap/domains/insights.py +7 -7
  97. gcore/resources/waap/domains/statistics.py +47 -47
  98. gcore/types/cloud/__init__.py +2 -4
  99. gcore/types/cloud/audit_log_list_params.py +2 -1
  100. gcore/types/cloud/baremetal/image_list_params.py +3 -2
  101. gcore/types/cloud/baremetal/server_create_params.py +8 -6
  102. gcore/types/cloud/baremetal/server_list_params.py +3 -2
  103. gcore/types/cloud/baremetal/server_rebuild_params.py +2 -0
  104. gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +35 -31
  105. gcore/types/cloud/cost_report_get_aggregated_params.py +26 -25
  106. gcore/types/cloud/cost_report_get_detailed_params.py +26 -25
  107. gcore/types/cloud/ddos_profile.py +13 -7
  108. gcore/types/cloud/ddos_profile_field.py +21 -8
  109. gcore/types/cloud/ddos_profile_option_list.py +7 -6
  110. gcore/types/cloud/ddos_profile_status.py +2 -2
  111. gcore/types/cloud/ddos_profile_template.py +7 -3
  112. gcore/types/cloud/ddos_profile_template_field.py +12 -3
  113. gcore/types/cloud/file_share.py +2 -2
  114. gcore/types/cloud/file_share_create_params.py +12 -6
  115. gcore/types/cloud/floating_ip_list_params.py +3 -2
  116. gcore/types/cloud/gpu_baremetal_cluster.py +101 -74
  117. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +76 -93
  118. gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +17 -10
  119. gcore/types/cloud/gpu_baremetal_cluster_list_params.py +14 -3
  120. gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +4 -2
  121. gcore/types/cloud/gpu_baremetal_clusters/__init__.py +6 -0
  122. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +74 -0
  123. gcore/types/cloud/{gpu_baremetal_cluster_server.py → gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1.py} +10 -10
  124. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1_list.py +16 -0
  125. gcore/types/cloud/{gpu_baremetal_flavor.py → gpu_baremetal_clusters/gpu_baremetal_flavor.py} +1 -1
  126. gcore/types/cloud/{gpu_baremetal_flavor_list.py → gpu_baremetal_clusters/gpu_baremetal_flavor_list.py} +1 -1
  127. gcore/types/cloud/gpu_baremetal_clusters/server_list_params.py +75 -0
  128. gcore/types/cloud/inference/__init__.py +0 -5
  129. gcore/types/cloud/inference/applications/__init__.py +12 -0
  130. gcore/types/cloud/inference/applications/deployment_create_params.py +68 -0
  131. gcore/types/cloud/inference/applications/deployment_patch_params.py +62 -0
  132. gcore/types/cloud/inference/applications/inference_application_deployment.py +111 -0
  133. gcore/types/cloud/inference/applications/inference_application_deployment_list.py +16 -0
  134. gcore/types/cloud/inference/applications/inference_application_template.py +94 -0
  135. gcore/types/cloud/inference/applications/inference_application_template_list.py +16 -0
  136. gcore/types/cloud/inference/deployment_create_params.py +7 -6
  137. gcore/types/cloud/inference/deployment_update_params.py +7 -6
  138. gcore/types/cloud/instance_assign_security_group_params.py +4 -2
  139. gcore/types/cloud/instance_list_params.py +3 -2
  140. gcore/types/cloud/instance_unassign_security_group_params.py +4 -2
  141. gcore/types/cloud/instances/image_list_params.py +3 -2
  142. gcore/types/cloud/k8s/__init__.py +13 -0
  143. gcore/types/cloud/k8s/cluster_create_params.py +299 -0
  144. gcore/types/cloud/k8s/cluster_delete_params.py +16 -0
  145. gcore/types/cloud/k8s/cluster_update_params.py +203 -0
  146. gcore/types/cloud/k8s/cluster_upgrade_params.py +16 -0
  147. gcore/types/cloud/k8s/clusters/__init__.py +10 -0
  148. gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +66 -0
  149. gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +16 -0
  150. gcore/types/cloud/k8s/clusters/node_list_params.py +16 -0
  151. gcore/types/cloud/k8s/clusters/pool_create_params.py +53 -0
  152. gcore/types/cloud/k8s/clusters/pool_resize_params.py +18 -0
  153. gcore/types/cloud/k8s/clusters/pool_update_params.py +34 -0
  154. gcore/types/cloud/k8s/clusters/pools/__init__.py +5 -0
  155. gcore/types/cloud/k8s/clusters/pools/node_list_params.py +18 -0
  156. gcore/types/cloud/k8s/flavor_list_params.py +19 -0
  157. gcore/types/cloud/k8s/k8s_cluster.py +209 -0
  158. gcore/types/cloud/k8s/k8s_cluster_certificate.py +13 -0
  159. gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +19 -0
  160. gcore/types/cloud/k8s/k8s_cluster_list.py +16 -0
  161. gcore/types/cloud/k8s_cluster_version.py +10 -0
  162. gcore/types/cloud/{gpu_baremetal_cluster_server_list.py → k8s_cluster_version_list.py} +4 -4
  163. gcore/types/cloud/load_balancer_create_params.py +23 -4
  164. gcore/types/cloud/load_balancer_list_params.py +3 -2
  165. gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +3 -2
  166. gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +3 -2
  167. gcore/types/cloud/load_balancers/l7_policy_create_params.py +3 -2
  168. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +3 -2
  169. gcore/types/cloud/load_balancers/listener_create_params.py +4 -3
  170. gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
  171. gcore/types/cloud/load_balancers/pool_create_params.py +19 -1
  172. gcore/types/cloud/load_balancers/pool_update_params.py +19 -1
  173. gcore/types/cloud/load_balancers/pools/member_add_params.py +19 -1
  174. gcore/types/cloud/member.py +19 -1
  175. gcore/types/cloud/network_list_params.py +3 -2
  176. gcore/types/cloud/networks/subnet_create_params.py +3 -2
  177. gcore/types/cloud/networks/subnet_list_params.py +3 -2
  178. gcore/types/cloud/networks/subnet_update_params.py +3 -2
  179. gcore/types/cloud/project.py +9 -9
  180. gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +3 -2
  181. gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +3 -2
  182. gcore/types/cloud/security_group_create_params.py +4 -2
  183. gcore/types/cloud/security_group_list_params.py +3 -2
  184. gcore/types/cloud/task_id_list.py +8 -1
  185. gcore/types/cloud/task_list_params.py +23 -23
  186. gcore/types/cloud/usage_report_get_params.py +26 -25
  187. gcore/types/cloud/users/role_assignment.py +2 -1
  188. gcore/types/cloud/users/role_assignment_create_params.py +4 -2
  189. gcore/types/cloud/users/role_assignment_update_params.py +4 -2
  190. gcore/types/cloud/volume_list_params.py +3 -2
  191. gcore/types/dns/__init__.py +31 -0
  192. gcore/types/dns/dns_get_account_overview_response.py +21 -0
  193. gcore/types/dns/dns_label_name.py +13 -0
  194. gcore/types/dns/dns_location_translations.py +11 -0
  195. gcore/types/dns/dns_lookup_params.py +15 -0
  196. gcore/types/dns/dns_lookup_response.py +21 -0
  197. gcore/types/dns/dns_name_server.py +17 -0
  198. gcore/types/dns/location_list_continents_response.py +10 -0
  199. gcore/types/dns/location_list_countries_response.py +10 -0
  200. gcore/types/dns/location_list_regions_response.py +10 -0
  201. gcore/types/dns/location_list_response.py +16 -0
  202. gcore/types/dns/metric_list_params.py +24 -0
  203. gcore/types/dns/metric_list_response.py +7 -0
  204. gcore/types/dns/picker_list_response.py +10 -0
  205. gcore/types/dns/pickers/__init__.py +5 -0
  206. gcore/types/dns/pickers/preset_list_response.py +10 -0
  207. gcore/types/dns/zone_check_delegation_status_response.py +20 -0
  208. gcore/types/dns/zone_create_params.py +59 -0
  209. gcore/types/dns/zone_create_response.py +13 -0
  210. gcore/types/dns/zone_export_response.py +11 -0
  211. gcore/types/dns/zone_get_response.py +106 -0
  212. gcore/types/dns/zone_get_statistics_params.py +43 -0
  213. gcore/types/dns/zone_get_statistics_response.py +19 -0
  214. gcore/types/dns/zone_import_params.py +32 -0
  215. gcore/types/dns/zone_import_response.py +26 -0
  216. gcore/types/dns/zone_list_params.py +57 -0
  217. gcore/types/dns/zone_list_response.py +105 -0
  218. gcore/types/dns/zone_replace_params.py +61 -0
  219. gcore/types/dns/zones/__init__.py +15 -0
  220. gcore/types/dns/zones/dns_failover_log.py +19 -0
  221. gcore/types/dns/zones/dns_output_rrset.py +123 -0
  222. gcore/types/dns/zones/dnssec_get_response.py +38 -0
  223. gcore/types/dns/zones/dnssec_update_params.py +11 -0
  224. gcore/types/dns/zones/dnssec_update_response.py +38 -0
  225. gcore/types/dns/zones/rrset_create_params.py +82 -0
  226. gcore/types/dns/zones/rrset_get_failover_logs_params.py +21 -0
  227. gcore/types/dns/zones/rrset_get_failover_logs_response.py +15 -0
  228. gcore/types/dns/zones/rrset_list_params.py +21 -0
  229. gcore/types/dns/zones/rrset_list_response.py +14 -0
  230. gcore/types/dns/zones/rrset_replace_params.py +82 -0
  231. gcore/types/security/client_profile.py +1 -1
  232. gcore/types/security/profile_create_params.py +2 -2
  233. gcore/types/security/profile_recreate_params.py +2 -2
  234. gcore/types/security/profile_replace_params.py +2 -2
  235. gcore/types/storage/__init__.py +21 -0
  236. gcore/types/storage/bucket.py +15 -0
  237. gcore/types/storage/bucket_list_params.py +15 -0
  238. gcore/types/storage/buckets/__init__.py +9 -0
  239. gcore/types/storage/buckets/bucket_cors.py +18 -0
  240. gcore/types/storage/buckets/bucket_policy.py +7 -0
  241. gcore/types/storage/buckets/cor_create_params.py +17 -0
  242. gcore/types/storage/buckets/lifecycle_create_params.py +18 -0
  243. gcore/types/storage/buckets/policy_get_response.py +7 -0
  244. gcore/types/storage/credential_recreate_params.py +36 -0
  245. gcore/types/storage/location.py +24 -0
  246. gcore/types/storage/location_list_params.py +13 -0
  247. gcore/types/storage/statistic_get_usage_aggregated_params.py +24 -0
  248. gcore/types/storage/statistic_get_usage_series_params.py +38 -0
  249. gcore/types/storage/statistic_get_usage_series_response.py +12 -0
  250. gcore/types/storage/storage.py +101 -0
  251. gcore/types/storage/storage_create_params.py +44 -0
  252. gcore/types/storage/storage_list_params.py +39 -0
  253. gcore/types/storage/storage_restore_params.py +11 -0
  254. gcore/types/storage/storage_update_params.py +18 -0
  255. gcore/types/storage/usage_series.py +201 -0
  256. gcore/types/storage/usage_total.py +54 -0
  257. gcore/types/streaming/__init__.py +0 -4
  258. gcore/types/streaming/ai_contentmoderation_hardnudity.py +1 -1
  259. gcore/types/streaming/ai_contentmoderation_nsfw.py +1 -1
  260. gcore/types/streaming/ai_contentmoderation_softnudity.py +1 -1
  261. gcore/types/streaming/ai_contentmoderation_sport.py +1 -1
  262. gcore/types/streaming/ai_task.py +1 -5
  263. gcore/types/streaming/ai_task_create_params.py +2 -2
  264. gcore/types/streaming/ai_task_get_response.py +0 -46
  265. gcore/types/streaming/clip.py +2 -1
  266. gcore/types/streaming/create_video_param.py +13 -12
  267. gcore/types/streaming/max_stream_series.py +5 -5
  268. gcore/types/streaming/playlist.py +1 -1
  269. gcore/types/streaming/playlist_create_params.py +1 -1
  270. gcore/types/streaming/playlist_update_params.py +1 -1
  271. gcore/types/streaming/playlist_video.py +13 -12
  272. gcore/types/streaming/storage_series.py +5 -5
  273. gcore/types/streaming/stream.py +86 -49
  274. gcore/types/streaming/stream_create_clip_params.py +2 -1
  275. gcore/types/streaming/stream_create_params.py +9 -23
  276. gcore/types/streaming/stream_series.py +5 -5
  277. gcore/types/streaming/stream_update_params.py +9 -23
  278. gcore/types/streaming/video.py +53 -42
  279. gcore/types/streaming/video_update_params.py +13 -12
  280. gcore/types/streaming/vod_statistics_series.py +5 -5
  281. gcore/types/streaming/vod_total_stream_duration_series.py +3 -3
  282. gcore/types/waap/domain_list_params.py +1 -1
  283. gcore/types/waap/domain_update_params.py +1 -1
  284. gcore/types/waap/domains/advanced_rule_create_params.py +7 -4
  285. gcore/types/waap/domains/advanced_rule_update_params.py +6 -3
  286. gcore/types/waap/domains/api_path_create_params.py +4 -3
  287. gcore/types/waap/domains/api_path_list_params.py +3 -1
  288. gcore/types/waap/domains/api_path_update_params.py +5 -4
  289. gcore/types/waap/domains/custom_rule_create_params.py +13 -14
  290. gcore/types/waap/domains/custom_rule_update_params.py +12 -13
  291. gcore/types/waap/domains/firewall_rule_create_params.py +3 -2
  292. gcore/types/waap/domains/firewall_rule_update_params.py +2 -1
  293. gcore/types/waap/domains/insight_list_params.py +4 -2
  294. gcore/types/waap/domains/insight_replace_params.py +1 -1
  295. gcore/types/waap/domains/insight_silence_list_params.py +5 -3
  296. gcore/types/waap/domains/setting_update_params.py +3 -2
  297. gcore/types/waap/domains/statistic_get_ddos_info_params.py +6 -9
  298. gcore/types/waap/domains/statistic_get_events_aggregated_params.py +9 -10
  299. gcore/types/waap/domains/statistic_get_requests_series_params.py +8 -9
  300. gcore/types/waap/domains/statistic_get_traffic_series_params.py +6 -9
  301. gcore/types/waap/domains/waap_advanced_rule.py +3 -2
  302. gcore/types/waap/domains/waap_api_path.py +4 -4
  303. gcore/types/waap/domains/waap_api_scan_result.py +2 -2
  304. gcore/types/waap/domains/waap_custom_rule.py +4 -7
  305. gcore/types/waap/domains/waap_firewall_rule.py +3 -2
  306. gcore/types/waap/domains/waap_insight.py +1 -1
  307. gcore/types/waap/domains/waap_request_details.py +5 -4
  308. gcore/types/waap/waap_ip_ddos_info_model.py +3 -3
  309. gcore/types/waap/waap_rule_set.py +1 -1
  310. {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/METADATA +7 -2
  311. {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/RECORD +313 -193
  312. gcore/types/cloud/inference/inference_model.py +0 -65
  313. gcore/types/cloud/inference/inference_registry_credentials_create.py +0 -22
  314. gcore/types/cloud/inference/model_list_params.py +0 -21
  315. gcore/types/streaming/ai_contentmoderation_casm.py +0 -39
  316. gcore/types/streaming/ai_contentmoderation_weapon.py +0 -39
  317. gcore/types/streaming/meet_series.py +0 -23
  318. gcore/types/streaming/statistic_get_meet_series_params.py +0 -20
  319. {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/WHEEL +0 -0
  320. {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/licenses/LICENSE +0 -0
@@ -4,17 +4,17 @@ from typing import Dict, List, Union, Optional
4
4
  from datetime import datetime
5
5
  from typing_extensions import Literal, TypeAlias
6
6
 
7
- from .tag import Tag
8
- from ..._models import BaseModel
9
- from .ddos_profile import DDOSProfile
10
- from .fixed_address import FixedAddress
11
- from .blackhole_port import BlackholePort
12
- from .floating_address import FloatingAddress
13
- from .instance_isolation import InstanceIsolation
14
- from .fixed_address_short import FixedAddressShort
7
+ from ..tag import Tag
8
+ from ...._models import BaseModel
9
+ from ..ddos_profile import DDOSProfile
10
+ from ..fixed_address import FixedAddress
11
+ from ..blackhole_port import BlackholePort
12
+ from ..floating_address import FloatingAddress
13
+ from ..instance_isolation import InstanceIsolation
14
+ from ..fixed_address_short import FixedAddressShort
15
15
 
16
16
  __all__ = [
17
- "GPUBaremetalClusterServer",
17
+ "GPUBaremetalClusterServerV1",
18
18
  "Address",
19
19
  "FixedIPAssignment",
20
20
  "Flavor",
@@ -87,7 +87,7 @@ class SecurityGroup(BaseModel):
87
87
  """Name."""
88
88
 
89
89
 
90
- class GPUBaremetalClusterServer(BaseModel):
90
+ class GPUBaremetalClusterServerV1(BaseModel):
91
91
  id: str
92
92
  """GPU server ID"""
93
93
 
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ...._models import BaseModel
6
+ from .gpu_baremetal_cluster_server_v1 import GPUBaremetalClusterServerV1
7
+
8
+ __all__ = ["GPUBaremetalClusterServerV1List"]
9
+
10
+
11
+ class GPUBaremetalClusterServerV1List(BaseModel):
12
+ count: int
13
+ """Number of objects"""
14
+
15
+ results: List[GPUBaremetalClusterServerV1]
16
+ """Objects"""
@@ -3,7 +3,7 @@
3
3
  from typing import Union, Optional
4
4
  from typing_extensions import Literal, TypeAlias
5
5
 
6
- from ..._models import BaseModel
6
+ from ...._models import BaseModel
7
7
 
8
8
  __all__ = [
9
9
  "GPUBaremetalFlavor",
@@ -2,7 +2,7 @@
2
2
 
3
3
  from typing import List
4
4
 
5
- from ..._models import BaseModel
5
+ from ...._models import BaseModel
6
6
  from .gpu_baremetal_flavor import GPUBaremetalFlavor
7
7
 
8
8
  __all__ = ["GPUBaremetalFlavorList"]
@@ -0,0 +1,75 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union
6
+ from datetime import datetime
7
+ from typing_extensions import Literal, Annotated, TypedDict
8
+
9
+ from ...._types import SequenceNotStr
10
+ from ...._utils import PropertyInfo
11
+
12
+ __all__ = ["ServerListParams"]
13
+
14
+
15
+ class ServerListParams(TypedDict, total=False):
16
+ project_id: int
17
+ """Project ID"""
18
+
19
+ region_id: int
20
+ """Region ID"""
21
+
22
+ changed_before: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
23
+ """
24
+ Filters the results to include only servers whose last change timestamp is less
25
+ than the specified datetime. Format: ISO 8601.
26
+ """
27
+
28
+ changed_since: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
29
+ """
30
+ Filters the results to include only servers whose last change timestamp is
31
+ greater than or equal to the specified datetime. Format: ISO 8601.
32
+ """
33
+
34
+ ip_address: str
35
+ """Filter servers by ip address."""
36
+
37
+ limit: int
38
+ """Limit of items on a single page"""
39
+
40
+ name: str
41
+ """Filter servers by name.
42
+
43
+ You can provide a full or partial name, servers with matching names will be
44
+ returned. For example, entering 'test' will return all servers that contain
45
+ 'test' in their name.
46
+ """
47
+
48
+ offset: int
49
+ """Offset in results list"""
50
+
51
+ order_by: Literal["created_at.asc", "created_at.desc", "status.asc", "status.desc"]
52
+ """Order field"""
53
+
54
+ status: Literal[
55
+ "ACTIVE",
56
+ "BUILD",
57
+ "ERROR",
58
+ "HARD_REBOOT",
59
+ "MIGRATING",
60
+ "PAUSED",
61
+ "REBOOT",
62
+ "REBUILD",
63
+ "RESIZE",
64
+ "REVERT_RESIZE",
65
+ "SHELVED",
66
+ "SHELVED_OFFLOADED",
67
+ "SHUTOFF",
68
+ "SOFT_DELETED",
69
+ "SUSPENDED",
70
+ "VERIFY_RESIZE",
71
+ ]
72
+ """Filters servers by status."""
73
+
74
+ uuids: SequenceNotStr[str]
75
+ """Filter servers by uuid."""
@@ -6,12 +6,10 @@ from .probe import Probe as Probe
6
6
  from .probe_exec import ProbeExec as ProbeExec
7
7
  from .probe_config import ProbeConfig as ProbeConfig
8
8
  from .probe_http_get import ProbeHTTPGet as ProbeHTTPGet
9
- from .inference_model import InferenceModel as InferenceModel
10
9
  from .inference_flavor import InferenceFlavor as InferenceFlavor
11
10
  from .inference_secret import InferenceSecret as InferenceSecret
12
11
  from .probe_tcp_socket import ProbeTcpSocket as ProbeTcpSocket
13
12
  from .inference_api_key import InferenceAPIKey as InferenceAPIKey
14
- from .model_list_params import ModelListParams as ModelListParams
15
13
  from .flavor_list_params import FlavorListParams as FlavorListParams
16
14
  from .secret_list_params import SecretListParams as SecretListParams
17
15
  from .api_key_list_params import APIKeyListParams as APIKeyListParams
@@ -29,6 +27,3 @@ from .inference_registry_credentials import InferenceRegistryCredentials as Infe
29
27
  from .registry_credential_list_params import RegistryCredentialListParams as RegistryCredentialListParams
30
28
  from .registry_credential_create_params import RegistryCredentialCreateParams as RegistryCredentialCreateParams
31
29
  from .registry_credential_replace_params import RegistryCredentialReplaceParams as RegistryCredentialReplaceParams
32
- from .inference_registry_credentials_create import (
33
- InferenceRegistryCredentialsCreate as InferenceRegistryCredentialsCreate,
34
- )
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .deployment_patch_params import DeploymentPatchParams as DeploymentPatchParams
6
+ from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams
7
+ from .inference_application_template import InferenceApplicationTemplate as InferenceApplicationTemplate
8
+ from .inference_application_deployment import InferenceApplicationDeployment as InferenceApplicationDeployment
9
+ from .inference_application_template_list import InferenceApplicationTemplateList as InferenceApplicationTemplateList
10
+ from .inference_application_deployment_list import (
11
+ InferenceApplicationDeploymentList as InferenceApplicationDeploymentList,
12
+ )
@@ -0,0 +1,68 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict, Iterable
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ from ....._types import SequenceNotStr
9
+
10
+ __all__ = [
11
+ "DeploymentCreateParams",
12
+ "ComponentsConfiguration",
13
+ "ComponentsConfigurationScale",
14
+ "ComponentsConfigurationParameterOverrides",
15
+ ]
16
+
17
+
18
+ class DeploymentCreateParams(TypedDict, total=False):
19
+ project_id: int
20
+ """Project ID"""
21
+
22
+ application_name: Required[str]
23
+ """Identifier of the application from the catalog"""
24
+
25
+ components_configuration: Required[Dict[str, ComponentsConfiguration]]
26
+ """Mapping of component names to their configuration (e.g., `"model": {...}`)"""
27
+
28
+ name: Required[str]
29
+ """Desired name for the new deployment"""
30
+
31
+ regions: Required[Iterable[int]]
32
+ """Geographical regions where the deployment should be created"""
33
+
34
+ api_keys: SequenceNotStr[str]
35
+ """List of API keys for the application"""
36
+
37
+
38
+ class ComponentsConfigurationScale(TypedDict, total=False):
39
+ max: Required[int]
40
+ """Maximum number of replicas the container can be scaled up to"""
41
+
42
+ min: Required[int]
43
+ """Minimum number of replicas the component can be scaled down to"""
44
+
45
+
46
+ class ComponentsConfigurationParameterOverrides(TypedDict, total=False):
47
+ value: Required[str]
48
+ """New value assigned to the overridden parameter"""
49
+
50
+
51
+ class ComponentsConfiguration(TypedDict, total=False):
52
+ exposed: Required[bool]
53
+ """
54
+ Whether the component should be exposed via a public endpoint (e.g., for
55
+ external inference/API access).
56
+ """
57
+
58
+ flavor: Required[str]
59
+ """
60
+ Specifies the compute configuration (e.g., CPU/GPU size) to be used for the
61
+ component.
62
+ """
63
+
64
+ scale: Required[ComponentsConfigurationScale]
65
+ """Scaling parameters of the component"""
66
+
67
+ parameter_overrides: Dict[str, ComponentsConfigurationParameterOverrides]
68
+ """Map of parameter overrides for customization"""
@@ -0,0 +1,62 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict, Iterable, Optional
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ from ....._types import SequenceNotStr
9
+
10
+ __all__ = [
11
+ "DeploymentPatchParams",
12
+ "ComponentsConfiguration",
13
+ "ComponentsConfigurationParameterOverrides",
14
+ "ComponentsConfigurationScale",
15
+ ]
16
+
17
+
18
+ class DeploymentPatchParams(TypedDict, total=False):
19
+ project_id: int
20
+ """Project ID"""
21
+
22
+ api_keys: SequenceNotStr[str]
23
+ """List of API keys for the application"""
24
+
25
+ components_configuration: Dict[str, Optional[ComponentsConfiguration]]
26
+ """Mapping of component names to their configuration (e.g., `"model": {...}`)"""
27
+
28
+ regions: Iterable[int]
29
+ """Geographical regions to be updated for the deployment"""
30
+
31
+
32
+ class ComponentsConfigurationParameterOverrides(TypedDict, total=False):
33
+ value: Required[str]
34
+ """New value assigned to the overridden parameter"""
35
+
36
+
37
+ class ComponentsConfigurationScale(TypedDict, total=False):
38
+ max: int
39
+ """Maximum number of replicas the container can be scaled up to"""
40
+
41
+ min: int
42
+ """Minimum number of replicas the component can be scaled down to"""
43
+
44
+
45
+ class ComponentsConfiguration(TypedDict, total=False):
46
+ exposed: bool
47
+ """
48
+ Whether the component should be exposed via a public endpoint (e.g., for
49
+ external inference/API access).
50
+ """
51
+
52
+ flavor: str
53
+ """
54
+ Specifies the compute configuration (e.g., CPU/GPU size) to be used for the
55
+ component.
56
+ """
57
+
58
+ parameter_overrides: Dict[str, Optional[ComponentsConfigurationParameterOverrides]]
59
+ """Map of parameter overrides for customization"""
60
+
61
+ scale: ComponentsConfigurationScale
62
+ """Scaling parameters of the component"""
@@ -0,0 +1,111 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, List
4
+ from typing_extensions import Literal
5
+
6
+ from ....._models import BaseModel
7
+
8
+ __all__ = [
9
+ "InferenceApplicationDeployment",
10
+ "ComponentsConfiguration",
11
+ "ComponentsConfigurationParameterOverrides",
12
+ "ComponentsConfigurationScale",
13
+ "Status",
14
+ "StatusComponentInferences",
15
+ "StatusExposeAddresses",
16
+ "StatusRegion",
17
+ "StatusRegionComponents",
18
+ ]
19
+
20
+
21
+ class ComponentsConfigurationParameterOverrides(BaseModel):
22
+ value: str
23
+ """New value assigned to the overridden parameter"""
24
+
25
+
26
+ class ComponentsConfigurationScale(BaseModel):
27
+ max: int
28
+ """Maximum number of replicas the container can be scaled up to"""
29
+
30
+ min: int
31
+ """Minimum number of replicas the component can be scaled down to"""
32
+
33
+
34
+ class ComponentsConfiguration(BaseModel):
35
+ exposed: bool
36
+ """Indicates if the component will obtain a public address"""
37
+
38
+ flavor: str
39
+ """Chosen flavor or variant of the component"""
40
+
41
+ parameter_overrides: Dict[str, ComponentsConfigurationParameterOverrides]
42
+ """Map of parameter overrides for customization"""
43
+
44
+ scale: ComponentsConfigurationScale
45
+ """Scaling parameters of the component"""
46
+
47
+
48
+ class StatusComponentInferences(BaseModel):
49
+ flavor: str
50
+ """Flavor of the inference"""
51
+
52
+ name: str
53
+ """Name of the inference"""
54
+
55
+
56
+ class StatusExposeAddresses(BaseModel):
57
+ address: str
58
+ """Global access endpoint for the component"""
59
+
60
+
61
+ class StatusRegionComponents(BaseModel):
62
+ error: str
63
+ """Error message if the component is in an error state"""
64
+
65
+ status: str
66
+ """Current state of the component in a specific region"""
67
+
68
+
69
+ class StatusRegion(BaseModel):
70
+ components: Dict[str, StatusRegionComponents]
71
+ """Mapping of component names to their status in the region"""
72
+
73
+ region_id: int
74
+ """Region ID"""
75
+
76
+ status: str
77
+ """Current state of the deployment in a specific region"""
78
+
79
+
80
+ class Status(BaseModel):
81
+ component_inferences: Dict[str, StatusComponentInferences]
82
+ """Map of components and their inferences"""
83
+
84
+ consolidated_status: Literal["Active", "Failed", "PartiallyDeployed", "Unknown"]
85
+ """High-level summary of the deployment status across all regions"""
86
+
87
+ expose_addresses: Dict[str, StatusExposeAddresses]
88
+ """Map of component keys to their global access endpoints"""
89
+
90
+ regions: List[StatusRegion]
91
+ """Status details for each deployment region"""
92
+
93
+
94
+ class InferenceApplicationDeployment(BaseModel):
95
+ api_keys: List[str]
96
+ """List of API keys for the application"""
97
+
98
+ application_name: str
99
+ """Identifier of the application template from the catalog"""
100
+
101
+ components_configuration: Dict[str, ComponentsConfiguration]
102
+ """Mapping of component names to their configuration (e.g., `"model": {...}`)"""
103
+
104
+ name: str
105
+ """Unique identifier of the deployment"""
106
+
107
+ regions: List[int]
108
+ """Geographical regions where the deployment is active"""
109
+
110
+ status: Status
111
+ """Current state of the deployment across regions"""
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ....._models import BaseModel
6
+ from .inference_application_deployment import InferenceApplicationDeployment
7
+
8
+ __all__ = ["InferenceApplicationDeploymentList"]
9
+
10
+
11
+ class InferenceApplicationDeploymentList(BaseModel):
12
+ count: int
13
+ """Number of objects"""
14
+
15
+ results: List[InferenceApplicationDeployment]
16
+ """Objects"""
@@ -0,0 +1,94 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, List, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ....._models import BaseModel
7
+
8
+ __all__ = ["InferenceApplicationTemplate", "Components", "ComponentsParameters", "ComponentsSuitableFlavor"]
9
+
10
+
11
+ class ComponentsParameters(BaseModel):
12
+ default_value: str
13
+ """Default value assigned if not provided"""
14
+
15
+ description: str
16
+ """Description of the parameter's purpose"""
17
+
18
+ display_name: str
19
+ """User-friendly name of the parameter"""
20
+
21
+ enum_values: Optional[List[str]] = None
22
+ """Allowed values when type is "enum" """
23
+
24
+ max_value: Optional[str] = None
25
+ """Maximum value (applies to integer and float types)"""
26
+
27
+ min_value: Optional[str] = None
28
+ """Minimum value (applies to integer and float types)"""
29
+
30
+ pattern: Optional[str] = None
31
+ """Regexp pattern when type is "string" """
32
+
33
+ required: bool
34
+ """Indicates is parameter mandatory"""
35
+
36
+ type: Literal["enum", "float", "integer", "string"]
37
+ """Determines the type of the parameter"""
38
+
39
+
40
+ class ComponentsSuitableFlavor(BaseModel):
41
+ name: str
42
+ """Name of the flavor"""
43
+
44
+
45
+ class Components(BaseModel):
46
+ description: str
47
+ """Summary of the component's functionality"""
48
+
49
+ display_name: str
50
+ """Human-readable name of the component"""
51
+
52
+ exposable: bool
53
+ """
54
+ Indicates whether this component can expose a public-facing endpoint (e.g., for
55
+ inference or API access).
56
+ """
57
+
58
+ license_url: str
59
+ """URL to the component's license information"""
60
+
61
+ parameters: Dict[str, ComponentsParameters]
62
+ """Configurable parameters for the component"""
63
+
64
+ readme: str
65
+ """Detailed documentation or usage instructions"""
66
+
67
+ required: bool
68
+ """Specifies if the component is required for the application"""
69
+
70
+ suitable_flavors: List[ComponentsSuitableFlavor]
71
+ """List of compatible flavors or configurations"""
72
+
73
+
74
+ class InferenceApplicationTemplate(BaseModel):
75
+ components: Dict[str, Components]
76
+ """Configurable components of the application"""
77
+
78
+ cover_url: str
79
+ """URL to the application's cover image"""
80
+
81
+ description: str
82
+ """Brief overview of the application"""
83
+
84
+ display_name: str
85
+ """Human-readable name of the application"""
86
+
87
+ name: str
88
+ """Unique application identifier in the catalog"""
89
+
90
+ readme: str
91
+ """Detailed documentation or instructions"""
92
+
93
+ tags: Dict[str, str]
94
+ """Categorization key-value pairs"""
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ....._models import BaseModel
6
+ from .inference_application_template import InferenceApplicationTemplate
7
+
8
+ __all__ = ["InferenceApplicationTemplateList"]
9
+
10
+
11
+ class InferenceApplicationTemplateList(BaseModel):
12
+ count: int
13
+ """Number of objects"""
14
+
15
+ results: List[InferenceApplicationTemplate]
16
+ """Objects"""
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Iterable, Optional
5
+ from typing import Dict, Iterable, Optional
6
6
  from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
+ from ...._types import SequenceNotStr
8
9
  from ...._utils import PropertyInfo
9
10
  from ..laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
10
11
 
@@ -64,7 +65,7 @@ class DeploymentCreateParams(TypedDict, total=False):
64
65
  name: Required[str]
65
66
  """Inference instance name."""
66
67
 
67
- api_keys: List[str]
68
+ api_keys: SequenceNotStr[str]
68
69
  """List of API keys for the inference instance.
69
70
 
70
71
  Multiple keys can be attached to one deployment.If `auth_enabled` and `api_keys`
@@ -80,7 +81,7 @@ class DeploymentCreateParams(TypedDict, total=False):
80
81
  `api_keys` are both specified, a ValidationError will be raised.
81
82
  """
82
83
 
83
- command: Optional[List[str]]
84
+ command: Optional[SequenceNotStr[str]]
84
85
  """Command to be executed when running a container from an image."""
85
86
 
86
87
  credentials_name: Optional[str]
@@ -246,7 +247,7 @@ class Logging(TypedDict, total=False):
246
247
 
247
248
 
248
249
  class ProbesLivenessProbeProbeExec(TypedDict, total=False):
249
- command: Required[List[str]]
250
+ command: Required[SequenceNotStr[str]]
250
251
  """Command to be executed inside the running container."""
251
252
 
252
253
 
@@ -307,7 +308,7 @@ class ProbesLivenessProbe(TypedDict, total=False):
307
308
 
308
309
 
309
310
  class ProbesReadinessProbeProbeExec(TypedDict, total=False):
310
- command: Required[List[str]]
311
+ command: Required[SequenceNotStr[str]]
311
312
  """Command to be executed inside the running container."""
312
313
 
313
314
 
@@ -368,7 +369,7 @@ class ProbesReadinessProbe(TypedDict, total=False):
368
369
 
369
370
 
370
371
  class ProbesStartupProbeProbeExec(TypedDict, total=False):
371
- command: Required[List[str]]
372
+ command: Required[SequenceNotStr[str]]
372
373
  """Command to be executed inside the running container."""
373
374
 
374
375
 
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Iterable, Optional
5
+ from typing import Dict, Iterable, Optional
6
6
  from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
+ from ...._types import SequenceNotStr
8
9
  from ...._utils import PropertyInfo
9
10
  from ..laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
10
11
 
@@ -44,7 +45,7 @@ class DeploymentUpdateParams(TypedDict, total=False):
44
45
  project_id: int
45
46
  """Project ID"""
46
47
 
47
- api_keys: Optional[List[str]]
48
+ api_keys: Optional[SequenceNotStr[str]]
48
49
  """List of API keys for the inference instance.
49
50
 
50
51
  Multiple keys can be attached to one deployment.If `auth_enabled` and `api_keys`
@@ -61,7 +62,7 @@ class DeploymentUpdateParams(TypedDict, total=False):
61
62
  `api_keys` are both specified, a ValidationError will be raised.
62
63
  """
63
64
 
64
- command: Optional[List[str]]
65
+ command: Optional[SequenceNotStr[str]]
65
66
  """Command to be executed when running a container from an image."""
66
67
 
67
68
  containers: Optional[Iterable[Container]]
@@ -240,7 +241,7 @@ class Logging(TypedDict, total=False):
240
241
 
241
242
 
242
243
  class ProbesLivenessProbeProbeExec(TypedDict, total=False):
243
- command: List[str]
244
+ command: SequenceNotStr[str]
244
245
  """Command to be executed inside the running container."""
245
246
 
246
247
 
@@ -301,7 +302,7 @@ class ProbesLivenessProbe(TypedDict, total=False):
301
302
 
302
303
 
303
304
  class ProbesReadinessProbeProbeExec(TypedDict, total=False):
304
- command: List[str]
305
+ command: SequenceNotStr[str]
305
306
  """Command to be executed inside the running container."""
306
307
 
307
308
 
@@ -362,7 +363,7 @@ class ProbesReadinessProbe(TypedDict, total=False):
362
363
 
363
364
 
364
365
  class ProbesStartupProbeProbeExec(TypedDict, total=False):
365
- command: List[str]
366
+ command: SequenceNotStr[str]
366
367
  """Command to be executed inside the running container."""
367
368
 
368
369