gcore 0.13.0__py3-none-any.whl → 0.15.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 (345) hide show
  1. gcore/__init__.py +3 -1
  2. gcore/_base_client.py +9 -9
  3. gcore/_client.py +25 -10
  4. gcore/_models.py +10 -4
  5. gcore/_qs.py +7 -7
  6. gcore/_types.py +18 -11
  7. gcore/_utils/_transform.py +2 -2
  8. gcore/_utils/_utils.py +4 -4
  9. gcore/_version.py +1 -1
  10. gcore/pagination.py +137 -0
  11. gcore/resources/__init__.py +14 -0
  12. gcore/resources/cdn/__init__.py +201 -0
  13. gcore/resources/cdn/audit_log.py +406 -0
  14. gcore/resources/cdn/cdn.py +957 -0
  15. gcore/resources/cdn/certificates.py +1062 -0
  16. gcore/resources/cdn/ip_ranges.py +224 -0
  17. gcore/resources/cdn/logs/__init__.py +33 -0
  18. gcore/resources/cdn/logs/logs.py +1424 -0
  19. gcore/resources/cdn/logs/settings.py +1081 -0
  20. gcore/resources/cdn/logs_uploader/__init__.py +61 -0
  21. gcore/resources/cdn/logs_uploader/configs.py +868 -0
  22. gcore/resources/cdn/logs_uploader/logs_uploader.py +166 -0
  23. gcore/resources/cdn/logs_uploader/policies.py +1060 -0
  24. gcore/resources/cdn/logs_uploader/targets.py +811 -0
  25. gcore/resources/cdn/metrics.py +419 -0
  26. gcore/resources/cdn/network_capacity.py +139 -0
  27. gcore/resources/cdn/origin_groups.py +1496 -0
  28. gcore/resources/cdn/resources/__init__.py +47 -0
  29. gcore/resources/cdn/resources/resources.py +2060 -0
  30. gcore/resources/cdn/resources/rules.py +1027 -0
  31. gcore/resources/cdn/resources/shield.py +259 -0
  32. gcore/resources/cdn/rule_templates.py +883 -0
  33. gcore/resources/cdn/shields.py +139 -0
  34. gcore/resources/cdn/statistics.py +1408 -0
  35. gcore/resources/cdn/trusted_ca_certificates.py +592 -0
  36. gcore/resources/cloud/audit_logs.py +33 -29
  37. gcore/resources/cloud/baremetal/flavors.py +21 -17
  38. gcore/resources/cloud/baremetal/images.py +19 -15
  39. gcore/resources/cloud/baremetal/servers.py +141 -119
  40. gcore/resources/cloud/billing_reservations.py +41 -33
  41. gcore/resources/cloud/cloud.py +24 -0
  42. gcore/resources/cloud/cost_reports.py +149 -119
  43. gcore/resources/cloud/file_shares/access_rules.py +25 -13
  44. gcore/resources/cloud/file_shares/file_shares.py +107 -71
  45. gcore/resources/cloud/floating_ips.py +101 -59
  46. gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +13 -9
  47. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +275 -65
  48. gcore/resources/cloud/gpu_baremetal_clusters/images.py +69 -53
  49. gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +9 -5
  50. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +151 -127
  51. gcore/resources/cloud/inference/api_keys.py +51 -31
  52. gcore/resources/cloud/inference/applications/deployments.py +49 -31
  53. gcore/resources/cloud/inference/applications/templates.py +17 -9
  54. gcore/resources/cloud/inference/deployments/deployments.py +171 -139
  55. gcore/resources/cloud/inference/deployments/logs.py +17 -13
  56. gcore/resources/cloud/inference/flavors.py +21 -13
  57. gcore/resources/cloud/inference/inference.py +9 -5
  58. gcore/resources/cloud/inference/registry_credentials.py +45 -25
  59. gcore/resources/cloud/inference/secrets.py +45 -25
  60. gcore/resources/cloud/instances/flavors.py +17 -13
  61. gcore/resources/cloud/instances/images.py +153 -129
  62. gcore/resources/cloud/instances/instances.py +287 -213
  63. gcore/resources/cloud/instances/interfaces.py +165 -161
  64. gcore/resources/cloud/instances/metrics.py +9 -5
  65. gcore/resources/cloud/ip_ranges.py +25 -15
  66. gcore/resources/cloud/k8s/clusters/clusters.py +151 -87
  67. gcore/resources/cloud/k8s/clusters/nodes.py +19 -11
  68. gcore/resources/cloud/k8s/clusters/pools/nodes.py +19 -11
  69. gcore/resources/cloud/k8s/clusters/pools/pools.py +83 -59
  70. gcore/resources/cloud/k8s/flavors.py +13 -9
  71. gcore/resources/cloud/k8s/k8s.py +9 -5
  72. gcore/resources/cloud/load_balancers/flavors.py +11 -7
  73. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +103 -83
  74. gcore/resources/cloud/load_balancers/l7_policies/rules.py +77 -57
  75. gcore/resources/cloud/load_balancers/listeners.py +125 -105
  76. gcore/resources/cloud/load_balancers/load_balancers.py +155 -123
  77. gcore/resources/cloud/load_balancers/metrics.py +9 -5
  78. gcore/resources/cloud/load_balancers/pools/health_monitors.py +25 -17
  79. gcore/resources/cloud/load_balancers/pools/members.py +31 -23
  80. gcore/resources/cloud/load_balancers/pools/pools.py +155 -129
  81. gcore/resources/cloud/load_balancers/statuses.py +17 -9
  82. gcore/resources/cloud/networks/networks.py +79 -55
  83. gcore/resources/cloud/networks/routers.py +75 -47
  84. gcore/resources/cloud/networks/subnets.py +109 -87
  85. gcore/resources/cloud/placement_groups.py +33 -17
  86. gcore/resources/cloud/projects.py +53 -41
  87. gcore/resources/cloud/quotas/quotas.py +25 -13
  88. gcore/resources/cloud/quotas/requests.py +41 -25
  89. gcore/resources/cloud/regions.py +25 -23
  90. gcore/resources/cloud/registries/artifacts.py +17 -9
  91. gcore/resources/cloud/registries/registries.py +55 -29
  92. gcore/resources/cloud/registries/repositories.py +17 -9
  93. gcore/resources/cloud/registries/tags.py +9 -5
  94. gcore/resources/cloud/registries/users.py +65 -35
  95. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +233 -108
  96. gcore/resources/cloud/reserved_fixed_ips/vip.py +45 -25
  97. gcore/resources/cloud/secrets.py +43 -27
  98. gcore/resources/cloud/security_groups/rules.py +55 -43
  99. gcore/resources/cloud/security_groups/security_groups.py +79 -47
  100. gcore/resources/cloud/ssh_keys.py +51 -31
  101. gcore/resources/cloud/tasks.py +57 -45
  102. gcore/resources/cloud/usage_reports.py +27 -23
  103. gcore/resources/cloud/users/role_assignments.py +49 -33
  104. gcore/resources/cloud/volumes.py +237 -201
  105. gcore/resources/dns/dns.py +17 -13
  106. gcore/resources/dns/locations.py +29 -17
  107. gcore/resources/dns/metrics.py +13 -9
  108. gcore/resources/dns/pickers/pickers.py +5 -5
  109. gcore/resources/dns/pickers/presets.py +9 -5
  110. gcore/resources/dns/zones/dnssec.py +19 -11
  111. gcore/resources/dns/zones/rrsets.py +149 -91
  112. gcore/resources/dns/zones/zones.py +245 -187
  113. gcore/resources/fastedge/apps/apps.py +105 -89
  114. gcore/resources/fastedge/apps/logs.py +25 -21
  115. gcore/resources/fastedge/binaries.py +33 -17
  116. gcore/resources/fastedge/fastedge.py +5 -5
  117. gcore/resources/fastedge/kv_stores.py +43 -31
  118. gcore/resources/fastedge/secrets.py +69 -45
  119. gcore/resources/fastedge/statistics.py +25 -17
  120. gcore/resources/fastedge/templates.py +59 -39
  121. gcore/resources/iam/api_tokens.py +47 -29
  122. gcore/resources/iam/iam.py +5 -5
  123. gcore/resources/iam/users.py +97 -65
  124. gcore/resources/security/bgp_announces.py +27 -19
  125. gcore/resources/security/events.py +23 -19
  126. gcore/resources/security/profile_templates.py +9 -5
  127. gcore/resources/security/profiles.py +69 -45
  128. gcore/resources/storage/buckets/buckets.py +37 -25
  129. gcore/resources/storage/buckets/cors.py +19 -11
  130. gcore/resources/storage/buckets/lifecycle.py +19 -11
  131. gcore/resources/storage/buckets/policy.py +25 -13
  132. gcore/resources/storage/credentials.py +19 -15
  133. gcore/resources/storage/locations.py +13 -9
  134. gcore/resources/storage/statistics.py +39 -31
  135. gcore/resources/storage/storage.py +105 -69
  136. gcore/resources/streaming/ai_tasks.py +307 -197
  137. gcore/resources/streaming/broadcasts.py +63 -35
  138. gcore/resources/streaming/directories.py +65 -39
  139. gcore/resources/streaming/players.py +47 -31
  140. gcore/resources/streaming/playlists.py +189 -123
  141. gcore/resources/streaming/quality_sets.py +69 -39
  142. gcore/resources/streaming/restreams.py +47 -27
  143. gcore/resources/streaming/statistics.py +613 -407
  144. gcore/resources/streaming/streams/overlays.py +107 -67
  145. gcore/resources/streaming/streams/streams.py +403 -263
  146. gcore/resources/streaming/videos/subtitles.py +131 -75
  147. gcore/resources/streaming/videos/videos.py +429 -279
  148. gcore/resources/waap/advanced_rules.py +9 -5
  149. gcore/resources/waap/custom_page_sets.py +99 -75
  150. gcore/resources/waap/domains/advanced_rules.py +157 -99
  151. gcore/resources/waap/domains/api_discovery.py +71 -47
  152. gcore/resources/waap/domains/api_path_groups.py +9 -5
  153. gcore/resources/waap/domains/api_paths.py +79 -83
  154. gcore/resources/waap/domains/custom_rules.py +89 -59
  155. gcore/resources/waap/domains/domains.py +59 -41
  156. gcore/resources/waap/domains/firewall_rules.py +83 -55
  157. gcore/resources/waap/domains/insight_silences.py +59 -39
  158. gcore/resources/waap/domains/insights.py +39 -27
  159. gcore/resources/waap/domains/settings.py +21 -13
  160. gcore/resources/waap/domains/statistics.py +99 -75
  161. gcore/resources/waap/insights.py +23 -21
  162. gcore/resources/waap/ip_info/ip_info.py +65 -33
  163. gcore/resources/waap/ip_info/metrics.py +11 -7
  164. gcore/resources/waap/organizations.py +17 -13
  165. gcore/resources/waap/statistics.py +9 -5
  166. gcore/resources/waap/tags.py +17 -17
  167. gcore/resources/waap/waap.py +5 -5
  168. gcore/types/cdn/__init__.py +80 -0
  169. gcore/types/cdn/audit_log_list_params.py +73 -0
  170. gcore/types/cdn/ca_certificate.py +53 -0
  171. gcore/types/cdn/ca_certificate_list.py +10 -0
  172. gcore/types/cdn/cdn_account.py +86 -0
  173. gcore/types/cdn/cdn_account_limits.py +27 -0
  174. gcore/types/cdn/cdn_audit_log_entry.py +66 -0
  175. gcore/types/cdn/cdn_available_features.py +46 -0
  176. gcore/types/cdn/cdn_list_purge_statuses_params.py +67 -0
  177. gcore/types/cdn/cdn_log_entry.py +70 -0
  178. gcore/types/cdn/cdn_metrics.py +22 -0
  179. gcore/types/cdn/cdn_metrics_groups.py +13 -0
  180. gcore/types/cdn/cdn_metrics_values.py +19 -0
  181. gcore/types/cdn/cdn_resource.py +1997 -0
  182. gcore/types/cdn/cdn_resource_list.py +10 -0
  183. gcore/types/cdn/cdn_update_account_params.py +15 -0
  184. gcore/types/cdn/certificate_create_params.py +51 -0
  185. gcore/types/cdn/certificate_get_status_params.py +14 -0
  186. gcore/types/cdn/certificate_list_params.py +29 -0
  187. gcore/types/cdn/certificate_replace_params.py +39 -0
  188. gcore/types/cdn/log_download_params.py +279 -0
  189. gcore/types/cdn/log_list_params.py +273 -0
  190. gcore/types/cdn/logs/__init__.py +7 -0
  191. gcore/types/cdn/logs/log_settings.py +172 -0
  192. gcore/types/cdn/logs/setting_create_params.py +200 -0
  193. gcore/types/cdn/logs/setting_update_params.py +200 -0
  194. gcore/types/cdn/logs_aggregated_stats.py +23 -0
  195. gcore/types/cdn/logs_uploader/__init__.py +23 -0
  196. gcore/types/cdn/logs_uploader/config_create_params.py +32 -0
  197. gcore/types/cdn/logs_uploader/config_list_params.py +16 -0
  198. gcore/types/cdn/logs_uploader/config_replace_params.py +32 -0
  199. gcore/types/cdn/logs_uploader/config_update_params.py +32 -0
  200. gcore/types/cdn/logs_uploader/logs_uploader_config.py +51 -0
  201. gcore/types/cdn/logs_uploader/logs_uploader_config_list.py +10 -0
  202. gcore/types/cdn/logs_uploader/logs_uploader_policy.py +73 -0
  203. gcore/types/cdn/logs_uploader/logs_uploader_policy_list.py +10 -0
  204. gcore/types/cdn/logs_uploader/logs_uploader_target.py +236 -0
  205. gcore/types/cdn/logs_uploader/logs_uploader_target_list.py +10 -0
  206. gcore/types/cdn/logs_uploader/policy_create_params.py +61 -0
  207. gcore/types/cdn/logs_uploader/policy_list_fields_response.py +8 -0
  208. gcore/types/cdn/logs_uploader/policy_list_params.py +16 -0
  209. gcore/types/cdn/logs_uploader/policy_replace_params.py +61 -0
  210. gcore/types/cdn/logs_uploader/policy_update_params.py +61 -0
  211. gcore/types/cdn/logs_uploader/target_create_params.py +249 -0
  212. gcore/types/cdn/logs_uploader/target_list_params.py +16 -0
  213. gcore/types/cdn/logs_uploader/target_replace_params.py +249 -0
  214. gcore/types/cdn/logs_uploader/target_update_params.py +249 -0
  215. gcore/types/cdn/logs_uploader_validation.py +23 -0
  216. gcore/types/cdn/metric_list_params.py +168 -0
  217. gcore/types/cdn/network_capacity.py +22 -0
  218. gcore/types/cdn/origin_group_create_params.py +184 -0
  219. gcore/types/cdn/origin_group_list_params.py +24 -0
  220. gcore/types/cdn/origin_group_replace_params.py +190 -0
  221. gcore/types/cdn/origin_group_update_params.py +190 -0
  222. gcore/types/cdn/origin_groups.py +212 -0
  223. gcore/types/cdn/origin_groups_list.py +10 -0
  224. gcore/types/cdn/public_ip_list.py +15 -0
  225. gcore/types/cdn/public_network_list.py +15 -0
  226. gcore/types/cdn/purge_status.py +55 -0
  227. gcore/types/cdn/resource_aggregated_stats.py +80 -0
  228. gcore/types/cdn/resource_create_params.py +1845 -0
  229. gcore/types/cdn/resource_list_params.py +107 -0
  230. gcore/types/cdn/resource_prefetch_params.py +17 -0
  231. gcore/types/cdn/resource_purge_params.py +71 -0
  232. gcore/types/cdn/resource_replace_params.py +1823 -0
  233. gcore/types/cdn/resource_update_params.py +1814 -0
  234. gcore/types/cdn/resource_usage_stats.py +111 -0
  235. gcore/types/cdn/resources/__init__.py +11 -0
  236. gcore/types/cdn/resources/cdn_resource_rule.py +1715 -0
  237. gcore/types/cdn/resources/origin_shielding.py +15 -0
  238. gcore/types/cdn/resources/rule_create_params.py +1672 -0
  239. gcore/types/cdn/resources/rule_list_response.py +10 -0
  240. gcore/types/cdn/resources/rule_replace_params.py +1674 -0
  241. gcore/types/cdn/resources/rule_update_params.py +1674 -0
  242. gcore/types/cdn/resources/shield_replace_params.py +16 -0
  243. gcore/types/cdn/rule_template.py +1686 -0
  244. gcore/types/cdn/rule_template_create_params.py +1656 -0
  245. gcore/types/cdn/rule_template_list.py +10 -0
  246. gcore/types/cdn/rule_template_replace_params.py +1656 -0
  247. gcore/types/cdn/rule_template_update_params.py +1656 -0
  248. gcore/types/cdn/shield_aggregated_stats.py +23 -0
  249. gcore/types/cdn/shield_list_response.py +25 -0
  250. gcore/types/cdn/ssl_detail.py +62 -0
  251. gcore/types/cdn/ssl_detail_list.py +10 -0
  252. gcore/types/cdn/ssl_request_status.py +135 -0
  253. gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +42 -0
  254. gcore/types/cdn/statistic_get_logs_usage_series_params.py +35 -0
  255. gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +151 -0
  256. gcore/types/cdn/statistic_get_resource_usage_series_params.py +131 -0
  257. gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +42 -0
  258. gcore/types/cdn/statistic_get_shield_usage_series_params.py +25 -0
  259. gcore/types/cdn/trusted_ca_certificate_create_params.py +23 -0
  260. gcore/types/cdn/trusted_ca_certificate_list_params.py +29 -0
  261. gcore/types/cdn/trusted_ca_certificate_replace_params.py +15 -0
  262. gcore/types/cdn/usage_series_stats.py +31 -0
  263. gcore/types/cloud/__init__.py +2 -0
  264. gcore/types/cloud/file_share.py +4 -0
  265. gcore/types/cloud/file_share_create_params.py +20 -0
  266. gcore/types/cloud/file_share_update_params.py +40 -3
  267. gcore/types/cloud/floating_ip_update_params.py +3 -1
  268. gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
  269. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_flavor.py +12 -0
  270. gcore/types/cloud/inference/inference_deployment.py +3 -1
  271. gcore/types/cloud/instance_create_params.py +3 -1
  272. gcore/types/cloud/k8s/cluster_create_params.py +46 -4
  273. gcore/types/cloud/k8s/cluster_update_params.py +60 -6
  274. gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
  275. gcore/types/cloud/k8s/k8s_cluster.py +40 -3
  276. gcore/types/cloud/load_balancer_update_params.py +3 -1
  277. gcore/types/cloud/network_update_params.py +3 -1
  278. gcore/types/cloud/networks/subnet_update_params.py +3 -1
  279. gcore/types/cloud/quota_get_all_response.py +8 -8
  280. gcore/types/cloud/quota_get_by_region_response.py +8 -8
  281. gcore/types/cloud/quotas/request_create_params.py +4 -4
  282. gcore/types/cloud/quotas/request_get_response.py +4 -4
  283. gcore/types/cloud/quotas/request_list_response.py +4 -4
  284. gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
  285. gcore/types/cloud/registries/user_create_params.py +5 -3
  286. gcore/types/cloud/registry_create_params.py +5 -3
  287. gcore/types/cloud/reserved_fixed_ip_update_params.py +16 -0
  288. gcore/types/cloud/security_group_update_params.py +3 -1
  289. gcore/types/cloud/ssh_key_created.py +6 -3
  290. gcore/types/cloud/volume_update_params.py +3 -1
  291. gcore/types/dns/zone_get_statistics_params.py +12 -9
  292. gcore/types/dns/zone_get_statistics_response.py +3 -1
  293. gcore/types/dns/zone_import_params.py +21 -15
  294. gcore/types/dns/zones/dns_output_rrset.py +7 -3
  295. gcore/types/iam/account_overview.py +31 -28
  296. gcore/types/iam/api_token.py +24 -24
  297. gcore/types/iam/api_token_create_params.py +2 -1
  298. gcore/types/iam/api_token_list.py +24 -24
  299. gcore/types/iam/user.py +7 -2
  300. gcore/types/iam/user_detailed.py +22 -17
  301. gcore/types/iam/user_invite.py +2 -4
  302. gcore/types/iam/user_invite_params.py +4 -1
  303. gcore/types/iam/user_update.py +22 -17
  304. gcore/types/iam/user_update_params.py +7 -2
  305. gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
  306. gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
  307. gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
  308. gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
  309. gcore/types/streaming/ai_task.py +20 -11
  310. gcore/types/streaming/ai_task_create_params.py +20 -11
  311. gcore/types/streaming/ai_task_get_response.py +5 -4
  312. gcore/types/streaming/ai_task_list_params.py +11 -5
  313. gcore/types/streaming/clip.py +33 -22
  314. gcore/types/streaming/create_video_param.py +75 -43
  315. gcore/types/streaming/playlist.py +7 -5
  316. gcore/types/streaming/playlist_create_params.py +7 -5
  317. gcore/types/streaming/playlist_update_params.py +7 -5
  318. gcore/types/streaming/playlist_video.py +75 -43
  319. gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
  320. gcore/types/streaming/stream.py +207 -136
  321. gcore/types/streaming/stream_create_clip_params.py +33 -22
  322. gcore/types/streaming/stream_create_params.py +41 -24
  323. gcore/types/streaming/stream_update_params.py +41 -24
  324. gcore/types/streaming/video.py +138 -76
  325. gcore/types/streaming/video_list_params.py +4 -2
  326. gcore/types/streaming/video_update_params.py +75 -43
  327. gcore/types/waap/domain_update_params.py +2 -2
  328. gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
  329. gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
  330. gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
  331. gcore/types/waap/domains/api_path_create_params.py +0 -3
  332. gcore/types/waap/domains/api_path_update_params.py +1 -3
  333. gcore/types/waap/domains/custom_rule_create_params.py +36 -35
  334. gcore/types/waap/domains/custom_rule_update_params.py +31 -33
  335. gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
  336. gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
  337. gcore/types/waap/domains/waap_advanced_rule.py +17 -9
  338. gcore/types/waap/domains/waap_custom_rule.py +5 -2
  339. gcore/types/waap/domains/waap_firewall_rule.py +1 -1
  340. gcore/types/waap/domains/waap_insight.py +1 -1
  341. gcore/types/waap/insight_list_types_params.py +1 -1
  342. {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/METADATA +1 -1
  343. {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/RECORD +345 -224
  344. {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/WHEEL +0 -0
  345. {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/licenses/LICENSE +0 -0
@@ -59,10 +59,10 @@ class RegionalQuota(BaseModel):
59
59
  """Basic bare metal servers count usage"""
60
60
 
61
61
  baremetal_gpu_a100_count_limit: Optional[int] = None
62
- """Baremetal A100 GPU card count limit"""
62
+ """Bare metal A100 GPU server count limit"""
63
63
 
64
64
  baremetal_gpu_a100_count_usage: Optional[int] = None
65
- """Baremetal A100 GPU card count usage"""
65
+ """Bare metal A100 GPU server count usage"""
66
66
 
67
67
  baremetal_gpu_count_limit: Optional[int] = None
68
68
  """Total number of AI GPU bare metal servers.
@@ -81,22 +81,22 @@ class RegionalQuota(BaseModel):
81
81
  """
82
82
 
83
83
  baremetal_gpu_h100_count_limit: Optional[int] = None
84
- """Baremetal H100 GPU card count limit"""
84
+ """Bare metal H100 GPU server count limit"""
85
85
 
86
86
  baremetal_gpu_h100_count_usage: Optional[int] = None
87
- """Baremetal H100 GPU card count usage"""
87
+ """Bare metal H100 GPU server count usage"""
88
88
 
89
89
  baremetal_gpu_h200_count_limit: Optional[int] = None
90
- """Baremetal H200 GPU card count limit"""
90
+ """Bare metal H200 GPU server count limit"""
91
91
 
92
92
  baremetal_gpu_h200_count_usage: Optional[int] = None
93
- """Baremetal H200 GPU card count usage"""
93
+ """Bare metal H200 GPU server count usage"""
94
94
 
95
95
  baremetal_gpu_l40s_count_limit: Optional[int] = None
96
- """Baremetal L40S GPU card count limit"""
96
+ """Bare metal L40S GPU server count limit"""
97
97
 
98
98
  baremetal_gpu_l40s_count_usage: Optional[int] = None
99
- """Baremetal L40S GPU card count usage"""
99
+ """Bare metal L40S GPU server count usage"""
100
100
 
101
101
  baremetal_hf_count_limit: Optional[int] = None
102
102
  """High-frequency bare metal servers count limit"""
@@ -15,10 +15,10 @@ class QuotaGetByRegionResponse(BaseModel):
15
15
  """Basic bare metal servers count usage"""
16
16
 
17
17
  baremetal_gpu_a100_count_limit: Optional[int] = None
18
- """Baremetal A100 GPU card count limit"""
18
+ """Bare metal A100 GPU server count limit"""
19
19
 
20
20
  baremetal_gpu_a100_count_usage: Optional[int] = None
21
- """Baremetal A100 GPU card count usage"""
21
+ """Bare metal A100 GPU server count usage"""
22
22
 
23
23
  baremetal_gpu_count_limit: Optional[int] = None
24
24
  """Total number of AI GPU bare metal servers.
@@ -37,22 +37,22 @@ class QuotaGetByRegionResponse(BaseModel):
37
37
  """
38
38
 
39
39
  baremetal_gpu_h100_count_limit: Optional[int] = None
40
- """Baremetal H100 GPU card count limit"""
40
+ """Bare metal H100 GPU server count limit"""
41
41
 
42
42
  baremetal_gpu_h100_count_usage: Optional[int] = None
43
- """Baremetal H100 GPU card count usage"""
43
+ """Bare metal H100 GPU server count usage"""
44
44
 
45
45
  baremetal_gpu_h200_count_limit: Optional[int] = None
46
- """Baremetal H200 GPU card count limit"""
46
+ """Bare metal H200 GPU server count limit"""
47
47
 
48
48
  baremetal_gpu_h200_count_usage: Optional[int] = None
49
- """Baremetal H200 GPU card count usage"""
49
+ """Bare metal H200 GPU server count usage"""
50
50
 
51
51
  baremetal_gpu_l40s_count_limit: Optional[int] = None
52
- """Baremetal L40S GPU card count limit"""
52
+ """Bare metal L40S GPU server count limit"""
53
53
 
54
54
  baremetal_gpu_l40s_count_usage: Optional[int] = None
55
- """Baremetal L40S GPU card count usage"""
55
+ """Bare metal L40S GPU server count usage"""
56
56
 
57
57
  baremetal_hf_count_limit: Optional[int] = None
58
58
  """High-frequency bare metal servers count limit"""
@@ -47,7 +47,7 @@ class RequestedLimitsRegionalLimit(TypedDict, total=False):
47
47
  """Basic bare metal servers count limit"""
48
48
 
49
49
  baremetal_gpu_a100_count_limit: int
50
- """Baremetal A100 GPU card count limit"""
50
+ """Bare metal A100 GPU server count limit"""
51
51
 
52
52
  baremetal_gpu_count_limit: int
53
53
  """Total number of AI GPU bare metal servers.
@@ -58,13 +58,13 @@ class RequestedLimitsRegionalLimit(TypedDict, total=False):
58
58
  """
59
59
 
60
60
  baremetal_gpu_h100_count_limit: int
61
- """Baremetal H100 GPU card count limit"""
61
+ """Bare metal H100 GPU server count limit"""
62
62
 
63
63
  baremetal_gpu_h200_count_limit: int
64
- """Baremetal H200 GPU card count limit"""
64
+ """Bare metal H200 GPU server count limit"""
65
65
 
66
66
  baremetal_gpu_l40s_count_limit: int
67
- """Baremetal L40S GPU card count limit"""
67
+ """Bare metal L40S GPU server count limit"""
68
68
 
69
69
  baremetal_hf_count_limit: int
70
70
  """High-frequency bare metal servers count limit"""
@@ -36,7 +36,7 @@ class RequestedLimitsRegionalLimit(BaseModel):
36
36
  """Basic bare metal servers count limit"""
37
37
 
38
38
  baremetal_gpu_a100_count_limit: Optional[int] = None
39
- """Baremetal A100 GPU card count limit"""
39
+ """Bare metal A100 GPU server count limit"""
40
40
 
41
41
  baremetal_gpu_count_limit: Optional[int] = None
42
42
  """Total number of AI GPU bare metal servers.
@@ -47,13 +47,13 @@ class RequestedLimitsRegionalLimit(BaseModel):
47
47
  """
48
48
 
49
49
  baremetal_gpu_h100_count_limit: Optional[int] = None
50
- """Baremetal H100 GPU card count limit"""
50
+ """Bare metal H100 GPU server count limit"""
51
51
 
52
52
  baremetal_gpu_h200_count_limit: Optional[int] = None
53
- """Baremetal H200 GPU card count limit"""
53
+ """Bare metal H200 GPU server count limit"""
54
54
 
55
55
  baremetal_gpu_l40s_count_limit: Optional[int] = None
56
- """Baremetal L40S GPU card count limit"""
56
+ """Bare metal L40S GPU server count limit"""
57
57
 
58
58
  baremetal_hf_count_limit: Optional[int] = None
59
59
  """High-frequency bare metal servers count limit"""
@@ -36,7 +36,7 @@ class RequestedLimitsRegionalLimit(BaseModel):
36
36
  """Basic bare metal servers count limit"""
37
37
 
38
38
  baremetal_gpu_a100_count_limit: Optional[int] = None
39
- """Baremetal A100 GPU card count limit"""
39
+ """Bare metal A100 GPU server count limit"""
40
40
 
41
41
  baremetal_gpu_count_limit: Optional[int] = None
42
42
  """Total number of AI GPU bare metal servers.
@@ -47,13 +47,13 @@ class RequestedLimitsRegionalLimit(BaseModel):
47
47
  """
48
48
 
49
49
  baremetal_gpu_h100_count_limit: Optional[int] = None
50
- """Baremetal H100 GPU card count limit"""
50
+ """Bare metal H100 GPU server count limit"""
51
51
 
52
52
  baremetal_gpu_h200_count_limit: Optional[int] = None
53
- """Baremetal H200 GPU card count limit"""
53
+ """Bare metal H200 GPU server count limit"""
54
54
 
55
55
  baremetal_gpu_l40s_count_limit: Optional[int] = None
56
- """Baremetal L40S GPU card count limit"""
56
+ """Bare metal L40S GPU server count limit"""
57
57
 
58
58
  baremetal_hf_count_limit: Optional[int] = None
59
59
  """High-frequency bare metal servers count limit"""
@@ -22,9 +22,11 @@ class User(TypedDict, total=False):
22
22
  """User account operating time, days"""
23
23
 
24
24
  name: Required[str]
25
- """
26
- A name for the registry user. Should be in lowercase, consisting only of numbers
27
- and letters, with maximum length of 16 characters
25
+ """A name for the registry user.
26
+
27
+ Should be in lowercase, consisting only of numbers and letters,
28
+
29
+ with maximum length of 16 characters
28
30
  """
29
31
 
30
32
  read_only: bool
@@ -16,9 +16,11 @@ class UserCreateParams(TypedDict, total=False):
16
16
  """User account operating time, days"""
17
17
 
18
18
  name: Required[str]
19
- """
20
- A name for the registry user. Should be in lowercase, consisting only of numbers
21
- and letters, with maximum length of 16 characters
19
+ """A name for the registry user.
20
+
21
+ Should be in lowercase, consisting only of numbers and letters,
22
+
23
+ with maximum length of 16 characters
22
24
  """
23
25
 
24
26
  read_only: bool
@@ -13,9 +13,11 @@ class RegistryCreateParams(TypedDict, total=False):
13
13
  region_id: int
14
14
 
15
15
  name: Required[str]
16
- """
17
- A name for the container registry. Should be in lowercase, consisting only of
18
- numbers, letters and -, with maximum length of 24 characters
16
+ """A name for the container registry.
17
+
18
+ Should be in lowercase, consisting only of numbers, letters and -,
19
+
20
+ with maximum length of 24 characters
19
21
  """
20
22
 
21
23
  storage_limit: int
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Required, TypedDict
6
+
7
+ __all__ = ["ReservedFixedIPUpdateParams"]
8
+
9
+
10
+ class ReservedFixedIPUpdateParams(TypedDict, total=False):
11
+ project_id: int
12
+
13
+ region_id: int
14
+
15
+ is_vip: Required[bool]
16
+ """If reserved fixed IP should be a VIP"""
@@ -26,7 +26,9 @@ class SecurityGroupUpdateParams(TypedDict, total=False):
26
26
 
27
27
  Provide key-value pairs to add or update tags. Set tag values to `null` to
28
28
  remove tags. Unspecified tags remain unchanged. Read-only tags are always
29
- preserved and cannot be modified. **Examples:**
29
+ preserved and cannot be modified.
30
+
31
+ **Examples:**
30
32
 
31
33
  - **Add/update tags:**
32
34
  `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
@@ -26,9 +26,12 @@ class SSHKeyCreated(BaseModel):
26
26
  """The private part of an SSH key is the confidential portion of the key pair.
27
27
 
28
28
  It should never be shared or exposed. This key is used to prove your identity
29
- when connecting to a server. If you omit the `public_key`, the platform will
30
- generate a key for you. The `private_key` will be returned **once** in the API
31
- response. Be sure to save it securely, as it cannot be retrieved again later.
29
+ when connecting to a server.
30
+
31
+ If you omit the `public_key`, the platform will generate a key for you. The
32
+ `private_key` will be returned **once** in the API response. Be sure to save it
33
+ securely, as it cannot be retrieved again later.
34
+
32
35
  Best practice: Save the private key to a secure location on your machine (e.g.,
33
36
  `~/.ssh/id_ed25519`) and set the file permissions to be readable only by you.
34
37
  """
@@ -25,7 +25,9 @@ class VolumeUpdateParams(TypedDict, total=False):
25
25
 
26
26
  Provide key-value pairs to add or update tags. Set tag values to `null` to
27
27
  remove tags. Unspecified tags remain unchanged. Read-only tags are always
28
- preserved and cannot be modified. **Examples:**
28
+ preserved and cannot be modified.
29
+
30
+ **Examples:**
29
31
 
30
32
  - **Add/update tags:**
31
33
  `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
@@ -11,20 +11,23 @@ __all__ = ["ZoneGetStatisticsParams"]
11
11
 
12
12
  class ZoneGetStatisticsParams(TypedDict, total=False):
13
13
  from_: Annotated[int, PropertyInfo(alias="from")]
14
- """
15
- Beginning of the requested time period (Unix Timestamp, UTC.) In a query string:
16
- &from=1709068637
14
+ """Beginning of the requested time period (Unix Timestamp, UTC.)
15
+
16
+ In a query string: &from=1709068637
17
17
  """
18
18
 
19
19
  granularity: str
20
20
  """
21
21
  Granularity parameter string is a sequence of decimal numbers, each with
22
- optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m". Valid
23
- time units are "s", "m", "h".
22
+ optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m".
23
+
24
+ Valid time units are "s", "m", "h".
24
25
  """
25
26
 
26
27
  record_type: str
27
- """DNS record type. Possible values:
28
+ """DNS record type.
29
+
30
+ Possible values:
28
31
 
29
32
  - A
30
33
  - AAAA
@@ -37,7 +40,7 @@ class ZoneGetStatisticsParams(TypedDict, total=False):
37
40
  """
38
41
 
39
42
  to: int
40
- """
41
- End of the requested time period (Unix Timestamp, UTC.) In a query string:
42
- &to=1709673437
43
+ """End of the requested time period (Unix Timestamp, UTC.)
44
+
45
+ In a query string: &to=1709673437
43
46
  """
@@ -11,7 +11,9 @@ class ZoneGetStatisticsResponse(BaseModel):
11
11
  requests: Optional[object] = None
12
12
  """
13
13
  Requests amount (values) for particular zone fractionated by time intervals
14
- (keys). Example of response:
14
+ (keys).
15
+
16
+ Example of response:
15
17
  `{ "requests": { "1598608080000": 14716, "1598608140000": 51167, "1598608200000": 53432, "1598611020000": 51050, "1598611080000": 52611, "1598611140000": 46884 } }`
16
18
  """
17
19
 
@@ -14,19 +14,25 @@ class ZoneImportParams(TypedDict, total=False):
14
14
  It returns the number of bytes read (0 <= n <= len(p)) and any error
15
15
  encountered. Even if Read returns n < len(p), it may use all of p as scratch
16
16
  space during the call. If some data is available but not len(p) bytes, Read
17
- conventionally returns what is available instead of waiting for more. When Read
18
- encounters an error or end-of-file condition after successfully reading n > 0
19
- bytes, it returns the number of bytes read. It may return the (non-nil) error
20
- from the same call or return the error (and n == 0) from a subsequent call. An
21
- instance of this general case is that a Reader returning a non-zero number of
22
- bytes at the end of the input stream may return either err == EOF or err == nil.
23
- The next Read should return 0, EOF. Callers should always process the n > 0
24
- bytes returned before considering the error err. Doing so correctly handles I/O
25
- errors that happen after reading some bytes and also both of the allowed EOF
26
- behaviors. If len(p) == 0, Read should always return n == 0. It may return a
27
- non-nil error if some error condition is known, such as EOF. Implementations of
28
- Read are discouraged from returning a zero byte count with a nil error, except
29
- when len(p) == 0. Callers should treat a return of 0 and nil as indicating that
30
- nothing happened; in particular it does not indicate EOF. Implementations must
31
- not retain p.
17
+ conventionally returns what is available instead of waiting for more.
18
+
19
+ When Read encounters an error or end-of-file condition after successfully
20
+ reading n > 0 bytes, it returns the number of bytes read. It may return the
21
+ (non-nil) error from the same call or return the error (and n == 0) from a
22
+ subsequent call. An instance of this general case is that a Reader returning a
23
+ non-zero number of bytes at the end of the input stream may return either err ==
24
+ EOF or err == nil. The next Read should return 0, EOF.
25
+
26
+ Callers should always process the n > 0 bytes returned before considering the
27
+ error err. Doing so correctly handles I/O errors that happen after reading some
28
+ bytes and also both of the allowed EOF behaviors.
29
+
30
+ If len(p) == 0, Read should always return n == 0. It may return a non-nil error
31
+ if some error condition is known, such as EOF.
32
+
33
+ Implementations of Read are discouraged from returning a zero byte count with a
34
+ nil error, except when len(p) == 0. Callers should treat a return of 0 and nil
35
+ as indicating that nothing happened; in particular it does not indicate EOF.
36
+
37
+ Implementations must not retain p.
32
38
  """
@@ -42,9 +42,13 @@ class ResourceRecord(BaseModel):
42
42
  6. `backup` (bool)
43
43
  7. `notes` (string)
44
44
  8. `weight` (float)
45
- 9. `ip` (string) Some keys are reserved for balancing, @see
46
- https://api.gcore.com/dns/v2/info/meta This meta will be used to decide which
47
- resource record should pass through filters from the filter set
45
+ 9. `ip` (string)
46
+
47
+ Some keys are reserved for balancing, @see
48
+ https://api.gcore.com/dns/v2/info/meta
49
+
50
+ This meta will be used to decide which resource record should pass through
51
+ filters from the filter set
48
52
  """
49
53
 
50
54
 
@@ -372,7 +372,9 @@ class User(BaseModel):
372
372
  """User's email address."""
373
373
 
374
374
  groups: Optional[List[UserGroup]] = None
375
- """User's group in the current account. IAM supports 5 groups:
375
+ """User's group in the current account.
376
+
377
+ IAM supports 5 groups:
376
378
 
377
379
  - Users
378
380
  - Administrators
@@ -382,7 +384,10 @@ class User(BaseModel):
382
384
  """
383
385
 
384
386
  lang: Optional[Literal["de", "en", "ru", "zh", "az"]] = None
385
- """User's language. Defines language of the control panel and email messages."""
387
+ """User's language.
388
+
389
+ Defines language of the control panel and email messages.
390
+ """
386
391
 
387
392
  name: Optional[str] = None
388
393
  """User's name."""
@@ -405,50 +410,44 @@ class User(BaseModel):
405
410
 
406
411
 
407
412
  class AccountOverview(BaseModel):
408
- id: Optional[int] = None
413
+ id: int
409
414
  """The account ID."""
410
415
 
411
- bill_type: Optional[str] = None
416
+ bill_type: str
412
417
  """System field. Billing type of the account."""
413
418
 
414
- capabilities: Optional[List[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]]] = None
419
+ capabilities: List[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]]
415
420
  """System field. List of services available for the account."""
416
421
 
417
- company_name: Optional[str] = FieldInfo(alias="companyName", default=None)
422
+ company_name: str = FieldInfo(alias="companyName")
418
423
  """The company name."""
419
424
 
420
- country_code: Optional[str] = None
421
- """System field. The company country (ISO 3166-1 alpha-2 format)."""
422
-
423
- current_user: Optional[int] = FieldInfo(alias="currentUser", default=None)
425
+ current_user: int = FieldInfo(alias="currentUser")
424
426
  """ID of the current user."""
425
427
 
426
- custom_id: Optional[str] = None
427
- """The account custom ID."""
428
-
429
- deleted: Optional[bool] = None
428
+ deleted: bool
430
429
  """The field shows the status of the account:
431
430
 
432
431
  - `true` – the account has been deleted
433
432
  - `false` – the account is not deleted
434
433
  """
435
434
 
436
- email: Optional[str] = None
435
+ email: str
437
436
  """The account email."""
438
437
 
439
438
  entry_base_domain: Optional[str] = FieldInfo(alias="entryBaseDomain", default=None)
440
439
  """System field. Control panel domain."""
441
440
 
442
- free_features: Optional[FreeFeatures] = FieldInfo(alias="freeFeatures", default=None)
441
+ free_features: FreeFeatures = FieldInfo(alias="freeFeatures")
443
442
  """
444
443
  An object of arrays which contains information about free features available for
445
444
  the requested account.
446
445
  """
447
446
 
448
- has_active_admin: Optional[bool] = None
447
+ has_active_admin: bool
449
448
  """System field."""
450
449
 
451
- is_test: Optional[bool] = None
450
+ is_test: bool
452
451
  """System field:
453
452
 
454
453
  - `true` — a test account;
@@ -458,29 +457,33 @@ class AccountOverview(BaseModel):
458
457
  name: Optional[str] = None
459
458
  """Name of a user who registered the requested account."""
460
459
 
461
- paid_features: Optional[PaidFeatures] = FieldInfo(alias="paidFeatures", default=None)
460
+ paid_features: PaidFeatures = FieldInfo(alias="paidFeatures")
462
461
  """
463
462
  An object of arrays which contains information about paid features available for
464
463
  the requested account.
465
464
  """
466
465
 
467
- phone: Optional[str] = None
468
- """Phone of a user who registered the requested account."""
469
-
470
- service_statuses: Optional[ServiceStatuses] = FieldInfo(alias="serviceStatuses", default=None)
466
+ service_statuses: ServiceStatuses = FieldInfo(alias="serviceStatuses")
471
467
  """
472
468
  An object of arrays which contains information about all services available for
473
469
  the requested account.
474
470
  """
475
471
 
472
+ status: Literal["new", "trial", "trialend", "active", "integration", "paused", "preparation", "ready"]
473
+ """Status of the account."""
474
+
475
+ country_code: Optional[str] = None
476
+ """System field. The company country (ISO 3166-1 alpha-2 format)."""
477
+
478
+ custom_id: Optional[str] = None
479
+ """The account custom ID."""
480
+
481
+ phone: Optional[str] = None
482
+ """Phone of a user who registered the requested account."""
483
+
476
484
  signup_process: Optional[Literal["sign_up_full", "sign_up_simple"]] = None
477
485
  """System field. Type of the account registration process."""
478
486
 
479
- status: Optional[Literal["new", "trial", "trialend", "active", "integration", "paused", "preparation", "ready"]] = (
480
- None
481
- )
482
- """Status of the account."""
483
-
484
487
  users: Optional[List[User]] = None
485
488
  """List of account users."""
486
489
 
@@ -25,54 +25,54 @@ class ClientUserRole(BaseModel):
25
25
 
26
26
 
27
27
  class ClientUser(BaseModel):
28
- client_id: Optional[int] = None
28
+ client_id: int
29
29
  """Account's ID."""
30
30
 
31
- deleted: Optional[bool] = None
31
+ deleted: bool
32
32
  """Deletion flag. If true, then the API token was deleted."""
33
33
 
34
- role: Optional[ClientUserRole] = None
34
+ role: ClientUserRole
35
35
 
36
- user_email: Optional[str] = None
36
+ user_email: str
37
37
  """User's email who issued the API token."""
38
38
 
39
- user_id: Optional[int] = None
39
+ user_id: int
40
40
  """User's ID who issued the API token."""
41
41
 
42
- user_name: Optional[str] = None
42
+ user_name: str
43
43
  """User's name who issued the API token."""
44
44
 
45
45
 
46
46
  class APIToken(BaseModel):
47
- client_user: ClientUser
48
-
49
- exp_date: str
50
- """
51
- Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
52
- null, then the API token will never expire.
53
- """
54
-
55
- name: str
56
- """API token name."""
57
-
58
- id: Optional[int] = None
47
+ id: int
59
48
  """API token ID."""
60
49
 
61
- created: Optional[str] = None
50
+ client_user: ClientUser
51
+
52
+ created: str
62
53
  """Date when the API token was issued (ISO 8086/RFC 3339 format), UTC."""
63
54
 
64
- deleted: Optional[bool] = None
55
+ deleted: bool
65
56
  """Deletion flag. If true, then the API token was deleted."""
66
57
 
67
- description: Optional[str] = None
68
- """API token description."""
58
+ exp_date: Optional[str] = None
59
+ """
60
+ Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
61
+ null, then the API token will never expire.
62
+ """
69
63
 
70
- expired: Optional[bool] = None
64
+ expired: bool
71
65
  """Expiration flag.
72
66
 
73
67
  If true, then the API token has expired. When an API token expires it will be
74
68
  automatically deleted.
75
69
  """
76
70
 
77
- last_usage: Optional[str] = None
71
+ last_usage: str
78
72
  """Date when the API token was last used (ISO 8086/RFC 3339 format), UTC."""
73
+
74
+ name: str
75
+ """API token name."""
76
+
77
+ description: Optional[str] = None
78
+ """API token description."""
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Optional
5
6
  from typing_extensions import Literal, Required, TypedDict
6
7
 
7
8
  __all__ = ["APITokenCreateParams", "ClientUser", "ClientUserRole"]
@@ -11,7 +12,7 @@ class APITokenCreateParams(TypedDict, total=False):
11
12
  client_user: Required[ClientUser]
12
13
  """API token role."""
13
14
 
14
- exp_date: Required[str]
15
+ exp_date: Required[Optional[str]]
15
16
  """
16
17
  Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
17
18
  null, then the API token will never expire.