gcore 0.1.0a2__py3-none-any.whl → 0.3.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 (293) hide show
  1. gcore/__init__.py +5 -0
  2. gcore/_base_client.py +22 -2
  3. gcore/_client.py +9 -0
  4. gcore/_models.py +2 -0
  5. gcore/_types.py +2 -0
  6. gcore/_utils/_proxy.py +4 -1
  7. gcore/_utils/_resources_proxy.py +24 -0
  8. gcore/_version.py +1 -1
  9. gcore/resources/__init__.py +14 -0
  10. gcore/resources/cloud/baremetal/flavors.py +2 -2
  11. gcore/resources/cloud/baremetal/images.py +2 -2
  12. gcore/resources/cloud/baremetal/servers.py +280 -52
  13. gcore/resources/cloud/billing_reservations.py +24 -0
  14. gcore/resources/cloud/file_shares/file_shares.py +16 -0
  15. gcore/resources/cloud/floating_ips.py +4 -4
  16. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +358 -8
  17. gcore/resources/cloud/gpu_baremetal_clusters/images.py +206 -2
  18. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +84 -4
  19. gcore/resources/cloud/inference/deployments/deployments.py +328 -10
  20. gcore/resources/cloud/instances/flavors.py +2 -2
  21. gcore/resources/cloud/instances/images.py +318 -2
  22. gcore/resources/cloud/instances/instances.py +534 -70
  23. gcore/resources/cloud/instances/interfaces.py +4 -4
  24. gcore/resources/cloud/load_balancers/flavors.py +2 -2
  25. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +302 -20
  26. gcore/resources/cloud/load_balancers/l7_policies/rules.py +326 -0
  27. gcore/resources/cloud/load_balancers/listeners.py +385 -20
  28. gcore/resources/cloud/load_balancers/load_balancers.py +392 -24
  29. gcore/resources/cloud/load_balancers/pools/health_monitors.py +24 -0
  30. gcore/resources/cloud/load_balancers/pools/members.py +34 -6
  31. gcore/resources/cloud/load_balancers/pools/pools.py +388 -8
  32. gcore/resources/cloud/networks/networks.py +72 -16
  33. gcore/resources/cloud/networks/subnets.py +6 -6
  34. gcore/resources/cloud/registries/registries.py +6 -10
  35. gcore/resources/cloud/registries/users.py +4 -10
  36. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +10 -10
  37. gcore/resources/cloud/secrets.py +56 -11
  38. gcore/resources/cloud/security_groups/security_groups.py +2 -2
  39. gcore/resources/cloud/ssh_keys.py +2 -2
  40. gcore/resources/cloud/tasks.py +203 -184
  41. gcore/resources/cloud/users/role_assignments.py +4 -4
  42. gcore/resources/cloud/volumes.py +18 -18
  43. gcore/resources/waap/__init__.py +131 -0
  44. gcore/resources/waap/advanced_rules.py +135 -0
  45. gcore/resources/waap/clients.py +135 -0
  46. gcore/resources/waap/custom_page_sets.py +805 -0
  47. gcore/resources/waap/domains/__init__.py +173 -0
  48. gcore/resources/waap/domains/advanced_rules.py +876 -0
  49. gcore/resources/waap/domains/analytics/__init__.py +33 -0
  50. gcore/resources/waap/domains/analytics/analytics.py +676 -0
  51. gcore/resources/waap/domains/analytics/requests.py +378 -0
  52. gcore/resources/waap/domains/api_discovery/__init__.py +33 -0
  53. gcore/resources/waap/domains/api_discovery/api_discovery.py +530 -0
  54. gcore/resources/waap/domains/api_discovery/scan_results.py +352 -0
  55. gcore/resources/waap/domains/api_path_groups.py +163 -0
  56. gcore/resources/waap/domains/api_paths.py +771 -0
  57. gcore/resources/waap/domains/custom_rules.py +889 -0
  58. gcore/resources/waap/domains/domains.py +914 -0
  59. gcore/resources/waap/domains/firewall_rules.py +884 -0
  60. gcore/resources/waap/domains/insight_silences.py +689 -0
  61. gcore/resources/waap/domains/insights.py +425 -0
  62. gcore/resources/waap/domains/policies.py +173 -0
  63. gcore/resources/waap/domains/settings.py +271 -0
  64. gcore/resources/waap/ip_info.py +1017 -0
  65. gcore/resources/waap/organizations.py +217 -0
  66. gcore/resources/waap/statistics.py +225 -0
  67. gcore/resources/waap/tags.py +233 -0
  68. gcore/resources/waap/waap.py +391 -0
  69. gcore/types/cloud/__init__.py +1 -0
  70. gcore/types/cloud/allowed_address_pairs.py +2 -2
  71. gcore/types/cloud/baremetal/baremetal_server.py +1 -1
  72. gcore/types/cloud/baremetal/image_list_params.py +1 -1
  73. gcore/types/cloud/baremetal/server_create_params.py +9 -9
  74. gcore/types/cloud/baremetal/server_list_params.py +8 -8
  75. gcore/types/cloud/baremetal/server_rebuild_params.py +1 -1
  76. gcore/types/cloud/baremetal_flavor.py +3 -3
  77. gcore/types/cloud/billing_reservation_list_params.py +5 -0
  78. gcore/types/cloud/container_probe_config.py +1 -1
  79. gcore/types/cloud/container_probe_config_create_param.py +2 -3
  80. gcore/types/cloud/container_scale_triggers.py +2 -2
  81. gcore/types/cloud/file_share.py +3 -0
  82. gcore/types/cloud/file_share_list_params.py +7 -1
  83. gcore/types/cloud/floating_ip_detailed.py +1 -1
  84. gcore/types/cloud/floating_ip_list_params.py +2 -2
  85. gcore/types/cloud/gpu_baremetal_cluster.py +1 -1
  86. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +21 -1
  87. gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +1 -1
  88. gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +1 -1
  89. gcore/types/cloud/gpu_baremetal_cluster_server.py +1 -1
  90. gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +1 -1
  91. gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +10 -10
  92. gcore/types/cloud/gpu_baremetal_flavor.py +3 -3
  93. gcore/types/cloud/image.py +1 -1
  94. gcore/types/cloud/inference/deployment_create_params.py +4 -4
  95. gcore/types/cloud/inference/deployment_update_params.py +206 -9
  96. gcore/types/cloud/inference/inference.py +5 -5
  97. gcore/types/cloud/instance.py +1 -1
  98. gcore/types/cloud/instance_create_params.py +8 -10
  99. gcore/types/cloud/instance_list_params.py +8 -8
  100. gcore/types/cloud/instances/flavor_list_suitable_params.py +4 -1
  101. gcore/types/cloud/instances/image_list_params.py +1 -1
  102. gcore/types/cloud/instances/instance_flavor.py +3 -3
  103. gcore/types/cloud/instances/interface_attach_params.py +10 -10
  104. gcore/types/cloud/load_balancer_create_params.py +17 -15
  105. gcore/types/cloud/load_balancer_flavor_detail.py +3 -3
  106. gcore/types/cloud/load_balancer_l7_policy.py +5 -5
  107. gcore/types/cloud/load_balancer_list_params.py +5 -5
  108. gcore/types/cloud/load_balancer_listener_detail.py +17 -17
  109. gcore/types/cloud/load_balancer_pool.py +13 -13
  110. gcore/types/cloud/load_balancer_pool_list.py +99 -4
  111. gcore/types/cloud/load_balancers/l7_policy_create_params.py +5 -5
  112. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +5 -5
  113. gcore/types/cloud/load_balancers/listener_create_params.py +6 -4
  114. gcore/types/cloud/load_balancers/listener_get_params.py +3 -1
  115. gcore/types/cloud/load_balancers/listener_list_params.py +4 -2
  116. gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
  117. gcore/types/cloud/load_balancers/pool_create_params.py +6 -4
  118. gcore/types/cloud/load_balancers/pool_list_params.py +5 -6
  119. gcore/types/cloud/load_balancers/pool_update_params.py +6 -4
  120. gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +2 -0
  121. gcore/types/cloud/load_balancers/pools/member_add_params.py +5 -3
  122. gcore/types/cloud/member.py +2 -2
  123. gcore/types/cloud/network.py +22 -22
  124. gcore/types/cloud/network_create_params.py +2 -0
  125. gcore/types/cloud/network_details.py +25 -24
  126. gcore/types/cloud/network_list_params.py +15 -10
  127. gcore/types/cloud/network_update_params.py +2 -0
  128. gcore/types/cloud/networks/subnet_create_params.py +1 -1
  129. gcore/types/cloud/networks/subnet_list_params.py +2 -2
  130. gcore/types/cloud/quota_get_all_response.py +18 -0
  131. gcore/types/cloud/quota_get_by_region_response.py +18 -0
  132. gcore/types/cloud/quotas/request_create_params.py +9 -0
  133. gcore/types/cloud/quotas/request_get_response.py +9 -0
  134. gcore/types/cloud/quotas/request_list_response.py +9 -0
  135. gcore/types/cloud/region.py +4 -4
  136. gcore/types/cloud/registries/user_create_multiple_params.py +3 -5
  137. gcore/types/cloud/registries/user_create_params.py +3 -5
  138. gcore/types/cloud/registry_create_params.py +3 -5
  139. gcore/types/cloud/reserved_fixed_ip_create_params.py +2 -2
  140. gcore/types/cloud/reserved_fixed_ip_list_params.py +3 -3
  141. gcore/types/cloud/secret_list_params.py +24 -0
  142. gcore/types/cloud/security_group_list_params.py +1 -1
  143. gcore/types/cloud/session_persistence.py +1 -1
  144. gcore/types/cloud/ssh_key_created.py +3 -6
  145. gcore/types/cloud/task.py +1 -4
  146. gcore/types/cloud/task_list_params.py +56 -46
  147. gcore/types/cloud/users/role_assignment_create_params.py +1 -1
  148. gcore/types/cloud/users/role_assignment_update_params.py +1 -1
  149. gcore/types/cloud/volume_create_params.py +6 -6
  150. gcore/types/cloud/volume_list_params.py +3 -3
  151. gcore/types/waap/__init__.py +108 -0
  152. gcore/types/waap/client_me_response.py +34 -0
  153. gcore/types/waap/custom_page_set_create_params.py +35 -0
  154. gcore/types/waap/custom_page_set_list_params.py +25 -0
  155. gcore/types/waap/custom_page_set_preview_params.py +34 -0
  156. gcore/types/waap/custom_page_set_update_params.py +35 -0
  157. gcore/types/waap/domain_list_params.py +30 -0
  158. gcore/types/waap/domain_list_rule_sets_response.py +10 -0
  159. gcore/types/waap/domain_update_params.py +12 -0
  160. gcore/types/waap/domains/__init__.py +47 -0
  161. gcore/types/waap/domains/advanced_rule_create_params.py +80 -0
  162. gcore/types/waap/domains/advanced_rule_list_params.py +58 -0
  163. gcore/types/waap/domains/advanced_rule_update_params.py +83 -0
  164. gcore/types/waap/domains/analytics/__init__.py +5 -0
  165. gcore/types/waap/domains/analytics/request_list_params.py +53 -0
  166. gcore/types/waap/domains/analytics_get_event_statistics_params.py +34 -0
  167. gcore/types/waap/domains/analytics_list_ddos_attacks_params.py +28 -0
  168. gcore/types/waap/domains/analytics_list_ddos_info_params.py +31 -0
  169. gcore/types/waap/domains/analytics_list_event_traffic_params.py +26 -0
  170. gcore/types/waap/domains/analytics_list_event_traffic_response.py +10 -0
  171. gcore/types/waap/domains/api_discovery/__init__.py +7 -0
  172. gcore/types/waap/domains/api_discovery/scan_result_get_response.py +29 -0
  173. gcore/types/waap/domains/api_discovery/scan_result_list_params.py +41 -0
  174. gcore/types/waap/domains/api_discovery/scan_result_list_response.py +29 -0
  175. gcore/types/waap/domains/api_discovery_get_settings_response.py +36 -0
  176. gcore/types/waap/domains/api_discovery_scan_openapi_response.py +10 -0
  177. gcore/types/waap/domains/api_discovery_update_settings_params.py +34 -0
  178. gcore/types/waap/domains/api_discovery_update_settings_response.py +36 -0
  179. gcore/types/waap/domains/api_discovery_upload_openapi_params.py +19 -0
  180. gcore/types/waap/domains/api_discovery_upload_openapi_response.py +10 -0
  181. gcore/types/waap/domains/api_path_create_params.py +31 -0
  182. gcore/types/waap/domains/api_path_create_response.py +50 -0
  183. gcore/types/waap/domains/api_path_get_response.py +50 -0
  184. gcore/types/waap/domains/api_path_group_list_response.py +12 -0
  185. gcore/types/waap/domains/api_path_list_params.py +62 -0
  186. gcore/types/waap/domains/api_path_list_response.py +50 -0
  187. gcore/types/waap/domains/api_path_update_params.py +29 -0
  188. gcore/types/waap/domains/custom_rule_create_params.py +368 -0
  189. gcore/types/waap/domains/custom_rule_delete_multiple_params.py +13 -0
  190. gcore/types/waap/domains/custom_rule_list_params.py +35 -0
  191. gcore/types/waap/domains/custom_rule_update_params.py +371 -0
  192. gcore/types/waap/domains/firewall_rule_create_params.py +75 -0
  193. gcore/types/waap/domains/firewall_rule_delete_multiple_params.py +13 -0
  194. gcore/types/waap/domains/firewall_rule_list_params.py +33 -0
  195. gcore/types/waap/domains/firewall_rule_update_params.py +78 -0
  196. gcore/types/waap/domains/insight_list_params.py +34 -0
  197. gcore/types/waap/domains/insight_replace_params.py +17 -0
  198. gcore/types/waap/domains/insight_silence_create_params.py +28 -0
  199. gcore/types/waap/domains/insight_silence_list_params.py +33 -0
  200. gcore/types/waap/domains/insight_silence_update_params.py +28 -0
  201. gcore/types/waap/domains/setting_update_params.py +48 -0
  202. gcore/types/waap/ip_info_get_attack_time_series_params.py +12 -0
  203. gcore/types/waap/ip_info_get_attack_time_series_response.py +10 -0
  204. gcore/types/waap/ip_info_get_blocked_requests_params.py +15 -0
  205. gcore/types/waap/ip_info_get_blocked_requests_response.py +10 -0
  206. gcore/types/waap/ip_info_get_counts_params.py +19 -0
  207. gcore/types/waap/ip_info_get_ddos_attack_series_params.py +12 -0
  208. gcore/types/waap/ip_info_get_params.py +12 -0
  209. gcore/types/waap/ip_info_get_top_sessions_params.py +15 -0
  210. gcore/types/waap/ip_info_get_top_sessions_response.py +10 -0
  211. gcore/types/waap/ip_info_get_top_urls_params.py +15 -0
  212. gcore/types/waap/ip_info_get_top_urls_response.py +10 -0
  213. gcore/types/waap/ip_info_get_top_user_agents_params.py +15 -0
  214. gcore/types/waap/ip_info_get_top_user_agents_response.py +10 -0
  215. gcore/types/waap/ip_info_list_attacked_countries_params.py +12 -0
  216. gcore/types/waap/ip_info_list_attacked_countries_response.py +10 -0
  217. gcore/types/waap/organization_list_params.py +22 -0
  218. gcore/types/waap/statistic_get_usage_series_params.py +25 -0
  219. gcore/types/waap/tag_list_params.py +28 -0
  220. gcore/types/waap/waap_advanced_rule.py +83 -0
  221. gcore/types/waap/waap_advanced_rule_descriptor.py +49 -0
  222. gcore/types/waap/waap_advanced_rule_descriptor_list.py +15 -0
  223. gcore/types/waap/waap_block_csrf_page_data.py +28 -0
  224. gcore/types/waap/waap_block_csrf_page_data_param.py +28 -0
  225. gcore/types/waap/waap_block_page_data.py +28 -0
  226. gcore/types/waap/waap_block_page_data_param.py +28 -0
  227. gcore/types/waap/waap_blocked_statistics.py +36 -0
  228. gcore/types/waap/waap_captcha_page_data.py +31 -0
  229. gcore/types/waap/waap_captcha_page_data_param.py +31 -0
  230. gcore/types/waap/waap_common_tag.py +16 -0
  231. gcore/types/waap/waap_cookie_disabled_page_data.py +18 -0
  232. gcore/types/waap/waap_cookie_disabled_page_data_param.py +18 -0
  233. gcore/types/waap/waap_count_statistics.py +36 -0
  234. gcore/types/waap/waap_custom_page_preview.py +10 -0
  235. gcore/types/waap/waap_custom_page_set.py +36 -0
  236. gcore/types/waap/waap_custom_rule.py +373 -0
  237. gcore/types/waap/waap_customer_rule_state.py +7 -0
  238. gcore/types/waap/waap_ddos_attack.py +16 -0
  239. gcore/types/waap/waap_ddos_info.py +17 -0
  240. gcore/types/waap/waap_detailed_domain.py +37 -0
  241. gcore/types/waap/waap_domain_api_settings.py +22 -0
  242. gcore/types/waap/waap_domain_ddos_settings.py +31 -0
  243. gcore/types/waap/waap_domain_policy.py +29 -0
  244. gcore/types/waap/waap_domain_settings_model.py +15 -0
  245. gcore/types/waap/waap_domain_status.py +7 -0
  246. gcore/types/waap/waap_event_statistics.py +15 -0
  247. gcore/types/waap/waap_firewall_rule.py +78 -0
  248. gcore/types/waap/waap_get_account_overview_response.py +34 -0
  249. gcore/types/waap/waap_handshake_page_data.py +25 -0
  250. gcore/types/waap/waap_handshake_page_data_param.py +25 -0
  251. gcore/types/waap/waap_insight.py +38 -0
  252. gcore/types/waap/waap_insight_silence.py +28 -0
  253. gcore/types/waap/waap_insight_silence_sort_by.py +9 -0
  254. gcore/types/waap/waap_insight_sort_by.py +20 -0
  255. gcore/types/waap/waap_insight_status.py +7 -0
  256. gcore/types/waap/waap_ip_country_attack.py +16 -0
  257. gcore/types/waap/waap_ip_ddos_info_model.py +23 -0
  258. gcore/types/waap/waap_ip_info.py +57 -0
  259. gcore/types/waap/waap_ip_info_counts.py +16 -0
  260. gcore/types/waap/waap_javascript_disabled_page_data.py +18 -0
  261. gcore/types/waap/waap_javascript_disabled_page_data_param.py +18 -0
  262. gcore/types/waap/waap_network_details.py +17 -0
  263. gcore/types/waap/waap_organization.py +13 -0
  264. gcore/types/waap/waap_page_type.py +9 -0
  265. gcore/types/waap/waap_paginated_custom_page_set.py +22 -0
  266. gcore/types/waap/waap_paginated_ddos_attack.py +22 -0
  267. gcore/types/waap/waap_paginated_ddos_info.py +22 -0
  268. gcore/types/waap/waap_paginated_request_summary.py +22 -0
  269. gcore/types/waap/waap_pattern_matched_tag.py +37 -0
  270. gcore/types/waap/waap_policy_action.py +7 -0
  271. gcore/types/waap/waap_policy_mode.py +10 -0
  272. gcore/types/waap/waap_request_details.py +92 -0
  273. gcore/types/waap/waap_request_organization.py +13 -0
  274. gcore/types/waap/waap_request_summary.py +59 -0
  275. gcore/types/waap/waap_resolution.py +7 -0
  276. gcore/types/waap/waap_rule_action_type.py +7 -0
  277. gcore/types/waap/waap_rule_blocked_requests.py +16 -0
  278. gcore/types/waap/waap_rule_set.py +41 -0
  279. gcore/types/waap/waap_statistic_item.py +18 -0
  280. gcore/types/waap/waap_statistics_series.py +16 -0
  281. gcore/types/waap/waap_summary_domain.py +26 -0
  282. gcore/types/waap/waap_tag.py +16 -0
  283. gcore/types/waap/waap_time_series_attack.py +23 -0
  284. gcore/types/waap/waap_top_session.py +24 -0
  285. gcore/types/waap/waap_top_url.py +13 -0
  286. gcore/types/waap/waap_top_user_agent.py +13 -0
  287. gcore/types/waap/waap_traffic_metrics.py +68 -0
  288. gcore/types/waap/waap_traffic_type.py +28 -0
  289. gcore/types/waap/waap_user_agent_details.py +40 -0
  290. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/METADATA +3 -3
  291. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/RECORD +293 -126
  292. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/WHEEL +0 -0
  293. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,391 @@
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 .tags import (
8
+ TagsResource,
9
+ AsyncTagsResource,
10
+ TagsResourceWithRawResponse,
11
+ AsyncTagsResourceWithRawResponse,
12
+ TagsResourceWithStreamingResponse,
13
+ AsyncTagsResourceWithStreamingResponse,
14
+ )
15
+ from .clients import (
16
+ ClientsResource,
17
+ AsyncClientsResource,
18
+ ClientsResourceWithRawResponse,
19
+ AsyncClientsResourceWithRawResponse,
20
+ ClientsResourceWithStreamingResponse,
21
+ AsyncClientsResourceWithStreamingResponse,
22
+ )
23
+ from .ip_info import (
24
+ IPInfoResource,
25
+ AsyncIPInfoResource,
26
+ IPInfoResourceWithRawResponse,
27
+ AsyncIPInfoResourceWithRawResponse,
28
+ IPInfoResourceWithStreamingResponse,
29
+ AsyncIPInfoResourceWithStreamingResponse,
30
+ )
31
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
32
+ from ..._compat import cached_property
33
+ from .statistics import (
34
+ StatisticsResource,
35
+ AsyncStatisticsResource,
36
+ StatisticsResourceWithRawResponse,
37
+ AsyncStatisticsResourceWithRawResponse,
38
+ StatisticsResourceWithStreamingResponse,
39
+ AsyncStatisticsResourceWithStreamingResponse,
40
+ )
41
+ from ..._resource import SyncAPIResource, AsyncAPIResource
42
+ from ..._response import (
43
+ to_raw_response_wrapper,
44
+ to_streamed_response_wrapper,
45
+ async_to_raw_response_wrapper,
46
+ async_to_streamed_response_wrapper,
47
+ )
48
+ from .organizations import (
49
+ OrganizationsResource,
50
+ AsyncOrganizationsResource,
51
+ OrganizationsResourceWithRawResponse,
52
+ AsyncOrganizationsResourceWithRawResponse,
53
+ OrganizationsResourceWithStreamingResponse,
54
+ AsyncOrganizationsResourceWithStreamingResponse,
55
+ )
56
+ from ..._base_client import make_request_options
57
+ from .advanced_rules import (
58
+ AdvancedRulesResource,
59
+ AsyncAdvancedRulesResource,
60
+ AdvancedRulesResourceWithRawResponse,
61
+ AsyncAdvancedRulesResourceWithRawResponse,
62
+ AdvancedRulesResourceWithStreamingResponse,
63
+ AsyncAdvancedRulesResourceWithStreamingResponse,
64
+ )
65
+ from .domains.domains import (
66
+ DomainsResource,
67
+ AsyncDomainsResource,
68
+ DomainsResourceWithRawResponse,
69
+ AsyncDomainsResourceWithRawResponse,
70
+ DomainsResourceWithStreamingResponse,
71
+ AsyncDomainsResourceWithStreamingResponse,
72
+ )
73
+ from .custom_page_sets import (
74
+ CustomPageSetsResource,
75
+ AsyncCustomPageSetsResource,
76
+ CustomPageSetsResourceWithRawResponse,
77
+ AsyncCustomPageSetsResourceWithRawResponse,
78
+ CustomPageSetsResourceWithStreamingResponse,
79
+ AsyncCustomPageSetsResourceWithStreamingResponse,
80
+ )
81
+ from ...types.waap.waap_get_account_overview_response import WaapGetAccountOverviewResponse
82
+
83
+ __all__ = ["WaapResource", "AsyncWaapResource"]
84
+
85
+
86
+ class WaapResource(SyncAPIResource):
87
+ @cached_property
88
+ def clients(self) -> ClientsResource:
89
+ return ClientsResource(self._client)
90
+
91
+ @cached_property
92
+ def statistics(self) -> StatisticsResource:
93
+ return StatisticsResource(self._client)
94
+
95
+ @cached_property
96
+ def domains(self) -> DomainsResource:
97
+ return DomainsResource(self._client)
98
+
99
+ @cached_property
100
+ def custom_page_sets(self) -> CustomPageSetsResource:
101
+ return CustomPageSetsResource(self._client)
102
+
103
+ @cached_property
104
+ def advanced_rules(self) -> AdvancedRulesResource:
105
+ return AdvancedRulesResource(self._client)
106
+
107
+ @cached_property
108
+ def tags(self) -> TagsResource:
109
+ return TagsResource(self._client)
110
+
111
+ @cached_property
112
+ def organizations(self) -> OrganizationsResource:
113
+ return OrganizationsResource(self._client)
114
+
115
+ @cached_property
116
+ def ip_info(self) -> IPInfoResource:
117
+ return IPInfoResource(self._client)
118
+
119
+ @cached_property
120
+ def with_raw_response(self) -> WaapResourceWithRawResponse:
121
+ """
122
+ This property can be used as a prefix for any HTTP method call to return
123
+ the raw response object instead of the parsed content.
124
+
125
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
126
+ """
127
+ return WaapResourceWithRawResponse(self)
128
+
129
+ @cached_property
130
+ def with_streaming_response(self) -> WaapResourceWithStreamingResponse:
131
+ """
132
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
133
+
134
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
135
+ """
136
+ return WaapResourceWithStreamingResponse(self)
137
+
138
+ def get_account_overview(
139
+ self,
140
+ *,
141
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
142
+ # The extra values given here take precedence over values defined on the client or passed to this method.
143
+ extra_headers: Headers | None = None,
144
+ extra_query: Query | None = None,
145
+ extra_body: Body | None = None,
146
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
147
+ ) -> WaapGetAccountOverviewResponse:
148
+ """Get information about WAAP service for the client"""
149
+ return self._get(
150
+ "/waap/v1/clients/me",
151
+ options=make_request_options(
152
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
153
+ ),
154
+ cast_to=WaapGetAccountOverviewResponse,
155
+ )
156
+
157
+
158
+ class AsyncWaapResource(AsyncAPIResource):
159
+ @cached_property
160
+ def clients(self) -> AsyncClientsResource:
161
+ return AsyncClientsResource(self._client)
162
+
163
+ @cached_property
164
+ def statistics(self) -> AsyncStatisticsResource:
165
+ return AsyncStatisticsResource(self._client)
166
+
167
+ @cached_property
168
+ def domains(self) -> AsyncDomainsResource:
169
+ return AsyncDomainsResource(self._client)
170
+
171
+ @cached_property
172
+ def custom_page_sets(self) -> AsyncCustomPageSetsResource:
173
+ return AsyncCustomPageSetsResource(self._client)
174
+
175
+ @cached_property
176
+ def advanced_rules(self) -> AsyncAdvancedRulesResource:
177
+ return AsyncAdvancedRulesResource(self._client)
178
+
179
+ @cached_property
180
+ def tags(self) -> AsyncTagsResource:
181
+ return AsyncTagsResource(self._client)
182
+
183
+ @cached_property
184
+ def organizations(self) -> AsyncOrganizationsResource:
185
+ return AsyncOrganizationsResource(self._client)
186
+
187
+ @cached_property
188
+ def ip_info(self) -> AsyncIPInfoResource:
189
+ return AsyncIPInfoResource(self._client)
190
+
191
+ @cached_property
192
+ def with_raw_response(self) -> AsyncWaapResourceWithRawResponse:
193
+ """
194
+ This property can be used as a prefix for any HTTP method call to return
195
+ the raw response object instead of the parsed content.
196
+
197
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
198
+ """
199
+ return AsyncWaapResourceWithRawResponse(self)
200
+
201
+ @cached_property
202
+ def with_streaming_response(self) -> AsyncWaapResourceWithStreamingResponse:
203
+ """
204
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
205
+
206
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
207
+ """
208
+ return AsyncWaapResourceWithStreamingResponse(self)
209
+
210
+ async def get_account_overview(
211
+ self,
212
+ *,
213
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
214
+ # The extra values given here take precedence over values defined on the client or passed to this method.
215
+ extra_headers: Headers | None = None,
216
+ extra_query: Query | None = None,
217
+ extra_body: Body | None = None,
218
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
219
+ ) -> WaapGetAccountOverviewResponse:
220
+ """Get information about WAAP service for the client"""
221
+ return await self._get(
222
+ "/waap/v1/clients/me",
223
+ options=make_request_options(
224
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
225
+ ),
226
+ cast_to=WaapGetAccountOverviewResponse,
227
+ )
228
+
229
+
230
+ class WaapResourceWithRawResponse:
231
+ def __init__(self, waap: WaapResource) -> None:
232
+ self._waap = waap
233
+
234
+ self.get_account_overview = to_raw_response_wrapper(
235
+ waap.get_account_overview,
236
+ )
237
+
238
+ @cached_property
239
+ def clients(self) -> ClientsResourceWithRawResponse:
240
+ return ClientsResourceWithRawResponse(self._waap.clients)
241
+
242
+ @cached_property
243
+ def statistics(self) -> StatisticsResourceWithRawResponse:
244
+ return StatisticsResourceWithRawResponse(self._waap.statistics)
245
+
246
+ @cached_property
247
+ def domains(self) -> DomainsResourceWithRawResponse:
248
+ return DomainsResourceWithRawResponse(self._waap.domains)
249
+
250
+ @cached_property
251
+ def custom_page_sets(self) -> CustomPageSetsResourceWithRawResponse:
252
+ return CustomPageSetsResourceWithRawResponse(self._waap.custom_page_sets)
253
+
254
+ @cached_property
255
+ def advanced_rules(self) -> AdvancedRulesResourceWithRawResponse:
256
+ return AdvancedRulesResourceWithRawResponse(self._waap.advanced_rules)
257
+
258
+ @cached_property
259
+ def tags(self) -> TagsResourceWithRawResponse:
260
+ return TagsResourceWithRawResponse(self._waap.tags)
261
+
262
+ @cached_property
263
+ def organizations(self) -> OrganizationsResourceWithRawResponse:
264
+ return OrganizationsResourceWithRawResponse(self._waap.organizations)
265
+
266
+ @cached_property
267
+ def ip_info(self) -> IPInfoResourceWithRawResponse:
268
+ return IPInfoResourceWithRawResponse(self._waap.ip_info)
269
+
270
+
271
+ class AsyncWaapResourceWithRawResponse:
272
+ def __init__(self, waap: AsyncWaapResource) -> None:
273
+ self._waap = waap
274
+
275
+ self.get_account_overview = async_to_raw_response_wrapper(
276
+ waap.get_account_overview,
277
+ )
278
+
279
+ @cached_property
280
+ def clients(self) -> AsyncClientsResourceWithRawResponse:
281
+ return AsyncClientsResourceWithRawResponse(self._waap.clients)
282
+
283
+ @cached_property
284
+ def statistics(self) -> AsyncStatisticsResourceWithRawResponse:
285
+ return AsyncStatisticsResourceWithRawResponse(self._waap.statistics)
286
+
287
+ @cached_property
288
+ def domains(self) -> AsyncDomainsResourceWithRawResponse:
289
+ return AsyncDomainsResourceWithRawResponse(self._waap.domains)
290
+
291
+ @cached_property
292
+ def custom_page_sets(self) -> AsyncCustomPageSetsResourceWithRawResponse:
293
+ return AsyncCustomPageSetsResourceWithRawResponse(self._waap.custom_page_sets)
294
+
295
+ @cached_property
296
+ def advanced_rules(self) -> AsyncAdvancedRulesResourceWithRawResponse:
297
+ return AsyncAdvancedRulesResourceWithRawResponse(self._waap.advanced_rules)
298
+
299
+ @cached_property
300
+ def tags(self) -> AsyncTagsResourceWithRawResponse:
301
+ return AsyncTagsResourceWithRawResponse(self._waap.tags)
302
+
303
+ @cached_property
304
+ def organizations(self) -> AsyncOrganizationsResourceWithRawResponse:
305
+ return AsyncOrganizationsResourceWithRawResponse(self._waap.organizations)
306
+
307
+ @cached_property
308
+ def ip_info(self) -> AsyncIPInfoResourceWithRawResponse:
309
+ return AsyncIPInfoResourceWithRawResponse(self._waap.ip_info)
310
+
311
+
312
+ class WaapResourceWithStreamingResponse:
313
+ def __init__(self, waap: WaapResource) -> None:
314
+ self._waap = waap
315
+
316
+ self.get_account_overview = to_streamed_response_wrapper(
317
+ waap.get_account_overview,
318
+ )
319
+
320
+ @cached_property
321
+ def clients(self) -> ClientsResourceWithStreamingResponse:
322
+ return ClientsResourceWithStreamingResponse(self._waap.clients)
323
+
324
+ @cached_property
325
+ def statistics(self) -> StatisticsResourceWithStreamingResponse:
326
+ return StatisticsResourceWithStreamingResponse(self._waap.statistics)
327
+
328
+ @cached_property
329
+ def domains(self) -> DomainsResourceWithStreamingResponse:
330
+ return DomainsResourceWithStreamingResponse(self._waap.domains)
331
+
332
+ @cached_property
333
+ def custom_page_sets(self) -> CustomPageSetsResourceWithStreamingResponse:
334
+ return CustomPageSetsResourceWithStreamingResponse(self._waap.custom_page_sets)
335
+
336
+ @cached_property
337
+ def advanced_rules(self) -> AdvancedRulesResourceWithStreamingResponse:
338
+ return AdvancedRulesResourceWithStreamingResponse(self._waap.advanced_rules)
339
+
340
+ @cached_property
341
+ def tags(self) -> TagsResourceWithStreamingResponse:
342
+ return TagsResourceWithStreamingResponse(self._waap.tags)
343
+
344
+ @cached_property
345
+ def organizations(self) -> OrganizationsResourceWithStreamingResponse:
346
+ return OrganizationsResourceWithStreamingResponse(self._waap.organizations)
347
+
348
+ @cached_property
349
+ def ip_info(self) -> IPInfoResourceWithStreamingResponse:
350
+ return IPInfoResourceWithStreamingResponse(self._waap.ip_info)
351
+
352
+
353
+ class AsyncWaapResourceWithStreamingResponse:
354
+ def __init__(self, waap: AsyncWaapResource) -> None:
355
+ self._waap = waap
356
+
357
+ self.get_account_overview = async_to_streamed_response_wrapper(
358
+ waap.get_account_overview,
359
+ )
360
+
361
+ @cached_property
362
+ def clients(self) -> AsyncClientsResourceWithStreamingResponse:
363
+ return AsyncClientsResourceWithStreamingResponse(self._waap.clients)
364
+
365
+ @cached_property
366
+ def statistics(self) -> AsyncStatisticsResourceWithStreamingResponse:
367
+ return AsyncStatisticsResourceWithStreamingResponse(self._waap.statistics)
368
+
369
+ @cached_property
370
+ def domains(self) -> AsyncDomainsResourceWithStreamingResponse:
371
+ return AsyncDomainsResourceWithStreamingResponse(self._waap.domains)
372
+
373
+ @cached_property
374
+ def custom_page_sets(self) -> AsyncCustomPageSetsResourceWithStreamingResponse:
375
+ return AsyncCustomPageSetsResourceWithStreamingResponse(self._waap.custom_page_sets)
376
+
377
+ @cached_property
378
+ def advanced_rules(self) -> AsyncAdvancedRulesResourceWithStreamingResponse:
379
+ return AsyncAdvancedRulesResourceWithStreamingResponse(self._waap.advanced_rules)
380
+
381
+ @cached_property
382
+ def tags(self) -> AsyncTagsResourceWithStreamingResponse:
383
+ return AsyncTagsResourceWithStreamingResponse(self._waap.tags)
384
+
385
+ @cached_property
386
+ def organizations(self) -> AsyncOrganizationsResourceWithStreamingResponse:
387
+ return AsyncOrganizationsResourceWithStreamingResponse(self._waap.organizations)
388
+
389
+ @cached_property
390
+ def ip_info(self) -> AsyncIPInfoResourceWithStreamingResponse:
391
+ return AsyncIPInfoResourceWithStreamingResponse(self._waap.ip_info)
@@ -67,6 +67,7 @@ from .instance_interface import InstanceInterface as InstanceInterface
67
67
  from .instance_isolation import InstanceIsolation as InstanceIsolation
68
68
  from .load_balancer_pool import LoadBalancerPool as LoadBalancerPool
69
69
  from .region_list_params import RegionListParams as RegionListParams
70
+ from .secret_list_params import SecretListParams as SecretListParams
70
71
  from .volume_list_params import VolumeListParams as VolumeListParams
71
72
  from .billing_reservation import BillingReservation as BillingReservation
72
73
  from .ddos_profile_status import DDOSProfileStatus as DDOSProfileStatus
@@ -9,7 +9,7 @@ __all__ = ["AllowedAddressPairs"]
9
9
 
10
10
  class AllowedAddressPairs(BaseModel):
11
11
  ip_address: str
12
- """Subnet mask or IP address of the port specified in allowed_address_pairs"""
12
+ """Subnet mask or IP address of the port specified in `allowed_address_pairs`"""
13
13
 
14
14
  mac_address: Optional[str] = None
15
- """MAC address of the port specified in allowed_address_pairs"""
15
+ """MAC address of the port specified in `allowed_address_pairs`"""
@@ -76,7 +76,7 @@ class BaremetalServer(BaseModel):
76
76
  """Bare metal server ID"""
77
77
 
78
78
  addresses: Dict[str, List[Address]]
79
- """Map of network_name to list of addresses in that network"""
79
+ """Map of `network_name` to list of addresses in that network"""
80
80
 
81
81
  blackhole_ports: List[BlackholePort]
82
82
  """IP addresses of the instances that are blackholed by DDoS mitigation system"""
@@ -25,7 +25,7 @@ class ImageListParams(TypedDict, total=False):
25
25
  tag_key_value: str
26
26
  """Filter by tag key-value pairs.
27
27
 
28
- Must be a valid JSON string. 'curl -G --data-urlencode 'tag_key_value={"key":
28
+ Must be a valid JSON string. 'curl -G --data-urlencode '`tag_key_value`={"key":
29
29
  "value"}' --url 'http://localhost:1111/v1/images/1/1'"
30
30
  """
31
31
 
@@ -68,8 +68,8 @@ class ServerCreateParams(TypedDict, total=False):
68
68
  If you want server names to be automatically generated based on IP addresses,
69
69
  you can provide a name template instead of specifying the name manually. The
70
70
  template should include a placeholder that will be replaced during provisioning.
71
- Supported placeholders are: `{ip_octets}` (last 3 octets of the IP),
72
- `{two_ip_octets}`, and `{one_ip_octet}`.
71
+ Supported placeholders are: `{`ip_octets`}` (last 3 octets of the IP),
72
+ `{`two_ip_octets`}`, and `{`one_ip_octet`}`.
73
73
  """
74
74
 
75
75
  password: str
@@ -78,14 +78,14 @@ class ServerCreateParams(TypedDict, total=False):
78
78
  When only 'password' is provided, it is set as the password for the default user
79
79
  of the image. For Windows instances, 'username' cannot be specified. Use the
80
80
  'password' field to set the password for the 'Admin' user on Windows. Use the
81
- 'user_data' field to provide a script to create new users on Windows. The
82
- password of the Admin user cannot be updated via 'user_data'.
81
+ '`user_data`' field to provide a script to create new users on Windows. The
82
+ password of the Admin user cannot be updated via '`user_data`'.
83
83
  """
84
84
 
85
85
  ssh_key_name: Optional[str]
86
86
  """
87
87
  Specifies the name of the SSH keypair, created via the
88
- <a href="#operation/SSHKeyCollectionViewSet.post">/v1/ssh_keys endpoint</a>.
88
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
89
89
  """
90
90
 
91
91
  tags: TagUpdateMapParam
@@ -101,9 +101,9 @@ class ServerCreateParams(TypedDict, total=False):
101
101
  user_data: str
102
102
  """String in base64 format.
103
103
 
104
- For Linux instances, 'user_data' is ignored when 'password' field is provided.
104
+ For Linux instances, '`user_data`' is ignored when 'password' field is provided.
105
105
  For Windows instances, Admin user password is set by 'password' field and cannot
106
- be updated via 'user_data'. Examples of the user_data:
106
+ be updated via '`user_data`'. Examples of the `user_data`:
107
107
  https://cloudinit.readthedocs.io/en/latest/topics/examples.html
108
108
  """
109
109
 
@@ -353,10 +353,10 @@ class DDOSProfileField(TypedDict, total=False):
353
353
  """Name of DDoS profile field"""
354
354
 
355
355
  field_value: Union[Iterable[object], int, str, None]
356
- """Complex value. Only one of 'value' or 'field_value' must be specified."""
356
+ """Complex value. Only one of 'value' or '`field_value`' must be specified."""
357
357
 
358
358
  value: Optional[str]
359
- """Basic type value. Only one of 'value' or 'field_value' must be specified."""
359
+ """Basic type value. Only one of 'value' or '`field_value`' must be specified."""
360
360
 
361
361
 
362
362
  class DDOSProfile(TypedDict, total=False):
@@ -28,10 +28,10 @@ class ServerListParams(TypedDict, total=False):
28
28
  """
29
29
 
30
30
  flavor_id: str
31
- """Filter out instances by flavor_id. Flavor id must match exactly."""
31
+ """Filter out instances by `flavor_id`. Flavor id must match exactly."""
32
32
 
33
33
  flavor_prefix: str
34
- """Filter out instances by flavor_prefix."""
34
+ """Filter out instances by `flavor_prefix`."""
35
35
 
36
36
  include_k8s: bool
37
37
  """Include managed k8s worker nodes"""
@@ -72,13 +72,13 @@ class ServerListParams(TypedDict, total=False):
72
72
  profile_name: str
73
73
  """Filter result by ddos protection profile name.
74
74
 
75
- Effective only with with_ddos set to true.
75
+ Effective only with `with_ddos` set to true.
76
76
  """
77
77
 
78
78
  protection_status: Literal["Active", "Queued", "Error"]
79
- """Filter result by DDoS protection_status.
79
+ """Filter result by DDoS `protection_status`.
80
80
 
81
- Effective only with with_ddos set to true. (Active, Queued or Error)
81
+ Effective only with `with_ddos` set to true. (Active, Queued or Error)
82
82
  """
83
83
 
84
84
  status: Literal["ACTIVE", "BUILD", "ERROR", "HARD_REBOOT", "REBOOT", "REBUILD", "RESCUE", "SHUTOFF", "SUSPENDED"]
@@ -87,17 +87,17 @@ class ServerListParams(TypedDict, total=False):
87
87
  tag_key_value: str
88
88
  """Optional.
89
89
 
90
- Filter by tag key-value pairs. curl -G --data-urlencode "tag_key_value={"key":
90
+ Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
91
91
  "value"}" --url "https://example.com/cloud/v1/resource/1/1"
92
92
  """
93
93
 
94
94
  tag_value: List[str]
95
- """Optional. Filter by tag values. ?tag_value=value1&tag_value=value2"""
95
+ """Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2"""
96
96
 
97
97
  type_ddos_profile: Literal["basic", "advanced"]
98
98
  """Return bare metals either only with advanced or only basic DDoS protection.
99
99
 
100
- Effective only with with_ddos set to true. (advanced or basic)
100
+ Effective only with `with_ddos` set to true. (advanced or basic)
101
101
  """
102
102
 
103
103
  uuid: str
@@ -19,5 +19,5 @@ class ServerRebuildParams(TypedDict, total=False):
19
19
  """String in base64 format.
20
20
 
21
21
  Must not be passed together with 'username' or 'password'. Examples of the
22
- user_data: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
22
+ `user_data`: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
23
23
  """
@@ -37,16 +37,16 @@ class BaremetalFlavor(BaseModel):
37
37
  """Number of available instances of given configuration"""
38
38
 
39
39
  currency_code: Optional[str] = None
40
- """Currency code. Shown if the include_prices query parameter if set to true"""
40
+ """Currency code. Shown if the `include_prices` query parameter if set to true"""
41
41
 
42
42
  hardware_description: Optional[Dict[str, str]] = None
43
43
  """Additional hardware description"""
44
44
 
45
45
  price_per_hour: Optional[float] = None
46
- """Price per hour. Shown if the include_prices query parameter if set to true"""
46
+ """Price per hour. Shown if the `include_prices` query parameter if set to true"""
47
47
 
48
48
  price_per_month: Optional[float] = None
49
- """Price per month. Shown if the include_prices query parameter if set to true"""
49
+ """Price per month. Shown if the `include_prices` query parameter if set to true"""
50
50
 
51
51
  price_status: Optional[Literal["error", "hide", "show"]] = None
52
52
  """Price status for the UI"""
@@ -45,6 +45,11 @@ class BillingReservationListParams(TypedDict, total=False):
45
45
  offset: int
46
46
  """Offset in reservation list"""
47
47
 
48
+ order_by: Literal[
49
+ "active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc", "created_at.asc", "created_at.desc"
50
+ ]
51
+ """Order by field and direction."""
52
+
48
53
  region_id: int
49
54
  """Region for reservation"""
50
55
 
@@ -13,4 +13,4 @@ class ContainerProbeConfig(BaseModel):
13
13
  """Whether the probe is enabled or not."""
14
14
 
15
15
  probe: Optional[ContainerProbe] = None
16
- """Probe configuration (exec, http_get or tcp_socket)"""
16
+ """Probe configuration (exec, `http_get` or `tcp_socket`)"""
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
6
5
  from typing_extensions import Required, TypedDict
7
6
 
8
7
  from .container_probe_create_param import ContainerProbeCreateParam
@@ -14,5 +13,5 @@ class ContainerProbeConfigCreateParam(TypedDict, total=False):
14
13
  enabled: Required[bool]
15
14
  """Whether the probe is enabled or not."""
16
15
 
17
- probe: Optional[ContainerProbeCreateParam]
18
- """Probe configuration (exec, http_get or tcp_socket)"""
16
+ probe: ContainerProbeCreateParam
17
+ """Probe configuration (exec, `http_get` or `tcp_socket`)"""
@@ -17,13 +17,13 @@ class ContainerScaleTriggers(BaseModel):
17
17
  gpu_memory: Optional[ContainerScaleTriggerThreshold] = None
18
18
  """GPU memory trigger configuration.
19
19
 
20
- Calculated by DCGM_FI_DEV_MEM_COPY_UTIL metric
20
+ Calculated by `DCGM_FI_DEV_MEM_COPY_UTIL` metric
21
21
  """
22
22
 
23
23
  gpu_utilization: Optional[ContainerScaleTriggerThreshold] = None
24
24
  """GPU utilization trigger configuration.
25
25
 
26
- Calculated by DCGM_FI_DEV_GPU_UTIL metric
26
+ Calculated by `DCGM_FI_DEV_GPU_UTIL` metric
27
27
  """
28
28
 
29
29
  http: Optional[ContainerScaleTriggerRate] = None
@@ -107,5 +107,8 @@ class FileShare(BaseModel):
107
107
  the resource is not locked.
108
108
  """
109
109
 
110
+ type_name: Literal["standard", "vast"]
111
+ """File share type name"""
112
+
110
113
  volume_type: Literal["default_share_type", "vast_share_type"]
111
114
  """File share disk type"""
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  __all__ = ["FileShareListParams"]
8
8
 
@@ -17,8 +17,14 @@ class FileShareListParams(TypedDict, total=False):
17
17
  limit: int
18
18
  """Optional. Limit the number of returned items"""
19
19
 
20
+ name: str
21
+ """File share name. Uses partial match."""
22
+
20
23
  offset: int
21
24
  """Optional.
22
25
 
23
26
  Offset value is used to exclude the first set of records from the result
24
27
  """
28
+
29
+ type_name: Literal["standard", "vast"]
30
+ """File share type name"""
@@ -56,7 +56,7 @@ class Instance(BaseModel):
56
56
  """Instance ID"""
57
57
 
58
58
  addresses: Dict[str, List[InstanceAddress]]
59
- """Map of network_name to list of addresses in that network"""
59
+ """Map of `network_name` to list of addresses in that network"""
60
60
 
61
61
  created_at: datetime
62
62
  """Datetime when instance was created"""