gcore 0.10.0__py3-none-any.whl → 0.11.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 (319) 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/vip.py +5 -7
  56. gcore/resources/cloud/security_groups/security_groups.py +6 -6
  57. gcore/resources/cloud/tasks.py +46 -46
  58. gcore/resources/cloud/users/role_assignments.py +5 -4
  59. gcore/resources/cloud/volumes.py +4 -4
  60. gcore/resources/dns/__init__.py +75 -0
  61. gcore/resources/dns/dns.py +374 -0
  62. gcore/resources/dns/locations.py +288 -0
  63. gcore/resources/dns/metrics.py +214 -0
  64. gcore/resources/dns/pickers/__init__.py +33 -0
  65. gcore/resources/dns/pickers/pickers.py +167 -0
  66. gcore/resources/dns/pickers/presets.py +135 -0
  67. gcore/resources/dns/zones/__init__.py +47 -0
  68. gcore/resources/{cloud/inference/models.py → dns/zones/dnssec.py} +80 -122
  69. gcore/resources/dns/zones/rrsets.py +1005 -0
  70. gcore/resources/dns/zones/zones.py +1493 -0
  71. gcore/resources/storage/__init__.py +75 -0
  72. gcore/resources/storage/buckets/__init__.py +61 -0
  73. gcore/resources/storage/buckets/buckets.py +470 -0
  74. gcore/resources/storage/buckets/cors.py +265 -0
  75. gcore/resources/storage/buckets/lifecycle.py +276 -0
  76. gcore/resources/storage/buckets/policy.py +345 -0
  77. gcore/resources/storage/credentials.py +221 -0
  78. gcore/resources/storage/locations.py +190 -0
  79. gcore/resources/storage/statistics.py +364 -0
  80. gcore/resources/storage/storage.py +1042 -0
  81. gcore/resources/streaming/ai_tasks.py +56 -70
  82. gcore/resources/streaming/playlists.py +18 -18
  83. gcore/resources/streaming/quality_sets.py +8 -8
  84. gcore/resources/streaming/statistics.py +4 -122
  85. gcore/resources/streaming/streams/overlays.py +6 -6
  86. gcore/resources/streaming/streams/streams.py +40 -64
  87. gcore/resources/streaming/videos/subtitles.py +32 -30
  88. gcore/resources/streaming/videos/videos.py +78 -72
  89. gcore/resources/waap/domains/advanced_rules.py +2 -2
  90. gcore/resources/waap/domains/api_paths.py +13 -13
  91. gcore/resources/waap/domains/custom_rules.py +2 -2
  92. gcore/resources/waap/domains/domains.py +4 -4
  93. gcore/resources/waap/domains/firewall_rules.py +2 -2
  94. gcore/resources/waap/domains/insight_silences.py +6 -6
  95. gcore/resources/waap/domains/insights.py +7 -7
  96. gcore/resources/waap/domains/statistics.py +47 -47
  97. gcore/types/cloud/__init__.py +2 -4
  98. gcore/types/cloud/audit_log_list_params.py +2 -1
  99. gcore/types/cloud/baremetal/image_list_params.py +3 -2
  100. gcore/types/cloud/baremetal/server_create_params.py +8 -6
  101. gcore/types/cloud/baremetal/server_list_params.py +3 -2
  102. gcore/types/cloud/baremetal/server_rebuild_params.py +2 -0
  103. gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +35 -31
  104. gcore/types/cloud/cost_report_get_aggregated_params.py +26 -25
  105. gcore/types/cloud/cost_report_get_detailed_params.py +26 -25
  106. gcore/types/cloud/ddos_profile.py +13 -7
  107. gcore/types/cloud/ddos_profile_field.py +21 -8
  108. gcore/types/cloud/ddos_profile_option_list.py +7 -6
  109. gcore/types/cloud/ddos_profile_status.py +2 -2
  110. gcore/types/cloud/ddos_profile_template.py +7 -3
  111. gcore/types/cloud/ddos_profile_template_field.py +12 -3
  112. gcore/types/cloud/file_share.py +2 -2
  113. gcore/types/cloud/file_share_create_params.py +12 -6
  114. gcore/types/cloud/floating_ip_list_params.py +3 -2
  115. gcore/types/cloud/gpu_baremetal_cluster.py +101 -74
  116. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +76 -93
  117. gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +17 -10
  118. gcore/types/cloud/gpu_baremetal_cluster_list_params.py +14 -3
  119. gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +4 -2
  120. gcore/types/cloud/gpu_baremetal_clusters/__init__.py +6 -0
  121. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +74 -0
  122. gcore/types/cloud/{gpu_baremetal_cluster_server.py → gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1.py} +10 -10
  123. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1_list.py +16 -0
  124. gcore/types/cloud/{gpu_baremetal_flavor.py → gpu_baremetal_clusters/gpu_baremetal_flavor.py} +1 -1
  125. gcore/types/cloud/{gpu_baremetal_flavor_list.py → gpu_baremetal_clusters/gpu_baremetal_flavor_list.py} +1 -1
  126. gcore/types/cloud/gpu_baremetal_clusters/server_list_params.py +75 -0
  127. gcore/types/cloud/inference/__init__.py +0 -5
  128. gcore/types/cloud/inference/applications/__init__.py +12 -0
  129. gcore/types/cloud/inference/applications/deployment_create_params.py +68 -0
  130. gcore/types/cloud/inference/applications/deployment_patch_params.py +62 -0
  131. gcore/types/cloud/inference/applications/inference_application_deployment.py +111 -0
  132. gcore/types/cloud/inference/applications/inference_application_deployment_list.py +16 -0
  133. gcore/types/cloud/inference/applications/inference_application_template.py +94 -0
  134. gcore/types/cloud/inference/applications/inference_application_template_list.py +16 -0
  135. gcore/types/cloud/inference/deployment_create_params.py +7 -6
  136. gcore/types/cloud/inference/deployment_update_params.py +7 -6
  137. gcore/types/cloud/instance_assign_security_group_params.py +4 -2
  138. gcore/types/cloud/instance_list_params.py +3 -2
  139. gcore/types/cloud/instance_unassign_security_group_params.py +4 -2
  140. gcore/types/cloud/instances/image_list_params.py +3 -2
  141. gcore/types/cloud/k8s/__init__.py +13 -0
  142. gcore/types/cloud/k8s/cluster_create_params.py +299 -0
  143. gcore/types/cloud/k8s/cluster_delete_params.py +16 -0
  144. gcore/types/cloud/k8s/cluster_update_params.py +203 -0
  145. gcore/types/cloud/k8s/cluster_upgrade_params.py +16 -0
  146. gcore/types/cloud/k8s/clusters/__init__.py +10 -0
  147. gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +66 -0
  148. gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +16 -0
  149. gcore/types/cloud/k8s/clusters/node_list_params.py +16 -0
  150. gcore/types/cloud/k8s/clusters/pool_create_params.py +53 -0
  151. gcore/types/cloud/k8s/clusters/pool_resize_params.py +18 -0
  152. gcore/types/cloud/k8s/clusters/pool_update_params.py +34 -0
  153. gcore/types/cloud/k8s/clusters/pools/__init__.py +5 -0
  154. gcore/types/cloud/k8s/clusters/pools/node_list_params.py +18 -0
  155. gcore/types/cloud/k8s/flavor_list_params.py +19 -0
  156. gcore/types/cloud/k8s/k8s_cluster.py +209 -0
  157. gcore/types/cloud/k8s/k8s_cluster_certificate.py +13 -0
  158. gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +19 -0
  159. gcore/types/cloud/k8s/k8s_cluster_list.py +16 -0
  160. gcore/types/cloud/k8s_cluster_version.py +10 -0
  161. gcore/types/cloud/{gpu_baremetal_cluster_server_list.py → k8s_cluster_version_list.py} +4 -4
  162. gcore/types/cloud/load_balancer_create_params.py +23 -4
  163. gcore/types/cloud/load_balancer_list_params.py +3 -2
  164. gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +3 -2
  165. gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +3 -2
  166. gcore/types/cloud/load_balancers/l7_policy_create_params.py +3 -2
  167. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +3 -2
  168. gcore/types/cloud/load_balancers/listener_create_params.py +4 -3
  169. gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
  170. gcore/types/cloud/load_balancers/pool_create_params.py +19 -1
  171. gcore/types/cloud/load_balancers/pool_update_params.py +19 -1
  172. gcore/types/cloud/load_balancers/pools/member_add_params.py +19 -1
  173. gcore/types/cloud/member.py +19 -1
  174. gcore/types/cloud/network_list_params.py +3 -2
  175. gcore/types/cloud/networks/subnet_create_params.py +3 -2
  176. gcore/types/cloud/networks/subnet_list_params.py +3 -2
  177. gcore/types/cloud/networks/subnet_update_params.py +3 -2
  178. gcore/types/cloud/project.py +9 -9
  179. gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +3 -2
  180. gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +3 -2
  181. gcore/types/cloud/security_group_create_params.py +4 -2
  182. gcore/types/cloud/security_group_list_params.py +3 -2
  183. gcore/types/cloud/task_id_list.py +8 -1
  184. gcore/types/cloud/task_list_params.py +23 -23
  185. gcore/types/cloud/usage_report_get_params.py +26 -25
  186. gcore/types/cloud/users/role_assignment.py +2 -1
  187. gcore/types/cloud/users/role_assignment_create_params.py +4 -2
  188. gcore/types/cloud/users/role_assignment_update_params.py +4 -2
  189. gcore/types/cloud/volume_list_params.py +3 -2
  190. gcore/types/dns/__init__.py +31 -0
  191. gcore/types/dns/dns_get_account_overview_response.py +21 -0
  192. gcore/types/dns/dns_label_name.py +13 -0
  193. gcore/types/dns/dns_location_translations.py +11 -0
  194. gcore/types/dns/dns_lookup_params.py +15 -0
  195. gcore/types/dns/dns_lookup_response.py +21 -0
  196. gcore/types/dns/dns_name_server.py +17 -0
  197. gcore/types/dns/location_list_continents_response.py +10 -0
  198. gcore/types/dns/location_list_countries_response.py +10 -0
  199. gcore/types/dns/location_list_regions_response.py +10 -0
  200. gcore/types/dns/location_list_response.py +16 -0
  201. gcore/types/dns/metric_list_params.py +24 -0
  202. gcore/types/dns/metric_list_response.py +7 -0
  203. gcore/types/dns/picker_list_response.py +10 -0
  204. gcore/types/dns/pickers/__init__.py +5 -0
  205. gcore/types/dns/pickers/preset_list_response.py +10 -0
  206. gcore/types/dns/zone_check_delegation_status_response.py +20 -0
  207. gcore/types/dns/zone_create_params.py +59 -0
  208. gcore/types/dns/zone_create_response.py +13 -0
  209. gcore/types/dns/zone_export_response.py +11 -0
  210. gcore/types/dns/zone_get_response.py +106 -0
  211. gcore/types/dns/zone_get_statistics_params.py +43 -0
  212. gcore/types/dns/zone_get_statistics_response.py +19 -0
  213. gcore/types/dns/zone_import_params.py +32 -0
  214. gcore/types/dns/zone_import_response.py +26 -0
  215. gcore/types/dns/zone_list_params.py +57 -0
  216. gcore/types/dns/zone_list_response.py +105 -0
  217. gcore/types/dns/zone_replace_params.py +61 -0
  218. gcore/types/dns/zones/__init__.py +15 -0
  219. gcore/types/dns/zones/dns_failover_log.py +19 -0
  220. gcore/types/dns/zones/dns_output_rrset.py +123 -0
  221. gcore/types/dns/zones/dnssec_get_response.py +38 -0
  222. gcore/types/dns/zones/dnssec_update_params.py +11 -0
  223. gcore/types/dns/zones/dnssec_update_response.py +38 -0
  224. gcore/types/dns/zones/rrset_create_params.py +82 -0
  225. gcore/types/dns/zones/rrset_get_failover_logs_params.py +21 -0
  226. gcore/types/dns/zones/rrset_get_failover_logs_response.py +15 -0
  227. gcore/types/dns/zones/rrset_list_params.py +21 -0
  228. gcore/types/dns/zones/rrset_list_response.py +14 -0
  229. gcore/types/dns/zones/rrset_replace_params.py +82 -0
  230. gcore/types/security/client_profile.py +1 -1
  231. gcore/types/security/profile_create_params.py +2 -2
  232. gcore/types/security/profile_recreate_params.py +2 -2
  233. gcore/types/security/profile_replace_params.py +2 -2
  234. gcore/types/storage/__init__.py +21 -0
  235. gcore/types/storage/bucket.py +15 -0
  236. gcore/types/storage/bucket_list_params.py +15 -0
  237. gcore/types/storage/buckets/__init__.py +9 -0
  238. gcore/types/storage/buckets/bucket_cors.py +18 -0
  239. gcore/types/storage/buckets/bucket_policy.py +7 -0
  240. gcore/types/storage/buckets/cor_create_params.py +17 -0
  241. gcore/types/storage/buckets/lifecycle_create_params.py +18 -0
  242. gcore/types/storage/buckets/policy_get_response.py +7 -0
  243. gcore/types/storage/credential_recreate_params.py +36 -0
  244. gcore/types/storage/location.py +24 -0
  245. gcore/types/storage/location_list_params.py +13 -0
  246. gcore/types/storage/statistic_get_usage_aggregated_params.py +24 -0
  247. gcore/types/storage/statistic_get_usage_series_params.py +38 -0
  248. gcore/types/storage/statistic_get_usage_series_response.py +12 -0
  249. gcore/types/storage/storage.py +101 -0
  250. gcore/types/storage/storage_create_params.py +44 -0
  251. gcore/types/storage/storage_list_params.py +39 -0
  252. gcore/types/storage/storage_restore_params.py +11 -0
  253. gcore/types/storage/storage_update_params.py +18 -0
  254. gcore/types/storage/usage_series.py +201 -0
  255. gcore/types/storage/usage_total.py +54 -0
  256. gcore/types/streaming/__init__.py +0 -4
  257. gcore/types/streaming/ai_contentmoderation_hardnudity.py +1 -1
  258. gcore/types/streaming/ai_contentmoderation_nsfw.py +1 -1
  259. gcore/types/streaming/ai_contentmoderation_softnudity.py +1 -1
  260. gcore/types/streaming/ai_contentmoderation_sport.py +1 -1
  261. gcore/types/streaming/ai_task.py +1 -5
  262. gcore/types/streaming/ai_task_create_params.py +2 -2
  263. gcore/types/streaming/ai_task_get_response.py +0 -46
  264. gcore/types/streaming/clip.py +2 -1
  265. gcore/types/streaming/create_video_param.py +13 -12
  266. gcore/types/streaming/max_stream_series.py +5 -5
  267. gcore/types/streaming/playlist.py +1 -1
  268. gcore/types/streaming/playlist_create_params.py +1 -1
  269. gcore/types/streaming/playlist_update_params.py +1 -1
  270. gcore/types/streaming/playlist_video.py +13 -12
  271. gcore/types/streaming/storage_series.py +5 -5
  272. gcore/types/streaming/stream.py +86 -49
  273. gcore/types/streaming/stream_create_clip_params.py +2 -1
  274. gcore/types/streaming/stream_create_params.py +9 -23
  275. gcore/types/streaming/stream_series.py +5 -5
  276. gcore/types/streaming/stream_update_params.py +9 -23
  277. gcore/types/streaming/video.py +53 -42
  278. gcore/types/streaming/video_update_params.py +13 -12
  279. gcore/types/streaming/vod_statistics_series.py +5 -5
  280. gcore/types/streaming/vod_total_stream_duration_series.py +3 -3
  281. gcore/types/waap/domain_list_params.py +1 -1
  282. gcore/types/waap/domain_update_params.py +1 -1
  283. gcore/types/waap/domains/advanced_rule_create_params.py +7 -4
  284. gcore/types/waap/domains/advanced_rule_update_params.py +6 -3
  285. gcore/types/waap/domains/api_path_create_params.py +4 -3
  286. gcore/types/waap/domains/api_path_list_params.py +3 -1
  287. gcore/types/waap/domains/api_path_update_params.py +5 -4
  288. gcore/types/waap/domains/custom_rule_create_params.py +13 -14
  289. gcore/types/waap/domains/custom_rule_update_params.py +12 -13
  290. gcore/types/waap/domains/firewall_rule_create_params.py +3 -2
  291. gcore/types/waap/domains/firewall_rule_update_params.py +2 -1
  292. gcore/types/waap/domains/insight_list_params.py +4 -2
  293. gcore/types/waap/domains/insight_replace_params.py +1 -1
  294. gcore/types/waap/domains/insight_silence_list_params.py +5 -3
  295. gcore/types/waap/domains/setting_update_params.py +3 -2
  296. gcore/types/waap/domains/statistic_get_ddos_info_params.py +6 -9
  297. gcore/types/waap/domains/statistic_get_events_aggregated_params.py +9 -10
  298. gcore/types/waap/domains/statistic_get_requests_series_params.py +8 -9
  299. gcore/types/waap/domains/statistic_get_traffic_series_params.py +6 -9
  300. gcore/types/waap/domains/waap_advanced_rule.py +3 -2
  301. gcore/types/waap/domains/waap_api_path.py +4 -4
  302. gcore/types/waap/domains/waap_api_scan_result.py +2 -2
  303. gcore/types/waap/domains/waap_custom_rule.py +4 -7
  304. gcore/types/waap/domains/waap_firewall_rule.py +3 -2
  305. gcore/types/waap/domains/waap_insight.py +1 -1
  306. gcore/types/waap/domains/waap_request_details.py +5 -4
  307. gcore/types/waap/waap_ip_ddos_info_model.py +3 -3
  308. gcore/types/waap/waap_rule_set.py +1 -1
  309. {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/METADATA +7 -2
  310. {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/RECORD +312 -192
  311. gcore/types/cloud/inference/inference_model.py +0 -65
  312. gcore/types/cloud/inference/inference_registry_credentials_create.py +0 -22
  313. gcore/types/cloud/inference/model_list_params.py +0 -21
  314. gcore/types/streaming/ai_contentmoderation_casm.py +0 -39
  315. gcore/types/streaming/ai_contentmoderation_weapon.py +0 -39
  316. gcore/types/streaming/meet_series.py +0 -23
  317. gcore/types/streaming/statistic_get_meet_series_params.py +0 -20
  318. {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/WHEEL +0 -0
  319. {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,238 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ....._compat import cached_property
9
+ from ....._resource import SyncAPIResource, AsyncAPIResource
10
+ from ....._response import (
11
+ to_raw_response_wrapper,
12
+ to_streamed_response_wrapper,
13
+ async_to_raw_response_wrapper,
14
+ async_to_streamed_response_wrapper,
15
+ )
16
+ from ....._base_client import make_request_options
17
+ from .....types.cloud.inference.applications.inference_application_template import InferenceApplicationTemplate
18
+ from .....types.cloud.inference.applications.inference_application_template_list import InferenceApplicationTemplateList
19
+
20
+ __all__ = ["TemplatesResource", "AsyncTemplatesResource"]
21
+
22
+
23
+ class TemplatesResource(SyncAPIResource):
24
+ @cached_property
25
+ def with_raw_response(self) -> TemplatesResourceWithRawResponse:
26
+ """
27
+ This property can be used as a prefix for any HTTP method call to return
28
+ the raw response object instead of the parsed content.
29
+
30
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
31
+ """
32
+ return TemplatesResourceWithRawResponse(self)
33
+
34
+ @cached_property
35
+ def with_streaming_response(self) -> TemplatesResourceWithStreamingResponse:
36
+ """
37
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
+
39
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
40
+ """
41
+ return TemplatesResourceWithStreamingResponse(self)
42
+
43
+ def list(
44
+ self,
45
+ *,
46
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
47
+ # The extra values given here take precedence over values defined on the client or passed to this method.
48
+ extra_headers: Headers | None = None,
49
+ extra_query: Query | None = None,
50
+ extra_body: Body | None = None,
51
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
52
+ ) -> InferenceApplicationTemplateList:
53
+ """
54
+ Returns a list of available machine learning application templates from the
55
+ catalog. Each template includes metadata such as name, description, cover image,
56
+ documentation, tags, and a set of configurable components (e.g., `model`, `ui`).
57
+ Components define parameters, supported deployment flavors, and other attributes
58
+ required to create a fully functional application deployment.
59
+ """
60
+ return self._get(
61
+ "/cloud/v3/inference/applications/catalog",
62
+ options=make_request_options(
63
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
64
+ ),
65
+ cast_to=InferenceApplicationTemplateList,
66
+ )
67
+
68
+ def get(
69
+ self,
70
+ application_name: str,
71
+ *,
72
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
73
+ # The extra values given here take precedence over values defined on the client or passed to this method.
74
+ extra_headers: Headers | None = None,
75
+ extra_query: Query | None = None,
76
+ extra_body: Body | None = None,
77
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
78
+ ) -> InferenceApplicationTemplate:
79
+ """
80
+ Retrieves detailed information about a specific machine learning application
81
+ template from the catalog. The response includes the application’s metadata,
82
+ documentation, tags, and a complete set of components with configuration
83
+ options, compatible flavors, and deployment capabilities — all necessary for
84
+ building and customizing an AI application.
85
+
86
+ Args:
87
+ application_name: Name of application in catalog
88
+
89
+ extra_headers: Send extra headers
90
+
91
+ extra_query: Add additional query parameters to the request
92
+
93
+ extra_body: Add additional JSON properties to the request
94
+
95
+ timeout: Override the client-level default timeout for this request, in seconds
96
+ """
97
+ if not application_name:
98
+ raise ValueError(f"Expected a non-empty value for `application_name` but received {application_name!r}")
99
+ return self._get(
100
+ f"/cloud/v3/inference/applications/catalog/{application_name}",
101
+ options=make_request_options(
102
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
103
+ ),
104
+ cast_to=InferenceApplicationTemplate,
105
+ )
106
+
107
+
108
+ class AsyncTemplatesResource(AsyncAPIResource):
109
+ @cached_property
110
+ def with_raw_response(self) -> AsyncTemplatesResourceWithRawResponse:
111
+ """
112
+ This property can be used as a prefix for any HTTP method call to return
113
+ the raw response object instead of the parsed content.
114
+
115
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
116
+ """
117
+ return AsyncTemplatesResourceWithRawResponse(self)
118
+
119
+ @cached_property
120
+ def with_streaming_response(self) -> AsyncTemplatesResourceWithStreamingResponse:
121
+ """
122
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
123
+
124
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
125
+ """
126
+ return AsyncTemplatesResourceWithStreamingResponse(self)
127
+
128
+ async def list(
129
+ self,
130
+ *,
131
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
132
+ # The extra values given here take precedence over values defined on the client or passed to this method.
133
+ extra_headers: Headers | None = None,
134
+ extra_query: Query | None = None,
135
+ extra_body: Body | None = None,
136
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
137
+ ) -> InferenceApplicationTemplateList:
138
+ """
139
+ Returns a list of available machine learning application templates from the
140
+ catalog. Each template includes metadata such as name, description, cover image,
141
+ documentation, tags, and a set of configurable components (e.g., `model`, `ui`).
142
+ Components define parameters, supported deployment flavors, and other attributes
143
+ required to create a fully functional application deployment.
144
+ """
145
+ return await self._get(
146
+ "/cloud/v3/inference/applications/catalog",
147
+ options=make_request_options(
148
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
149
+ ),
150
+ cast_to=InferenceApplicationTemplateList,
151
+ )
152
+
153
+ async def get(
154
+ self,
155
+ application_name: str,
156
+ *,
157
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
158
+ # The extra values given here take precedence over values defined on the client or passed to this method.
159
+ extra_headers: Headers | None = None,
160
+ extra_query: Query | None = None,
161
+ extra_body: Body | None = None,
162
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
163
+ ) -> InferenceApplicationTemplate:
164
+ """
165
+ Retrieves detailed information about a specific machine learning application
166
+ template from the catalog. The response includes the application’s metadata,
167
+ documentation, tags, and a complete set of components with configuration
168
+ options, compatible flavors, and deployment capabilities — all necessary for
169
+ building and customizing an AI application.
170
+
171
+ Args:
172
+ application_name: Name of application in catalog
173
+
174
+ extra_headers: Send extra headers
175
+
176
+ extra_query: Add additional query parameters to the request
177
+
178
+ extra_body: Add additional JSON properties to the request
179
+
180
+ timeout: Override the client-level default timeout for this request, in seconds
181
+ """
182
+ if not application_name:
183
+ raise ValueError(f"Expected a non-empty value for `application_name` but received {application_name!r}")
184
+ return await self._get(
185
+ f"/cloud/v3/inference/applications/catalog/{application_name}",
186
+ options=make_request_options(
187
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
188
+ ),
189
+ cast_to=InferenceApplicationTemplate,
190
+ )
191
+
192
+
193
+ class TemplatesResourceWithRawResponse:
194
+ def __init__(self, templates: TemplatesResource) -> None:
195
+ self._templates = templates
196
+
197
+ self.list = to_raw_response_wrapper(
198
+ templates.list,
199
+ )
200
+ self.get = to_raw_response_wrapper(
201
+ templates.get,
202
+ )
203
+
204
+
205
+ class AsyncTemplatesResourceWithRawResponse:
206
+ def __init__(self, templates: AsyncTemplatesResource) -> None:
207
+ self._templates = templates
208
+
209
+ self.list = async_to_raw_response_wrapper(
210
+ templates.list,
211
+ )
212
+ self.get = async_to_raw_response_wrapper(
213
+ templates.get,
214
+ )
215
+
216
+
217
+ class TemplatesResourceWithStreamingResponse:
218
+ def __init__(self, templates: TemplatesResource) -> None:
219
+ self._templates = templates
220
+
221
+ self.list = to_streamed_response_wrapper(
222
+ templates.list,
223
+ )
224
+ self.get = to_streamed_response_wrapper(
225
+ templates.get,
226
+ )
227
+
228
+
229
+ class AsyncTemplatesResourceWithStreamingResponse:
230
+ def __init__(self, templates: AsyncTemplatesResource) -> None:
231
+ self._templates = templates
232
+
233
+ self.list = async_to_streamed_response_wrapper(
234
+ templates.list,
235
+ )
236
+ self.get = async_to_streamed_response_wrapper(
237
+ templates.get,
238
+ )
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Iterable, Optional
5
+ import typing_extensions
6
+ from typing import Dict, Iterable, Optional
6
7
 
7
8
  import httpx
8
9
 
@@ -14,7 +15,7 @@ from .logs import (
14
15
  LogsResourceWithStreamingResponse,
15
16
  AsyncLogsResourceWithStreamingResponse,
16
17
  )
17
- from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
18
+ from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr
18
19
  from ....._utils import maybe_transform, async_maybe_transform
19
20
  from ....._compat import cached_property
20
21
  from ....._resource import SyncAPIResource, AsyncAPIResource
@@ -67,9 +68,9 @@ class DeploymentsResource(SyncAPIResource):
67
68
  image: str,
68
69
  listening_port: int,
69
70
  name: str,
70
- api_keys: List[str] | NotGiven = NOT_GIVEN,
71
+ api_keys: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
71
72
  auth_enabled: bool | NotGiven = NOT_GIVEN,
72
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
73
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
73
74
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
74
75
  description: Optional[str] | NotGiven = NOT_GIVEN,
75
76
  envs: Dict[str, str] | NotGiven = NOT_GIVEN,
@@ -178,9 +179,9 @@ class DeploymentsResource(SyncAPIResource):
178
179
  deployment_name: str,
179
180
  *,
180
181
  project_id: int | None = None,
181
- api_keys: Optional[List[str]] | NotGiven = NOT_GIVEN,
182
+ api_keys: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
182
183
  auth_enabled: bool | NotGiven = NOT_GIVEN,
183
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
184
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
184
185
  containers: Optional[Iterable[deployment_update_params.Container]] | NotGiven = NOT_GIVEN,
185
186
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
186
187
  description: Optional[str] | NotGiven = NOT_GIVEN,
@@ -422,6 +423,7 @@ class DeploymentsResource(SyncAPIResource):
422
423
  cast_to=InferenceDeployment,
423
424
  )
424
425
 
426
+ @typing_extensions.deprecated("deprecated")
425
427
  def get_api_key(
426
428
  self,
427
429
  deployment_name: str,
@@ -567,8 +569,9 @@ class DeploymentsResource(SyncAPIResource):
567
569
  image: str,
568
570
  listening_port: int,
569
571
  name: str,
572
+ api_keys: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
570
573
  auth_enabled: bool | NotGiven = NOT_GIVEN,
571
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
574
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
572
575
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
573
576
  description: Optional[str] | NotGiven = NOT_GIVEN,
574
577
  envs: Dict[str, str] | NotGiven = NOT_GIVEN,
@@ -591,6 +594,7 @@ class DeploymentsResource(SyncAPIResource):
591
594
  image=image,
592
595
  listening_port=listening_port,
593
596
  name=name,
597
+ api_keys=api_keys,
594
598
  auth_enabled=auth_enabled,
595
599
  command=command,
596
600
  credentials_name=credentials_name,
@@ -630,8 +634,9 @@ class DeploymentsResource(SyncAPIResource):
630
634
  deployment_name: str,
631
635
  *,
632
636
  project_id: int | None = None,
637
+ api_keys: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
633
638
  auth_enabled: bool | NotGiven = NOT_GIVEN,
634
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
639
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
635
640
  containers: Optional[Iterable[deployment_update_params.Container]] | NotGiven = NOT_GIVEN,
636
641
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
637
642
  description: Optional[str] | NotGiven = NOT_GIVEN,
@@ -657,6 +662,7 @@ class DeploymentsResource(SyncAPIResource):
657
662
  response = self.update(
658
663
  deployment_name=deployment_name,
659
664
  project_id=project_id,
665
+ api_keys=api_keys,
660
666
  auth_enabled=auth_enabled,
661
667
  command=command,
662
668
  containers=containers,
@@ -755,9 +761,9 @@ class AsyncDeploymentsResource(AsyncAPIResource):
755
761
  image: str,
756
762
  listening_port: int,
757
763
  name: str,
758
- api_keys: List[str] | NotGiven = NOT_GIVEN,
764
+ api_keys: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
759
765
  auth_enabled: bool | NotGiven = NOT_GIVEN,
760
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
766
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
761
767
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
762
768
  description: Optional[str] | NotGiven = NOT_GIVEN,
763
769
  envs: Dict[str, str] | NotGiven = NOT_GIVEN,
@@ -866,9 +872,9 @@ class AsyncDeploymentsResource(AsyncAPIResource):
866
872
  deployment_name: str,
867
873
  *,
868
874
  project_id: int | None = None,
869
- api_keys: Optional[List[str]] | NotGiven = NOT_GIVEN,
875
+ api_keys: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
870
876
  auth_enabled: bool | NotGiven = NOT_GIVEN,
871
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
877
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
872
878
  containers: Optional[Iterable[deployment_update_params.Container]] | NotGiven = NOT_GIVEN,
873
879
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
874
880
  description: Optional[str] | NotGiven = NOT_GIVEN,
@@ -1110,6 +1116,7 @@ class AsyncDeploymentsResource(AsyncAPIResource):
1110
1116
  cast_to=InferenceDeployment,
1111
1117
  )
1112
1118
 
1119
+ @typing_extensions.deprecated("deprecated")
1113
1120
  async def get_api_key(
1114
1121
  self,
1115
1122
  deployment_name: str,
@@ -1255,8 +1262,9 @@ class AsyncDeploymentsResource(AsyncAPIResource):
1255
1262
  image: str,
1256
1263
  listening_port: int,
1257
1264
  name: str,
1265
+ api_keys: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
1258
1266
  auth_enabled: bool | NotGiven = NOT_GIVEN,
1259
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
1267
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
1260
1268
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
1261
1269
  description: Optional[str] | NotGiven = NOT_GIVEN,
1262
1270
  envs: Dict[str, str] | NotGiven = NOT_GIVEN,
@@ -1279,6 +1287,7 @@ class AsyncDeploymentsResource(AsyncAPIResource):
1279
1287
  image=image,
1280
1288
  listening_port=listening_port,
1281
1289
  name=name,
1290
+ api_keys=api_keys,
1282
1291
  auth_enabled=auth_enabled,
1283
1292
  command=command,
1284
1293
  credentials_name=credentials_name,
@@ -1318,8 +1327,9 @@ class AsyncDeploymentsResource(AsyncAPIResource):
1318
1327
  deployment_name: str,
1319
1328
  *,
1320
1329
  project_id: int | None = None,
1330
+ api_keys: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
1321
1331
  auth_enabled: bool | NotGiven = NOT_GIVEN,
1322
- command: Optional[List[str]] | NotGiven = NOT_GIVEN,
1332
+ command: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
1323
1333
  containers: Optional[Iterable[deployment_update_params.Container]] | NotGiven = NOT_GIVEN,
1324
1334
  credentials_name: Optional[str] | NotGiven = NOT_GIVEN,
1325
1335
  description: Optional[str] | NotGiven = NOT_GIVEN,
@@ -1345,6 +1355,7 @@ class AsyncDeploymentsResource(AsyncAPIResource):
1345
1355
  response = await self.update(
1346
1356
  deployment_name=deployment_name,
1347
1357
  project_id=project_id,
1358
+ api_keys=api_keys,
1348
1359
  auth_enabled=auth_enabled,
1349
1360
  command=command,
1350
1361
  containers=containers,
@@ -1429,8 +1440,10 @@ class DeploymentsResourceWithRawResponse:
1429
1440
  self.get = to_raw_response_wrapper(
1430
1441
  deployments.get,
1431
1442
  )
1432
- self.get_api_key = to_raw_response_wrapper(
1433
- deployments.get_api_key,
1443
+ self.get_api_key = ( # pyright: ignore[reportDeprecated]
1444
+ to_raw_response_wrapper(
1445
+ deployments.get_api_key, # pyright: ignore[reportDeprecated],
1446
+ )
1434
1447
  )
1435
1448
  self.start = to_raw_response_wrapper(
1436
1449
  deployments.start,
@@ -1463,8 +1476,10 @@ class AsyncDeploymentsResourceWithRawResponse:
1463
1476
  self.get = async_to_raw_response_wrapper(
1464
1477
  deployments.get,
1465
1478
  )
1466
- self.get_api_key = async_to_raw_response_wrapper(
1467
- deployments.get_api_key,
1479
+ self.get_api_key = ( # pyright: ignore[reportDeprecated]
1480
+ async_to_raw_response_wrapper(
1481
+ deployments.get_api_key, # pyright: ignore[reportDeprecated],
1482
+ )
1468
1483
  )
1469
1484
  self.start = async_to_raw_response_wrapper(
1470
1485
  deployments.start,
@@ -1497,8 +1512,10 @@ class DeploymentsResourceWithStreamingResponse:
1497
1512
  self.get = to_streamed_response_wrapper(
1498
1513
  deployments.get,
1499
1514
  )
1500
- self.get_api_key = to_streamed_response_wrapper(
1501
- deployments.get_api_key,
1515
+ self.get_api_key = ( # pyright: ignore[reportDeprecated]
1516
+ to_streamed_response_wrapper(
1517
+ deployments.get_api_key, # pyright: ignore[reportDeprecated],
1518
+ )
1502
1519
  )
1503
1520
  self.start = to_streamed_response_wrapper(
1504
1521
  deployments.start,
@@ -1531,8 +1548,10 @@ class AsyncDeploymentsResourceWithStreamingResponse:
1531
1548
  self.get = async_to_streamed_response_wrapper(
1532
1549
  deployments.get,
1533
1550
  )
1534
- self.get_api_key = async_to_streamed_response_wrapper(
1535
- deployments.get_api_key,
1551
+ self.get_api_key = ( # pyright: ignore[reportDeprecated]
1552
+ async_to_streamed_response_wrapper(
1553
+ deployments.get_api_key, # pyright: ignore[reportDeprecated],
1554
+ )
1536
1555
  )
1537
1556
  self.start = async_to_streamed_response_wrapper(
1538
1557
  deployments.start,
@@ -4,14 +4,6 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .models import (
8
- ModelsResource,
9
- AsyncModelsResource,
10
- ModelsResourceWithRawResponse,
11
- AsyncModelsResourceWithRawResponse,
12
- ModelsResourceWithStreamingResponse,
13
- AsyncModelsResourceWithStreamingResponse,
14
- )
15
7
  from .flavors import (
16
8
  FlavorsResource,
17
9
  AsyncFlavorsResource,
@@ -62,6 +54,14 @@ from .deployments.deployments import (
62
54
  DeploymentsResourceWithStreamingResponse,
63
55
  AsyncDeploymentsResourceWithStreamingResponse,
64
56
  )
57
+ from .applications.applications import (
58
+ ApplicationsResource,
59
+ AsyncApplicationsResource,
60
+ ApplicationsResourceWithRawResponse,
61
+ AsyncApplicationsResourceWithRawResponse,
62
+ ApplicationsResourceWithStreamingResponse,
63
+ AsyncApplicationsResourceWithStreamingResponse,
64
+ )
65
65
  from ....types.cloud.inference_region_capacity_list import InferenceRegionCapacityList
66
66
 
67
67
  __all__ = ["InferenceResource", "AsyncInferenceResource"]
@@ -72,10 +72,6 @@ class InferenceResource(SyncAPIResource):
72
72
  def flavors(self) -> FlavorsResource:
73
73
  return FlavorsResource(self._client)
74
74
 
75
- @cached_property
76
- def models(self) -> ModelsResource:
77
- return ModelsResource(self._client)
78
-
79
75
  @cached_property
80
76
  def deployments(self) -> DeploymentsResource:
81
77
  return DeploymentsResource(self._client)
@@ -92,6 +88,10 @@ class InferenceResource(SyncAPIResource):
92
88
  def api_keys(self) -> APIKeysResource:
93
89
  return APIKeysResource(self._client)
94
90
 
91
+ @cached_property
92
+ def applications(self) -> ApplicationsResource:
93
+ return ApplicationsResource(self._client)
94
+
95
95
  @cached_property
96
96
  def with_raw_response(self) -> InferenceResourceWithRawResponse:
97
97
  """
@@ -136,10 +136,6 @@ class AsyncInferenceResource(AsyncAPIResource):
136
136
  def flavors(self) -> AsyncFlavorsResource:
137
137
  return AsyncFlavorsResource(self._client)
138
138
 
139
- @cached_property
140
- def models(self) -> AsyncModelsResource:
141
- return AsyncModelsResource(self._client)
142
-
143
139
  @cached_property
144
140
  def deployments(self) -> AsyncDeploymentsResource:
145
141
  return AsyncDeploymentsResource(self._client)
@@ -156,6 +152,10 @@ class AsyncInferenceResource(AsyncAPIResource):
156
152
  def api_keys(self) -> AsyncAPIKeysResource:
157
153
  return AsyncAPIKeysResource(self._client)
158
154
 
155
+ @cached_property
156
+ def applications(self) -> AsyncApplicationsResource:
157
+ return AsyncApplicationsResource(self._client)
158
+
159
159
  @cached_property
160
160
  def with_raw_response(self) -> AsyncInferenceResourceWithRawResponse:
161
161
  """
@@ -207,10 +207,6 @@ class InferenceResourceWithRawResponse:
207
207
  def flavors(self) -> FlavorsResourceWithRawResponse:
208
208
  return FlavorsResourceWithRawResponse(self._inference.flavors)
209
209
 
210
- @cached_property
211
- def models(self) -> ModelsResourceWithRawResponse:
212
- return ModelsResourceWithRawResponse(self._inference.models)
213
-
214
210
  @cached_property
215
211
  def deployments(self) -> DeploymentsResourceWithRawResponse:
216
212
  return DeploymentsResourceWithRawResponse(self._inference.deployments)
@@ -227,6 +223,10 @@ class InferenceResourceWithRawResponse:
227
223
  def api_keys(self) -> APIKeysResourceWithRawResponse:
228
224
  return APIKeysResourceWithRawResponse(self._inference.api_keys)
229
225
 
226
+ @cached_property
227
+ def applications(self) -> ApplicationsResourceWithRawResponse:
228
+ return ApplicationsResourceWithRawResponse(self._inference.applications)
229
+
230
230
 
231
231
  class AsyncInferenceResourceWithRawResponse:
232
232
  def __init__(self, inference: AsyncInferenceResource) -> None:
@@ -240,10 +240,6 @@ class AsyncInferenceResourceWithRawResponse:
240
240
  def flavors(self) -> AsyncFlavorsResourceWithRawResponse:
241
241
  return AsyncFlavorsResourceWithRawResponse(self._inference.flavors)
242
242
 
243
- @cached_property
244
- def models(self) -> AsyncModelsResourceWithRawResponse:
245
- return AsyncModelsResourceWithRawResponse(self._inference.models)
246
-
247
243
  @cached_property
248
244
  def deployments(self) -> AsyncDeploymentsResourceWithRawResponse:
249
245
  return AsyncDeploymentsResourceWithRawResponse(self._inference.deployments)
@@ -260,6 +256,10 @@ class AsyncInferenceResourceWithRawResponse:
260
256
  def api_keys(self) -> AsyncAPIKeysResourceWithRawResponse:
261
257
  return AsyncAPIKeysResourceWithRawResponse(self._inference.api_keys)
262
258
 
259
+ @cached_property
260
+ def applications(self) -> AsyncApplicationsResourceWithRawResponse:
261
+ return AsyncApplicationsResourceWithRawResponse(self._inference.applications)
262
+
263
263
 
264
264
  class InferenceResourceWithStreamingResponse:
265
265
  def __init__(self, inference: InferenceResource) -> None:
@@ -273,10 +273,6 @@ class InferenceResourceWithStreamingResponse:
273
273
  def flavors(self) -> FlavorsResourceWithStreamingResponse:
274
274
  return FlavorsResourceWithStreamingResponse(self._inference.flavors)
275
275
 
276
- @cached_property
277
- def models(self) -> ModelsResourceWithStreamingResponse:
278
- return ModelsResourceWithStreamingResponse(self._inference.models)
279
-
280
276
  @cached_property
281
277
  def deployments(self) -> DeploymentsResourceWithStreamingResponse:
282
278
  return DeploymentsResourceWithStreamingResponse(self._inference.deployments)
@@ -293,6 +289,10 @@ class InferenceResourceWithStreamingResponse:
293
289
  def api_keys(self) -> APIKeysResourceWithStreamingResponse:
294
290
  return APIKeysResourceWithStreamingResponse(self._inference.api_keys)
295
291
 
292
+ @cached_property
293
+ def applications(self) -> ApplicationsResourceWithStreamingResponse:
294
+ return ApplicationsResourceWithStreamingResponse(self._inference.applications)
295
+
296
296
 
297
297
  class AsyncInferenceResourceWithStreamingResponse:
298
298
  def __init__(self, inference: AsyncInferenceResource) -> None:
@@ -306,10 +306,6 @@ class AsyncInferenceResourceWithStreamingResponse:
306
306
  def flavors(self) -> AsyncFlavorsResourceWithStreamingResponse:
307
307
  return AsyncFlavorsResourceWithStreamingResponse(self._inference.flavors)
308
308
 
309
- @cached_property
310
- def models(self) -> AsyncModelsResourceWithStreamingResponse:
311
- return AsyncModelsResourceWithStreamingResponse(self._inference.models)
312
-
313
309
  @cached_property
314
310
  def deployments(self) -> AsyncDeploymentsResourceWithStreamingResponse:
315
311
  return AsyncDeploymentsResourceWithStreamingResponse(self._inference.deployments)
@@ -325,3 +321,7 @@ class AsyncInferenceResourceWithStreamingResponse:
325
321
  @cached_property
326
322
  def api_keys(self) -> AsyncAPIKeysResourceWithStreamingResponse:
327
323
  return AsyncAPIKeysResourceWithStreamingResponse(self._inference.api_keys)
324
+
325
+ @cached_property
326
+ def applications(self) -> AsyncApplicationsResourceWithStreamingResponse:
327
+ return AsyncApplicationsResourceWithStreamingResponse(self._inference.applications)
@@ -22,7 +22,6 @@ from ....types.cloud.inference import (
22
22
  registry_credential_replace_params,
23
23
  )
24
24
  from ....types.cloud.inference.inference_registry_credentials import InferenceRegistryCredentials
25
- from ....types.cloud.inference.inference_registry_credentials_create import InferenceRegistryCredentialsCreate
26
25
 
27
26
  __all__ = ["RegistryCredentialsResource", "AsyncRegistryCredentialsResource"]
28
27
 
@@ -61,7 +60,7 @@ class RegistryCredentialsResource(SyncAPIResource):
61
60
  extra_query: Query | None = None,
62
61
  extra_body: Body | None = None,
63
62
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
64
- ) -> InferenceRegistryCredentialsCreate:
63
+ ) -> InferenceRegistryCredentials:
65
64
  """
66
65
  Create inference registry credential
67
66
 
@@ -100,7 +99,7 @@ class RegistryCredentialsResource(SyncAPIResource):
100
99
  options=make_request_options(
101
100
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
102
101
  ),
103
- cast_to=InferenceRegistryCredentialsCreate,
102
+ cast_to=InferenceRegistryCredentials,
104
103
  )
105
104
 
106
105
  def list(
@@ -251,7 +250,7 @@ class RegistryCredentialsResource(SyncAPIResource):
251
250
  extra_query: Query | None = None,
252
251
  extra_body: Body | None = None,
253
252
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
254
- ) -> InferenceRegistryCredentialsCreate:
253
+ ) -> InferenceRegistryCredentials:
255
254
  """
256
255
  Replace inference registry credential
257
256
 
@@ -291,7 +290,7 @@ class RegistryCredentialsResource(SyncAPIResource):
291
290
  options=make_request_options(
292
291
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
293
292
  ),
294
- cast_to=InferenceRegistryCredentialsCreate,
293
+ cast_to=InferenceRegistryCredentials,
295
294
  )
296
295
 
297
296
 
@@ -329,7 +328,7 @@ class AsyncRegistryCredentialsResource(AsyncAPIResource):
329
328
  extra_query: Query | None = None,
330
329
  extra_body: Body | None = None,
331
330
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
332
- ) -> InferenceRegistryCredentialsCreate:
331
+ ) -> InferenceRegistryCredentials:
333
332
  """
334
333
  Create inference registry credential
335
334
 
@@ -368,7 +367,7 @@ class AsyncRegistryCredentialsResource(AsyncAPIResource):
368
367
  options=make_request_options(
369
368
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
370
369
  ),
371
- cast_to=InferenceRegistryCredentialsCreate,
370
+ cast_to=InferenceRegistryCredentials,
372
371
  )
373
372
 
374
373
  def list(
@@ -519,7 +518,7 @@ class AsyncRegistryCredentialsResource(AsyncAPIResource):
519
518
  extra_query: Query | None = None,
520
519
  extra_body: Body | None = None,
521
520
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
522
- ) -> InferenceRegistryCredentialsCreate:
521
+ ) -> InferenceRegistryCredentials:
523
522
  """
524
523
  Replace inference registry credential
525
524
 
@@ -559,7 +558,7 @@ class AsyncRegistryCredentialsResource(AsyncAPIResource):
559
558
  options=make_request_options(
560
559
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
561
560
  ),
562
- cast_to=InferenceRegistryCredentialsCreate,
561
+ cast_to=InferenceRegistryCredentials,
563
562
  )
564
563
 
565
564