gcore 0.12.0__py3-none-any.whl → 0.14.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 (340) 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 +270 -52
  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 +105 -81
  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 +123 -107
  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 +247 -189
  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 +43 -27
  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 +70 -38
  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 +1977 -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 +1825 -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 +1803 -0
  233. gcore/types/cdn/resource_update_params.py +1794 -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 +1695 -0
  237. gcore/types/cdn/resources/origin_shielding.py +15 -0
  238. gcore/types/cdn/resources/rule_create_params.py +1652 -0
  239. gcore/types/cdn/resources/rule_list_response.py +10 -0
  240. gcore/types/cdn/resources/rule_replace_params.py +1654 -0
  241. gcore/types/cdn/resources/rule_update_params.py +1654 -0
  242. gcore/types/cdn/resources/shield_replace_params.py +16 -0
  243. gcore/types/cdn/rule_template.py +1666 -0
  244. gcore/types/cdn/rule_template_create_params.py +1636 -0
  245. gcore/types/cdn/rule_template_list.py +10 -0
  246. gcore/types/cdn/rule_template_replace_params.py +1636 -0
  247. gcore/types/cdn/rule_template_update_params.py +1636 -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.py +1 -1
  268. gcore/types/cloud/floating_ip_detailed.py +1 -1
  269. gcore/types/cloud/floating_ip_update_params.py +43 -0
  270. gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
  271. gcore/types/cloud/inference/inference_deployment.py +3 -1
  272. gcore/types/cloud/instance_create_params.py +3 -1
  273. gcore/types/cloud/k8s/cluster_create_params.py +46 -4
  274. gcore/types/cloud/k8s/cluster_update_params.py +60 -6
  275. gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
  276. gcore/types/cloud/k8s/k8s_cluster.py +40 -3
  277. gcore/types/cloud/load_balancer_update_params.py +3 -1
  278. gcore/types/cloud/network_update_params.py +3 -1
  279. gcore/types/cloud/networks/subnet_update_params.py +3 -1
  280. gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
  281. gcore/types/cloud/registries/user_create_params.py +5 -3
  282. gcore/types/cloud/registry_create_params.py +5 -3
  283. gcore/types/cloud/security_group_update_params.py +3 -1
  284. gcore/types/cloud/ssh_key_created.py +6 -3
  285. gcore/types/cloud/volume_update_params.py +3 -1
  286. gcore/types/dns/zone_get_statistics_params.py +12 -9
  287. gcore/types/dns/zone_get_statistics_response.py +3 -1
  288. gcore/types/dns/zone_import_params.py +21 -15
  289. gcore/types/dns/zones/dns_output_rrset.py +7 -3
  290. gcore/types/iam/account_overview.py +7 -2
  291. gcore/types/iam/user.py +7 -2
  292. gcore/types/iam/user_detailed.py +7 -2
  293. gcore/types/iam/user_invite_params.py +4 -1
  294. gcore/types/iam/user_update.py +7 -2
  295. gcore/types/iam/user_update_params.py +7 -2
  296. gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
  297. gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
  298. gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
  299. gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
  300. gcore/types/streaming/ai_task.py +20 -11
  301. gcore/types/streaming/ai_task_create_params.py +20 -11
  302. gcore/types/streaming/ai_task_get_response.py +5 -4
  303. gcore/types/streaming/ai_task_list_params.py +11 -5
  304. gcore/types/streaming/clip.py +33 -22
  305. gcore/types/streaming/create_video_param.py +75 -43
  306. gcore/types/streaming/playlist.py +7 -5
  307. gcore/types/streaming/playlist_create_params.py +7 -5
  308. gcore/types/streaming/playlist_update_params.py +7 -5
  309. gcore/types/streaming/playlist_video.py +75 -43
  310. gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
  311. gcore/types/streaming/stream.py +207 -136
  312. gcore/types/streaming/stream_create_clip_params.py +33 -22
  313. gcore/types/streaming/stream_create_params.py +41 -24
  314. gcore/types/streaming/stream_update_params.py +41 -24
  315. gcore/types/streaming/video.py +138 -76
  316. gcore/types/streaming/video_list_params.py +4 -2
  317. gcore/types/streaming/video_update_params.py +75 -43
  318. gcore/types/waap/__init__.py +2 -1
  319. gcore/types/waap/domain_update_params.py +2 -2
  320. gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
  321. gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
  322. gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
  323. gcore/types/waap/domains/api_path_create_params.py +0 -3
  324. gcore/types/waap/domains/api_path_update_params.py +1 -3
  325. gcore/types/waap/domains/custom_rule_create_params.py +36 -35
  326. gcore/types/waap/domains/custom_rule_update_params.py +31 -33
  327. gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
  328. gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
  329. gcore/types/waap/domains/waap_advanced_rule.py +17 -9
  330. gcore/types/waap/domains/waap_custom_rule.py +5 -2
  331. gcore/types/waap/domains/waap_firewall_rule.py +1 -1
  332. gcore/types/waap/domains/waap_insight.py +1 -1
  333. gcore/types/waap/insight_list_types_params.py +1 -1
  334. gcore/types/waap/ip_info_get_top_urls_response.py +3 -12
  335. gcore/types/waap/{ip_info_get_ip_info_response.py → waap_ip_info.py} +2 -2
  336. gcore/types/waap/waap_top_url.py +13 -0
  337. {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/METADATA +1 -1
  338. {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/RECORD +340 -218
  339. {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/WHEEL +0 -0
  340. {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/licenses/LICENSE +0 -0
@@ -8,7 +8,7 @@ from typing_extensions import Literal
8
8
 
9
9
  import httpx
10
10
 
11
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
11
+ from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
12
12
  from ...._utils import maybe_transform, async_maybe_transform
13
13
  from ...._compat import cached_property
14
14
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -54,28 +54,30 @@ class ServersResource(SyncAPIResource):
54
54
  region_id: int | None = None,
55
55
  flavor: str,
56
56
  interfaces: Iterable[server_create_params.Interface],
57
- app_config: Optional[object] | NotGiven = NOT_GIVEN,
58
- apptemplate_id: str | NotGiven = NOT_GIVEN,
59
- ddos_profile: server_create_params.DDOSProfile | NotGiven = NOT_GIVEN,
60
- image_id: str | NotGiven = NOT_GIVEN,
61
- name: str | NotGiven = NOT_GIVEN,
62
- name_template: str | NotGiven = NOT_GIVEN,
63
- password: str | NotGiven = NOT_GIVEN,
64
- ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
65
- tags: Dict[str, str] | NotGiven = NOT_GIVEN,
66
- user_data: str | NotGiven = NOT_GIVEN,
67
- username: str | NotGiven = NOT_GIVEN,
57
+ app_config: Optional[object] | Omit = omit,
58
+ apptemplate_id: str | Omit = omit,
59
+ ddos_profile: server_create_params.DDOSProfile | Omit = omit,
60
+ image_id: str | Omit = omit,
61
+ name: str | Omit = omit,
62
+ name_template: str | Omit = omit,
63
+ password: str | Omit = omit,
64
+ ssh_key_name: Optional[str] | Omit = omit,
65
+ tags: Dict[str, str] | Omit = omit,
66
+ user_data: str | Omit = omit,
67
+ username: str | Omit = omit,
68
68
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
69
69
  # The extra values given here take precedence over values defined on the client or passed to this method.
70
70
  extra_headers: Headers | None = None,
71
71
  extra_query: Query | None = None,
72
72
  extra_body: Body | None = None,
73
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
73
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
74
74
  ) -> TaskIDList:
75
- """Create a new bare metal server with the specified configuration.
75
+ """
76
+ Create a new bare metal server with the specified configuration.
77
+
78
+ How to get access:
76
79
 
77
- How to get
78
- access: For Linux,
80
+ For Linux,
79
81
 
80
82
  - Use the `user_data` field to provide a
81
83
  [cloud-init script](https://cloudinit.readthedocs.io/en/latest/reference/examples.html)
@@ -83,7 +85,10 @@ class ServersResource(SyncAPIResource):
83
85
  - Specify the `username` and `password` to create a new user.
84
86
  - When only `password` is provided, it is set as the password for the default
85
87
  user of the image.
86
- - The `user_data` is ignored when the `password` is specified. For Windows,
88
+ - The `user_data` is ignored when the `password` is specified.
89
+
90
+ For Windows,
91
+
87
92
  - Use the `user_data` field to provide a
88
93
  [cloudbase-init script](https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config)
89
94
  in base64 to create new users on Windows.
@@ -156,7 +161,9 @@ class ServersResource(SyncAPIResource):
156
161
  if region_id is None:
157
162
  region_id = self._client._get_cloud_region_id_path_param()
158
163
  return self._post(
159
- f"/cloud/v1/bminstances/{project_id}/{region_id}",
164
+ f"/cloud/v1/bminstances/{project_id}/{region_id}"
165
+ if self._client._base_url_overridden
166
+ else f"https://api.gcore.com//cloud/v1/bminstances/{project_id}/{region_id}",
160
167
  body=maybe_transform(
161
168
  {
162
169
  "flavor": flavor,
@@ -186,37 +193,37 @@ class ServersResource(SyncAPIResource):
186
193
  *,
187
194
  project_id: int | None = None,
188
195
  region_id: int | None = None,
189
- changes_before: Union[str, datetime] | NotGiven = NOT_GIVEN,
190
- changes_since: Union[str, datetime] | NotGiven = NOT_GIVEN,
191
- flavor_id: str | NotGiven = NOT_GIVEN,
192
- flavor_prefix: str | NotGiven = NOT_GIVEN,
193
- include_k8s: bool | NotGiven = NOT_GIVEN,
194
- ip: str | NotGiven = NOT_GIVEN,
195
- limit: int | NotGiven = NOT_GIVEN,
196
- name: str | NotGiven = NOT_GIVEN,
197
- offset: int | NotGiven = NOT_GIVEN,
198
- only_isolated: bool | NotGiven = NOT_GIVEN,
199
- only_with_fixed_external_ip: bool | NotGiven = NOT_GIVEN,
196
+ changes_before: Union[str, datetime] | Omit = omit,
197
+ changes_since: Union[str, datetime] | Omit = omit,
198
+ flavor_id: str | Omit = omit,
199
+ flavor_prefix: str | Omit = omit,
200
+ include_k8s: bool | Omit = omit,
201
+ ip: str | Omit = omit,
202
+ limit: int | Omit = omit,
203
+ name: str | Omit = omit,
204
+ offset: int | Omit = omit,
205
+ only_isolated: bool | Omit = omit,
206
+ only_with_fixed_external_ip: bool | Omit = omit,
200
207
  order_by: Literal["created.asc", "created.desc", "name.asc", "name.desc", "status.asc", "status.desc"]
201
- | NotGiven = NOT_GIVEN,
202
- profile_name: str | NotGiven = NOT_GIVEN,
203
- protection_status: Literal["Active", "Queued", "Error"] | NotGiven = NOT_GIVEN,
208
+ | Omit = omit,
209
+ profile_name: str | Omit = omit,
210
+ protection_status: Literal["Active", "Queued", "Error"] | Omit = omit,
204
211
  status: Literal[
205
212
  "ACTIVE", "BUILD", "ERROR", "HARD_REBOOT", "REBOOT", "REBUILD", "RESCUE", "SHUTOFF", "SUSPENDED"
206
213
  ]
207
- | NotGiven = NOT_GIVEN,
208
- tag_key_value: str | NotGiven = NOT_GIVEN,
209
- tag_value: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
210
- type_ddos_profile: Literal["basic", "advanced"] | NotGiven = NOT_GIVEN,
211
- uuid: str | NotGiven = NOT_GIVEN,
212
- with_ddos: bool | NotGiven = NOT_GIVEN,
213
- with_interfaces_name: bool | NotGiven = NOT_GIVEN,
214
+ | Omit = omit,
215
+ tag_key_value: str | Omit = omit,
216
+ tag_value: SequenceNotStr[str] | Omit = omit,
217
+ type_ddos_profile: Literal["basic", "advanced"] | Omit = omit,
218
+ uuid: str | Omit = omit,
219
+ with_ddos: bool | Omit = omit,
220
+ with_interfaces_name: bool | Omit = omit,
214
221
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
215
222
  # The extra values given here take precedence over values defined on the client or passed to this method.
216
223
  extra_headers: Headers | None = None,
217
224
  extra_query: Query | None = None,
218
225
  extra_body: Body | None = None,
219
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
226
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
220
227
  ) -> SyncOffsetPage[BaremetalServer]:
221
228
  """List all bare metal servers in the specified project and region.
222
229
 
@@ -294,7 +301,9 @@ class ServersResource(SyncAPIResource):
294
301
  if region_id is None:
295
302
  region_id = self._client._get_cloud_region_id_path_param()
296
303
  return self._get_api_list(
297
- f"/cloud/v1/bminstances/{project_id}/{region_id}",
304
+ f"/cloud/v1/bminstances/{project_id}/{region_id}"
305
+ if self._client._base_url_overridden
306
+ else f"https://api.gcore.com//cloud/v1/bminstances/{project_id}/{region_id}",
298
307
  page=SyncOffsetPage[BaremetalServer],
299
308
  options=make_request_options(
300
309
  extra_headers=extra_headers,
@@ -337,14 +346,14 @@ class ServersResource(SyncAPIResource):
337
346
  *,
338
347
  project_id: int | None = None,
339
348
  region_id: int | None = None,
340
- image_id: str | NotGiven = NOT_GIVEN,
341
- user_data: str | NotGiven = NOT_GIVEN,
349
+ image_id: str | Omit = omit,
350
+ user_data: str | Omit = omit,
342
351
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
343
352
  # The extra values given here take precedence over values defined on the client or passed to this method.
344
353
  extra_headers: Headers | None = None,
345
354
  extra_query: Query | None = None,
346
355
  extra_body: Body | None = None,
347
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
356
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
348
357
  ) -> TaskIDList:
349
358
  """
350
359
  Rebuild a bare metal server with a new image while preserving its configuration.
@@ -377,7 +386,9 @@ class ServersResource(SyncAPIResource):
377
386
  if not server_id:
378
387
  raise ValueError(f"Expected a non-empty value for `server_id` but received {server_id!r}")
379
388
  return self._post(
380
- f"/cloud/v1/bminstances/{project_id}/{region_id}/{server_id}/rebuild",
389
+ f"/cloud/v1/bminstances/{project_id}/{region_id}/{server_id}/rebuild"
390
+ if self._client._base_url_overridden
391
+ else f"https://api.gcore.com//cloud/v1/bminstances/{project_id}/{region_id}/{server_id}/rebuild",
381
392
  body=maybe_transform(
382
393
  {
383
394
  "image_id": image_id,
@@ -398,18 +409,18 @@ class ServersResource(SyncAPIResource):
398
409
  region_id: int | None = None,
399
410
  flavor: str,
400
411
  interfaces: Iterable[server_create_params.Interface],
401
- app_config: Optional[object] | NotGiven = NOT_GIVEN,
402
- apptemplate_id: str | NotGiven = NOT_GIVEN,
403
- ddos_profile: server_create_params.DDOSProfile | NotGiven = NOT_GIVEN,
404
- image_id: str | NotGiven = NOT_GIVEN,
405
- name: str | NotGiven = NOT_GIVEN,
406
- name_template: str | NotGiven = NOT_GIVEN,
407
- password: str | NotGiven = NOT_GIVEN,
408
- ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
409
- tags: Dict[str, str] | NotGiven = NOT_GIVEN,
410
- user_data: str | NotGiven = NOT_GIVEN,
411
- username: str | NotGiven = NOT_GIVEN,
412
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
412
+ app_config: Optional[object] | Omit = omit,
413
+ apptemplate_id: str | Omit = omit,
414
+ ddos_profile: server_create_params.DDOSProfile | Omit = omit,
415
+ image_id: str | Omit = omit,
416
+ name: str | Omit = omit,
417
+ name_template: str | Omit = omit,
418
+ password: str | Omit = omit,
419
+ ssh_key_name: Optional[str] | Omit = omit,
420
+ tags: Dict[str, str] | Omit = omit,
421
+ user_data: str | Omit = omit,
422
+ username: str | Omit = omit,
423
+ polling_interval_seconds: int | Omit = omit,
413
424
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
414
425
  # The extra values given here take precedence over values defined on the client or passed to this method.
415
426
  extra_headers: Headers | None = None,
@@ -467,9 +478,9 @@ class ServersResource(SyncAPIResource):
467
478
  *,
468
479
  project_id: int | None = None,
469
480
  region_id: int | None = None,
470
- image_id: str | NotGiven = NOT_GIVEN,
471
- user_data: str | NotGiven = NOT_GIVEN,
472
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
481
+ image_id: str | Omit = omit,
482
+ user_data: str | Omit = omit,
483
+ polling_interval_seconds: int | Omit = omit,
473
484
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
474
485
  # The extra values given here take precedence over values defined on the client or passed to this method.
475
486
  extra_headers: Headers | None = None,
@@ -536,28 +547,30 @@ class AsyncServersResource(AsyncAPIResource):
536
547
  region_id: int | None = None,
537
548
  flavor: str,
538
549
  interfaces: Iterable[server_create_params.Interface],
539
- app_config: Optional[object] | NotGiven = NOT_GIVEN,
540
- apptemplate_id: str | NotGiven = NOT_GIVEN,
541
- ddos_profile: server_create_params.DDOSProfile | NotGiven = NOT_GIVEN,
542
- image_id: str | NotGiven = NOT_GIVEN,
543
- name: str | NotGiven = NOT_GIVEN,
544
- name_template: str | NotGiven = NOT_GIVEN,
545
- password: str | NotGiven = NOT_GIVEN,
546
- ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
547
- tags: Dict[str, str] | NotGiven = NOT_GIVEN,
548
- user_data: str | NotGiven = NOT_GIVEN,
549
- username: str | NotGiven = NOT_GIVEN,
550
+ app_config: Optional[object] | Omit = omit,
551
+ apptemplate_id: str | Omit = omit,
552
+ ddos_profile: server_create_params.DDOSProfile | Omit = omit,
553
+ image_id: str | Omit = omit,
554
+ name: str | Omit = omit,
555
+ name_template: str | Omit = omit,
556
+ password: str | Omit = omit,
557
+ ssh_key_name: Optional[str] | Omit = omit,
558
+ tags: Dict[str, str] | Omit = omit,
559
+ user_data: str | Omit = omit,
560
+ username: str | Omit = omit,
550
561
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
551
562
  # The extra values given here take precedence over values defined on the client or passed to this method.
552
563
  extra_headers: Headers | None = None,
553
564
  extra_query: Query | None = None,
554
565
  extra_body: Body | None = None,
555
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
566
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
556
567
  ) -> TaskIDList:
557
- """Create a new bare metal server with the specified configuration.
568
+ """
569
+ Create a new bare metal server with the specified configuration.
570
+
571
+ How to get access:
558
572
 
559
- How to get
560
- access: For Linux,
573
+ For Linux,
561
574
 
562
575
  - Use the `user_data` field to provide a
563
576
  [cloud-init script](https://cloudinit.readthedocs.io/en/latest/reference/examples.html)
@@ -565,7 +578,10 @@ class AsyncServersResource(AsyncAPIResource):
565
578
  - Specify the `username` and `password` to create a new user.
566
579
  - When only `password` is provided, it is set as the password for the default
567
580
  user of the image.
568
- - The `user_data` is ignored when the `password` is specified. For Windows,
581
+ - The `user_data` is ignored when the `password` is specified.
582
+
583
+ For Windows,
584
+
569
585
  - Use the `user_data` field to provide a
570
586
  [cloudbase-init script](https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config)
571
587
  in base64 to create new users on Windows.
@@ -638,7 +654,9 @@ class AsyncServersResource(AsyncAPIResource):
638
654
  if region_id is None:
639
655
  region_id = self._client._get_cloud_region_id_path_param()
640
656
  return await self._post(
641
- f"/cloud/v1/bminstances/{project_id}/{region_id}",
657
+ f"/cloud/v1/bminstances/{project_id}/{region_id}"
658
+ if self._client._base_url_overridden
659
+ else f"https://api.gcore.com//cloud/v1/bminstances/{project_id}/{region_id}",
642
660
  body=await async_maybe_transform(
643
661
  {
644
662
  "flavor": flavor,
@@ -668,37 +686,37 @@ class AsyncServersResource(AsyncAPIResource):
668
686
  *,
669
687
  project_id: int | None = None,
670
688
  region_id: int | None = None,
671
- changes_before: Union[str, datetime] | NotGiven = NOT_GIVEN,
672
- changes_since: Union[str, datetime] | NotGiven = NOT_GIVEN,
673
- flavor_id: str | NotGiven = NOT_GIVEN,
674
- flavor_prefix: str | NotGiven = NOT_GIVEN,
675
- include_k8s: bool | NotGiven = NOT_GIVEN,
676
- ip: str | NotGiven = NOT_GIVEN,
677
- limit: int | NotGiven = NOT_GIVEN,
678
- name: str | NotGiven = NOT_GIVEN,
679
- offset: int | NotGiven = NOT_GIVEN,
680
- only_isolated: bool | NotGiven = NOT_GIVEN,
681
- only_with_fixed_external_ip: bool | NotGiven = NOT_GIVEN,
689
+ changes_before: Union[str, datetime] | Omit = omit,
690
+ changes_since: Union[str, datetime] | Omit = omit,
691
+ flavor_id: str | Omit = omit,
692
+ flavor_prefix: str | Omit = omit,
693
+ include_k8s: bool | Omit = omit,
694
+ ip: str | Omit = omit,
695
+ limit: int | Omit = omit,
696
+ name: str | Omit = omit,
697
+ offset: int | Omit = omit,
698
+ only_isolated: bool | Omit = omit,
699
+ only_with_fixed_external_ip: bool | Omit = omit,
682
700
  order_by: Literal["created.asc", "created.desc", "name.asc", "name.desc", "status.asc", "status.desc"]
683
- | NotGiven = NOT_GIVEN,
684
- profile_name: str | NotGiven = NOT_GIVEN,
685
- protection_status: Literal["Active", "Queued", "Error"] | NotGiven = NOT_GIVEN,
701
+ | Omit = omit,
702
+ profile_name: str | Omit = omit,
703
+ protection_status: Literal["Active", "Queued", "Error"] | Omit = omit,
686
704
  status: Literal[
687
705
  "ACTIVE", "BUILD", "ERROR", "HARD_REBOOT", "REBOOT", "REBUILD", "RESCUE", "SHUTOFF", "SUSPENDED"
688
706
  ]
689
- | NotGiven = NOT_GIVEN,
690
- tag_key_value: str | NotGiven = NOT_GIVEN,
691
- tag_value: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
692
- type_ddos_profile: Literal["basic", "advanced"] | NotGiven = NOT_GIVEN,
693
- uuid: str | NotGiven = NOT_GIVEN,
694
- with_ddos: bool | NotGiven = NOT_GIVEN,
695
- with_interfaces_name: bool | NotGiven = NOT_GIVEN,
707
+ | Omit = omit,
708
+ tag_key_value: str | Omit = omit,
709
+ tag_value: SequenceNotStr[str] | Omit = omit,
710
+ type_ddos_profile: Literal["basic", "advanced"] | Omit = omit,
711
+ uuid: str | Omit = omit,
712
+ with_ddos: bool | Omit = omit,
713
+ with_interfaces_name: bool | Omit = omit,
696
714
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
697
715
  # The extra values given here take precedence over values defined on the client or passed to this method.
698
716
  extra_headers: Headers | None = None,
699
717
  extra_query: Query | None = None,
700
718
  extra_body: Body | None = None,
701
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
719
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
702
720
  ) -> AsyncPaginator[BaremetalServer, AsyncOffsetPage[BaremetalServer]]:
703
721
  """List all bare metal servers in the specified project and region.
704
722
 
@@ -776,7 +794,9 @@ class AsyncServersResource(AsyncAPIResource):
776
794
  if region_id is None:
777
795
  region_id = self._client._get_cloud_region_id_path_param()
778
796
  return self._get_api_list(
779
- f"/cloud/v1/bminstances/{project_id}/{region_id}",
797
+ f"/cloud/v1/bminstances/{project_id}/{region_id}"
798
+ if self._client._base_url_overridden
799
+ else f"https://api.gcore.com//cloud/v1/bminstances/{project_id}/{region_id}",
780
800
  page=AsyncOffsetPage[BaremetalServer],
781
801
  options=make_request_options(
782
802
  extra_headers=extra_headers,
@@ -819,14 +839,14 @@ class AsyncServersResource(AsyncAPIResource):
819
839
  *,
820
840
  project_id: int | None = None,
821
841
  region_id: int | None = None,
822
- image_id: str | NotGiven = NOT_GIVEN,
823
- user_data: str | NotGiven = NOT_GIVEN,
842
+ image_id: str | Omit = omit,
843
+ user_data: str | Omit = omit,
824
844
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
825
845
  # The extra values given here take precedence over values defined on the client or passed to this method.
826
846
  extra_headers: Headers | None = None,
827
847
  extra_query: Query | None = None,
828
848
  extra_body: Body | None = None,
829
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
849
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
830
850
  ) -> TaskIDList:
831
851
  """
832
852
  Rebuild a bare metal server with a new image while preserving its configuration.
@@ -859,7 +879,9 @@ class AsyncServersResource(AsyncAPIResource):
859
879
  if not server_id:
860
880
  raise ValueError(f"Expected a non-empty value for `server_id` but received {server_id!r}")
861
881
  return await self._post(
862
- f"/cloud/v1/bminstances/{project_id}/{region_id}/{server_id}/rebuild",
882
+ f"/cloud/v1/bminstances/{project_id}/{region_id}/{server_id}/rebuild"
883
+ if self._client._base_url_overridden
884
+ else f"https://api.gcore.com//cloud/v1/bminstances/{project_id}/{region_id}/{server_id}/rebuild",
863
885
  body=await async_maybe_transform(
864
886
  {
865
887
  "image_id": image_id,
@@ -880,18 +902,18 @@ class AsyncServersResource(AsyncAPIResource):
880
902
  region_id: int | None = None,
881
903
  flavor: str,
882
904
  interfaces: Iterable[server_create_params.Interface],
883
- app_config: Optional[object] | NotGiven = NOT_GIVEN,
884
- apptemplate_id: str | NotGiven = NOT_GIVEN,
885
- ddos_profile: server_create_params.DDOSProfile | NotGiven = NOT_GIVEN,
886
- image_id: str | NotGiven = NOT_GIVEN,
887
- name: str | NotGiven = NOT_GIVEN,
888
- name_template: str | NotGiven = NOT_GIVEN,
889
- password: str | NotGiven = NOT_GIVEN,
890
- ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
891
- tags: Dict[str, str] | NotGiven = NOT_GIVEN,
892
- user_data: str | NotGiven = NOT_GIVEN,
893
- username: str | NotGiven = NOT_GIVEN,
894
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
905
+ app_config: Optional[object] | Omit = omit,
906
+ apptemplate_id: str | Omit = omit,
907
+ ddos_profile: server_create_params.DDOSProfile | Omit = omit,
908
+ image_id: str | Omit = omit,
909
+ name: str | Omit = omit,
910
+ name_template: str | Omit = omit,
911
+ password: str | Omit = omit,
912
+ ssh_key_name: Optional[str] | Omit = omit,
913
+ tags: Dict[str, str] | Omit = omit,
914
+ user_data: str | Omit = omit,
915
+ username: str | Omit = omit,
916
+ polling_interval_seconds: int | Omit = omit,
895
917
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
896
918
  # The extra values given here take precedence over values defined on the client or passed to this method.
897
919
  extra_headers: Headers | None = None,
@@ -949,9 +971,9 @@ class AsyncServersResource(AsyncAPIResource):
949
971
  *,
950
972
  project_id: int | None = None,
951
973
  region_id: int | None = None,
952
- image_id: str | NotGiven = NOT_GIVEN,
953
- user_data: str | NotGiven = NOT_GIVEN,
954
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
974
+ image_id: str | Omit = omit,
975
+ user_data: str | Omit = omit,
976
+ polling_interval_seconds: int | Omit = omit,
955
977
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
956
978
  # The extra values given here take precedence over values defined on the client or passed to this method.
957
979
  extra_headers: Headers | None = None,
@@ -8,7 +8,7 @@ from typing_extensions import Literal
8
8
 
9
9
  import httpx
10
10
 
11
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
11
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
12
12
  from ..._utils import maybe_transform
13
13
  from ..._compat import cached_property
14
14
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -49,15 +49,15 @@ class BillingReservationsResource(SyncAPIResource):
49
49
  def list(
50
50
  self,
51
51
  *,
52
- activated_from: Union[str, date] | NotGiven = NOT_GIVEN,
53
- activated_to: Union[str, date] | NotGiven = NOT_GIVEN,
54
- created_from: Union[str, datetime] | NotGiven = NOT_GIVEN,
55
- created_to: Union[str, datetime] | NotGiven = NOT_GIVEN,
56
- deactivated_from: Union[str, date] | NotGiven = NOT_GIVEN,
57
- deactivated_to: Union[str, date] | NotGiven = NOT_GIVEN,
58
- limit: int | NotGiven = NOT_GIVEN,
59
- metric_name: str | NotGiven = NOT_GIVEN,
60
- offset: int | NotGiven = NOT_GIVEN,
52
+ activated_from: Union[str, date] | Omit = omit,
53
+ activated_to: Union[str, date] | Omit = omit,
54
+ created_from: Union[str, datetime] | Omit = omit,
55
+ created_to: Union[str, datetime] | Omit = omit,
56
+ deactivated_from: Union[str, date] | Omit = omit,
57
+ deactivated_to: Union[str, date] | Omit = omit,
58
+ limit: int | Omit = omit,
59
+ metric_name: str | Omit = omit,
60
+ offset: int | Omit = omit,
61
61
  order_by: Literal[
62
62
  "active_from.asc",
63
63
  "active_from.desc",
@@ -66,20 +66,20 @@ class BillingReservationsResource(SyncAPIResource):
66
66
  "created_at.asc",
67
67
  "created_at.desc",
68
68
  ]
69
- | NotGiven = NOT_GIVEN,
70
- region_id: int | NotGiven = NOT_GIVEN,
69
+ | Omit = omit,
70
+ region_id: int | Omit = omit,
71
71
  status: List[
72
72
  Literal[
73
73
  "ACTIVATED", "APPROVED", "COPIED", "CREATED", "EXPIRED", "REJECTED", "RESERVED", "WAITING_FOR_PAYMENT"
74
74
  ]
75
75
  ]
76
- | NotGiven = NOT_GIVEN,
76
+ | Omit = omit,
77
77
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
78
78
  # The extra values given here take precedence over values defined on the client or passed to this method.
79
79
  extra_headers: Headers | None = None,
80
80
  extra_query: Query | None = None,
81
81
  extra_body: Body | None = None,
82
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
82
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
83
83
  ) -> SyncOffsetPage[BillingReservation]:
84
84
  """
85
85
  List reservations
@@ -120,7 +120,9 @@ class BillingReservationsResource(SyncAPIResource):
120
120
  timeout: Override the client-level default timeout for this request, in seconds
121
121
  """
122
122
  return self._get_api_list(
123
- "/cloud/v1/reservations",
123
+ "/cloud/v1/reservations"
124
+ if self._client._base_url_overridden
125
+ else "https://api.gcore.com//cloud/v1/reservations",
124
126
  page=SyncOffsetPage[BillingReservation],
125
127
  options=make_request_options(
126
128
  extra_headers=extra_headers,
@@ -157,7 +159,7 @@ class BillingReservationsResource(SyncAPIResource):
157
159
  extra_headers: Headers | None = None,
158
160
  extra_query: Query | None = None,
159
161
  extra_body: Body | None = None,
160
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
162
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
161
163
  ) -> BillingReservation:
162
164
  """
163
165
  Get reservation
@@ -174,7 +176,9 @@ class BillingReservationsResource(SyncAPIResource):
174
176
  timeout: Override the client-level default timeout for this request, in seconds
175
177
  """
176
178
  return self._get(
177
- f"/cloud/v1/reservations/{reservation_id}",
179
+ f"/cloud/v1/reservations/{reservation_id}"
180
+ if self._client._base_url_overridden
181
+ else f"https://api.gcore.com//cloud/v1/reservations/{reservation_id}",
178
182
  options=make_request_options(
179
183
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
180
184
  ),
@@ -205,15 +209,15 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
205
209
  def list(
206
210
  self,
207
211
  *,
208
- activated_from: Union[str, date] | NotGiven = NOT_GIVEN,
209
- activated_to: Union[str, date] | NotGiven = NOT_GIVEN,
210
- created_from: Union[str, datetime] | NotGiven = NOT_GIVEN,
211
- created_to: Union[str, datetime] | NotGiven = NOT_GIVEN,
212
- deactivated_from: Union[str, date] | NotGiven = NOT_GIVEN,
213
- deactivated_to: Union[str, date] | NotGiven = NOT_GIVEN,
214
- limit: int | NotGiven = NOT_GIVEN,
215
- metric_name: str | NotGiven = NOT_GIVEN,
216
- offset: int | NotGiven = NOT_GIVEN,
212
+ activated_from: Union[str, date] | Omit = omit,
213
+ activated_to: Union[str, date] | Omit = omit,
214
+ created_from: Union[str, datetime] | Omit = omit,
215
+ created_to: Union[str, datetime] | Omit = omit,
216
+ deactivated_from: Union[str, date] | Omit = omit,
217
+ deactivated_to: Union[str, date] | Omit = omit,
218
+ limit: int | Omit = omit,
219
+ metric_name: str | Omit = omit,
220
+ offset: int | Omit = omit,
217
221
  order_by: Literal[
218
222
  "active_from.asc",
219
223
  "active_from.desc",
@@ -222,20 +226,20 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
222
226
  "created_at.asc",
223
227
  "created_at.desc",
224
228
  ]
225
- | NotGiven = NOT_GIVEN,
226
- region_id: int | NotGiven = NOT_GIVEN,
229
+ | Omit = omit,
230
+ region_id: int | Omit = omit,
227
231
  status: List[
228
232
  Literal[
229
233
  "ACTIVATED", "APPROVED", "COPIED", "CREATED", "EXPIRED", "REJECTED", "RESERVED", "WAITING_FOR_PAYMENT"
230
234
  ]
231
235
  ]
232
- | NotGiven = NOT_GIVEN,
236
+ | Omit = omit,
233
237
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
234
238
  # The extra values given here take precedence over values defined on the client or passed to this method.
235
239
  extra_headers: Headers | None = None,
236
240
  extra_query: Query | None = None,
237
241
  extra_body: Body | None = None,
238
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
242
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
239
243
  ) -> AsyncPaginator[BillingReservation, AsyncOffsetPage[BillingReservation]]:
240
244
  """
241
245
  List reservations
@@ -276,7 +280,9 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
276
280
  timeout: Override the client-level default timeout for this request, in seconds
277
281
  """
278
282
  return self._get_api_list(
279
- "/cloud/v1/reservations",
283
+ "/cloud/v1/reservations"
284
+ if self._client._base_url_overridden
285
+ else "https://api.gcore.com//cloud/v1/reservations",
280
286
  page=AsyncOffsetPage[BillingReservation],
281
287
  options=make_request_options(
282
288
  extra_headers=extra_headers,
@@ -313,7 +319,7 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
313
319
  extra_headers: Headers | None = None,
314
320
  extra_query: Query | None = None,
315
321
  extra_body: Body | None = None,
316
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
322
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
317
323
  ) -> BillingReservation:
318
324
  """
319
325
  Get reservation
@@ -330,7 +336,9 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
330
336
  timeout: Override the client-level default timeout for this request, in seconds
331
337
  """
332
338
  return await self._get(
333
- f"/cloud/v1/reservations/{reservation_id}",
339
+ f"/cloud/v1/reservations/{reservation_id}"
340
+ if self._client._base_url_overridden
341
+ else f"https://api.gcore.com//cloud/v1/reservations/{reservation_id}",
334
342
  options=make_request_options(
335
343
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
336
344
  ),