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
@@ -7,7 +7,7 @@ from typing_extensions import Literal, overload
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ...._utils import maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -56,7 +56,7 @@ class InterfacesResource(SyncAPIResource):
56
56
  extra_headers: Headers | None = None,
57
57
  extra_query: Query | None = None,
58
58
  extra_body: Body | None = None,
59
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
59
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
60
60
  ) -> NetworkInterfaceList:
61
61
  """
62
62
  List all network interfaces attached to the specified instance.
@@ -77,7 +77,9 @@ class InterfacesResource(SyncAPIResource):
77
77
  if not instance_id:
78
78
  raise ValueError(f"Expected a non-empty value for `instance_id` but received {instance_id!r}")
79
79
  return self._get(
80
- f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/interfaces",
80
+ f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/interfaces"
81
+ if self._client._base_url_overridden
82
+ else f"https://api.gcore.com//cloud/v1/instances/{project_id}/{region_id}/{instance_id}/interfaces",
81
83
  options=make_request_options(
82
84
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
83
85
  ),
@@ -91,20 +93,19 @@ class InterfacesResource(SyncAPIResource):
91
93
  *,
92
94
  project_id: int | None = None,
93
95
  region_id: int | None = None,
94
- ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
95
- | NotGiven = NOT_GIVEN,
96
- interface_name: str | NotGiven = NOT_GIVEN,
97
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
98
- port_group: int | NotGiven = NOT_GIVEN,
96
+ ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile | Omit = omit,
97
+ interface_name: str | Omit = omit,
98
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
99
+ port_group: int | Omit = omit,
99
100
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
100
- | NotGiven = NOT_GIVEN,
101
- type: str | NotGiven = NOT_GIVEN,
101
+ | Omit = omit,
102
+ type: str | Omit = omit,
102
103
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
103
104
  # The extra values given here take precedence over values defined on the client or passed to this method.
104
105
  extra_headers: Headers | None = None,
105
106
  extra_query: Query | None = None,
106
107
  extra_body: Body | None = None,
107
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
108
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
108
109
  ) -> TaskIDList:
109
110
  """
110
111
  Attach interface to instance
@@ -140,18 +141,17 @@ class InterfacesResource(SyncAPIResource):
140
141
  project_id: int | None = None,
141
142
  region_id: int | None = None,
142
143
  subnet_id: str,
143
- ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
144
- interface_name: str | NotGiven = NOT_GIVEN,
145
- port_group: int | NotGiven = NOT_GIVEN,
146
- security_groups: Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
147
- | NotGiven = NOT_GIVEN,
148
- type: str | NotGiven = NOT_GIVEN,
144
+ ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | Omit = omit,
145
+ interface_name: str | Omit = omit,
146
+ port_group: int | Omit = omit,
147
+ security_groups: Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup] | Omit = omit,
148
+ type: str | Omit = omit,
149
149
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
150
150
  # The extra values given here take precedence over values defined on the client or passed to this method.
151
151
  extra_headers: Headers | None = None,
152
152
  extra_query: Query | None = None,
153
153
  extra_body: Body | None = None,
154
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
154
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
155
155
  ) -> TaskIDList:
156
156
  """
157
157
  Attach interface to instance
@@ -187,19 +187,18 @@ class InterfacesResource(SyncAPIResource):
187
187
  project_id: int | None = None,
188
188
  region_id: int | None = None,
189
189
  network_id: str,
190
- ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
191
- interface_name: str | NotGiven = NOT_GIVEN,
192
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
193
- port_group: int | NotGiven = NOT_GIVEN,
194
- security_groups: Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
195
- | NotGiven = NOT_GIVEN,
196
- type: str | NotGiven = NOT_GIVEN,
190
+ ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | Omit = omit,
191
+ interface_name: str | Omit = omit,
192
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
193
+ port_group: int | Omit = omit,
194
+ security_groups: Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup] | Omit = omit,
195
+ type: str | Omit = omit,
197
196
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
198
197
  # The extra values given here take precedence over values defined on the client or passed to this method.
199
198
  extra_headers: Headers | None = None,
200
199
  extra_query: Query | None = None,
201
200
  extra_body: Body | None = None,
202
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
201
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
203
202
  ) -> TaskIDList:
204
203
  """
205
204
  Attach interface to instance
@@ -237,18 +236,17 @@ class InterfacesResource(SyncAPIResource):
237
236
  project_id: int | None = None,
238
237
  region_id: int | None = None,
239
238
  port_id: str,
240
- ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | NotGiven = NOT_GIVEN,
241
- interface_name: str | NotGiven = NOT_GIVEN,
242
- port_group: int | NotGiven = NOT_GIVEN,
243
- security_groups: Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
244
- | NotGiven = NOT_GIVEN,
245
- type: str | NotGiven = NOT_GIVEN,
239
+ ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | Omit = omit,
240
+ interface_name: str | Omit = omit,
241
+ port_group: int | Omit = omit,
242
+ security_groups: Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup] | Omit = omit,
243
+ type: str | Omit = omit,
246
244
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
247
245
  # The extra values given here take precedence over values defined on the client or passed to this method.
248
246
  extra_headers: Headers | None = None,
249
247
  extra_query: Query | None = None,
250
248
  extra_body: Body | None = None,
251
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
249
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
252
250
  ) -> TaskIDList:
253
251
  """
254
252
  Attach interface to instance
@@ -286,25 +284,25 @@ class InterfacesResource(SyncAPIResource):
286
284
  | interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile
287
285
  | interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile
288
286
  | interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile
289
- | NotGiven = NOT_GIVEN,
290
- interface_name: str | NotGiven = NOT_GIVEN,
291
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
292
- port_group: int | NotGiven = NOT_GIVEN,
287
+ | Omit = omit,
288
+ interface_name: str | Omit = omit,
289
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
290
+ port_group: int | Omit = omit,
293
291
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
294
292
  | Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
295
293
  | Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
296
294
  | Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
297
- | NotGiven = NOT_GIVEN,
298
- type: str | NotGiven = NOT_GIVEN,
299
- subnet_id: str | NotGiven = NOT_GIVEN,
300
- network_id: str | NotGiven = NOT_GIVEN,
301
- port_id: str | NotGiven = NOT_GIVEN,
295
+ | Omit = omit,
296
+ type: str | Omit = omit,
297
+ subnet_id: str | Omit = omit,
298
+ network_id: str | Omit = omit,
299
+ port_id: str | Omit = omit,
302
300
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
303
301
  # The extra values given here take precedence over values defined on the client or passed to this method.
304
302
  extra_headers: Headers | None = None,
305
303
  extra_query: Query | None = None,
306
304
  extra_body: Body | None = None,
307
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
305
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
308
306
  ) -> TaskIDList:
309
307
  if project_id is None:
310
308
  project_id = self._client._get_cloud_project_id_path_param()
@@ -313,7 +311,9 @@ class InterfacesResource(SyncAPIResource):
313
311
  if not instance_id:
314
312
  raise ValueError(f"Expected a non-empty value for `instance_id` but received {instance_id!r}")
315
313
  return self._post(
316
- f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/attach_interface",
314
+ f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/attach_interface"
315
+ if self._client._base_url_overridden
316
+ else f"https://api.gcore.com//cloud/v1/instances/{project_id}/{region_id}/{instance_id}/attach_interface",
317
317
  body=maybe_transform(
318
318
  {
319
319
  "ddos_profile": ddos_profile,
@@ -342,13 +342,13 @@ class InterfacesResource(SyncAPIResource):
342
342
  project_id: int | None = None,
343
343
  region_id: int | None = None,
344
344
  ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
345
- | NotGiven = NOT_GIVEN,
346
- interface_name: str | NotGiven = NOT_GIVEN,
347
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
348
- port_group: int | NotGiven = NOT_GIVEN,
345
+ | Omit = omit,
346
+ interface_name: str | Omit = omit,
347
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
348
+ port_group: int | Omit = omit,
349
349
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
350
- | NotGiven = NOT_GIVEN,
351
- type: str | NotGiven = NOT_GIVEN,
350
+ | Omit = omit,
351
+ type: str | Omit = omit,
352
352
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
353
353
  # The extra values given here take precedence over values defined on the client or passed to this method.
354
354
  extra_headers: Headers | None = None,
@@ -390,12 +390,12 @@ class InterfacesResource(SyncAPIResource):
390
390
  project_id: int | None = None,
391
391
  region_id: int | None = None,
392
392
  subnet_id: str,
393
- ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
394
- interface_name: str | NotGiven = NOT_GIVEN,
395
- port_group: int | NotGiven = NOT_GIVEN,
393
+ ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | Omit = omit,
394
+ interface_name: str | Omit = omit,
395
+ port_group: int | Omit = omit,
396
396
  security_groups: Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
397
- | NotGiven = NOT_GIVEN,
398
- type: str | NotGiven = NOT_GIVEN,
397
+ | Omit = omit,
398
+ type: str | Omit = omit,
399
399
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
400
400
  # The extra values given here take precedence over values defined on the client or passed to this method.
401
401
  extra_headers: Headers | None = None,
@@ -437,13 +437,13 @@ class InterfacesResource(SyncAPIResource):
437
437
  project_id: int | None = None,
438
438
  region_id: int | None = None,
439
439
  network_id: str,
440
- ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
441
- interface_name: str | NotGiven = NOT_GIVEN,
442
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
443
- port_group: int | NotGiven = NOT_GIVEN,
440
+ ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | Omit = omit,
441
+ interface_name: str | Omit = omit,
442
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
443
+ port_group: int | Omit = omit,
444
444
  security_groups: Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
445
- | NotGiven = NOT_GIVEN,
446
- type: str | NotGiven = NOT_GIVEN,
445
+ | Omit = omit,
446
+ type: str | Omit = omit,
447
447
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
448
448
  # The extra values given here take precedence over values defined on the client or passed to this method.
449
449
  extra_headers: Headers | None = None,
@@ -487,12 +487,12 @@ class InterfacesResource(SyncAPIResource):
487
487
  project_id: int | None = None,
488
488
  region_id: int | None = None,
489
489
  port_id: str,
490
- ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | NotGiven = NOT_GIVEN,
491
- interface_name: str | NotGiven = NOT_GIVEN,
492
- port_group: int | NotGiven = NOT_GIVEN,
490
+ ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | Omit = omit,
491
+ interface_name: str | Omit = omit,
492
+ port_group: int | Omit = omit,
493
493
  security_groups: Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
494
- | NotGiven = NOT_GIVEN,
495
- type: str | NotGiven = NOT_GIVEN,
494
+ | Omit = omit,
495
+ type: str | Omit = omit,
496
496
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
497
497
  # The extra values given here take precedence over values defined on the client or passed to this method.
498
498
  extra_headers: Headers | None = None,
@@ -533,17 +533,17 @@ class InterfacesResource(SyncAPIResource):
533
533
  project_id: int | None = None,
534
534
  region_id: int | None = None,
535
535
  ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
536
- | NotGiven = NOT_GIVEN,
537
- interface_name: str | NotGiven = NOT_GIVEN,
538
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
539
- port_group: int | NotGiven = NOT_GIVEN,
536
+ | Omit = omit,
537
+ interface_name: str | Omit = omit,
538
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
539
+ port_group: int | Omit = omit,
540
540
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
541
- | NotGiven = NOT_GIVEN,
542
- type: str | NotGiven = NOT_GIVEN,
543
- subnet_id: str | NotGiven = NOT_GIVEN,
544
- network_id: str | NotGiven = NOT_GIVEN,
545
- port_id: str | NotGiven = NOT_GIVEN,
546
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
541
+ | Omit = omit,
542
+ type: str | Omit = omit,
543
+ subnet_id: str | Omit = omit,
544
+ network_id: str | Omit = omit,
545
+ port_id: str | Omit = omit,
546
+ polling_interval_seconds: int | Omit = omit,
547
547
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
548
548
  # The extra values given here take precedence over values defined on the client or passed to this method.
549
549
  extra_headers: Headers | None = None,
@@ -595,7 +595,7 @@ class InterfacesResource(SyncAPIResource):
595
595
  region_id: int | None = None,
596
596
  ip_address: str,
597
597
  port_id: str,
598
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
598
+ polling_interval_seconds: int | Omit = omit,
599
599
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
600
600
  # The extra values given here take precedence over values defined on the client or passed to this method.
601
601
  extra_headers: Headers | None = None,
@@ -640,7 +640,7 @@ class InterfacesResource(SyncAPIResource):
640
640
  extra_headers: Headers | None = None,
641
641
  extra_query: Query | None = None,
642
642
  extra_body: Body | None = None,
643
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
643
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
644
644
  ) -> TaskIDList:
645
645
  """
646
646
  Detach interface from instance
@@ -665,7 +665,9 @@ class InterfacesResource(SyncAPIResource):
665
665
  if not instance_id:
666
666
  raise ValueError(f"Expected a non-empty value for `instance_id` but received {instance_id!r}")
667
667
  return self._post(
668
- f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/detach_interface",
668
+ f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/detach_interface"
669
+ if self._client._base_url_overridden
670
+ else f"https://api.gcore.com//cloud/v1/instances/{project_id}/{region_id}/{instance_id}/detach_interface",
669
671
  body=maybe_transform(
670
672
  {
671
673
  "ip_address": ip_address,
@@ -711,7 +713,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
711
713
  extra_headers: Headers | None = None,
712
714
  extra_query: Query | None = None,
713
715
  extra_body: Body | None = None,
714
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
716
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
715
717
  ) -> NetworkInterfaceList:
716
718
  """
717
719
  List all network interfaces attached to the specified instance.
@@ -732,7 +734,9 @@ class AsyncInterfacesResource(AsyncAPIResource):
732
734
  if not instance_id:
733
735
  raise ValueError(f"Expected a non-empty value for `instance_id` but received {instance_id!r}")
734
736
  return await self._get(
735
- f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/interfaces",
737
+ f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/interfaces"
738
+ if self._client._base_url_overridden
739
+ else f"https://api.gcore.com//cloud/v1/instances/{project_id}/{region_id}/{instance_id}/interfaces",
736
740
  options=make_request_options(
737
741
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
738
742
  ),
@@ -746,20 +750,19 @@ class AsyncInterfacesResource(AsyncAPIResource):
746
750
  *,
747
751
  project_id: int | None = None,
748
752
  region_id: int | None = None,
749
- ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
750
- | NotGiven = NOT_GIVEN,
751
- interface_name: str | NotGiven = NOT_GIVEN,
752
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
753
- port_group: int | NotGiven = NOT_GIVEN,
753
+ ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile | Omit = omit,
754
+ interface_name: str | Omit = omit,
755
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
756
+ port_group: int | Omit = omit,
754
757
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
755
- | NotGiven = NOT_GIVEN,
756
- type: str | NotGiven = NOT_GIVEN,
758
+ | Omit = omit,
759
+ type: str | Omit = omit,
757
760
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
758
761
  # The extra values given here take precedence over values defined on the client or passed to this method.
759
762
  extra_headers: Headers | None = None,
760
763
  extra_query: Query | None = None,
761
764
  extra_body: Body | None = None,
762
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
765
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
763
766
  ) -> TaskIDList:
764
767
  """
765
768
  Attach interface to instance
@@ -795,18 +798,17 @@ class AsyncInterfacesResource(AsyncAPIResource):
795
798
  project_id: int | None = None,
796
799
  region_id: int | None = None,
797
800
  subnet_id: str,
798
- ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
799
- interface_name: str | NotGiven = NOT_GIVEN,
800
- port_group: int | NotGiven = NOT_GIVEN,
801
- security_groups: Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
802
- | NotGiven = NOT_GIVEN,
803
- type: str | NotGiven = NOT_GIVEN,
801
+ ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | Omit = omit,
802
+ interface_name: str | Omit = omit,
803
+ port_group: int | Omit = omit,
804
+ security_groups: Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup] | Omit = omit,
805
+ type: str | Omit = omit,
804
806
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
805
807
  # The extra values given here take precedence over values defined on the client or passed to this method.
806
808
  extra_headers: Headers | None = None,
807
809
  extra_query: Query | None = None,
808
810
  extra_body: Body | None = None,
809
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
811
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
810
812
  ) -> TaskIDList:
811
813
  """
812
814
  Attach interface to instance
@@ -842,19 +844,18 @@ class AsyncInterfacesResource(AsyncAPIResource):
842
844
  project_id: int | None = None,
843
845
  region_id: int | None = None,
844
846
  network_id: str,
845
- ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
846
- interface_name: str | NotGiven = NOT_GIVEN,
847
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
848
- port_group: int | NotGiven = NOT_GIVEN,
849
- security_groups: Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
850
- | NotGiven = NOT_GIVEN,
851
- type: str | NotGiven = NOT_GIVEN,
847
+ ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | Omit = omit,
848
+ interface_name: str | Omit = omit,
849
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
850
+ port_group: int | Omit = omit,
851
+ security_groups: Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup] | Omit = omit,
852
+ type: str | Omit = omit,
852
853
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
853
854
  # The extra values given here take precedence over values defined on the client or passed to this method.
854
855
  extra_headers: Headers | None = None,
855
856
  extra_query: Query | None = None,
856
857
  extra_body: Body | None = None,
857
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
858
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
858
859
  ) -> TaskIDList:
859
860
  """
860
861
  Attach interface to instance
@@ -892,18 +893,17 @@ class AsyncInterfacesResource(AsyncAPIResource):
892
893
  project_id: int | None = None,
893
894
  region_id: int | None = None,
894
895
  port_id: str,
895
- ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | NotGiven = NOT_GIVEN,
896
- interface_name: str | NotGiven = NOT_GIVEN,
897
- port_group: int | NotGiven = NOT_GIVEN,
898
- security_groups: Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
899
- | NotGiven = NOT_GIVEN,
900
- type: str | NotGiven = NOT_GIVEN,
896
+ ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | Omit = omit,
897
+ interface_name: str | Omit = omit,
898
+ port_group: int | Omit = omit,
899
+ security_groups: Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup] | Omit = omit,
900
+ type: str | Omit = omit,
901
901
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
902
902
  # The extra values given here take precedence over values defined on the client or passed to this method.
903
903
  extra_headers: Headers | None = None,
904
904
  extra_query: Query | None = None,
905
905
  extra_body: Body | None = None,
906
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
906
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
907
907
  ) -> TaskIDList:
908
908
  """
909
909
  Attach interface to instance
@@ -941,25 +941,25 @@ class AsyncInterfacesResource(AsyncAPIResource):
941
941
  | interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile
942
942
  | interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile
943
943
  | interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile
944
- | NotGiven = NOT_GIVEN,
945
- interface_name: str | NotGiven = NOT_GIVEN,
946
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
947
- port_group: int | NotGiven = NOT_GIVEN,
944
+ | Omit = omit,
945
+ interface_name: str | Omit = omit,
946
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
947
+ port_group: int | Omit = omit,
948
948
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
949
949
  | Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
950
950
  | Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
951
951
  | Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
952
- | NotGiven = NOT_GIVEN,
953
- type: str | NotGiven = NOT_GIVEN,
954
- subnet_id: str | NotGiven = NOT_GIVEN,
955
- network_id: str | NotGiven = NOT_GIVEN,
956
- port_id: str | NotGiven = NOT_GIVEN,
952
+ | Omit = omit,
953
+ type: str | Omit = omit,
954
+ subnet_id: str | Omit = omit,
955
+ network_id: str | Omit = omit,
956
+ port_id: str | Omit = omit,
957
957
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
958
958
  # The extra values given here take precedence over values defined on the client or passed to this method.
959
959
  extra_headers: Headers | None = None,
960
960
  extra_query: Query | None = None,
961
961
  extra_body: Body | None = None,
962
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
962
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
963
963
  ) -> TaskIDList:
964
964
  if project_id is None:
965
965
  project_id = self._client._get_cloud_project_id_path_param()
@@ -968,7 +968,9 @@ class AsyncInterfacesResource(AsyncAPIResource):
968
968
  if not instance_id:
969
969
  raise ValueError(f"Expected a non-empty value for `instance_id` but received {instance_id!r}")
970
970
  return await self._post(
971
- f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/attach_interface",
971
+ f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/attach_interface"
972
+ if self._client._base_url_overridden
973
+ else f"https://api.gcore.com//cloud/v1/instances/{project_id}/{region_id}/{instance_id}/attach_interface",
972
974
  body=await async_maybe_transform(
973
975
  {
974
976
  "ddos_profile": ddos_profile,
@@ -997,14 +999,14 @@ class AsyncInterfacesResource(AsyncAPIResource):
997
999
  project_id: int | None = None,
998
1000
  region_id: int | None = None,
999
1001
  ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
1000
- | NotGiven = NOT_GIVEN,
1001
- interface_name: str | NotGiven = NOT_GIVEN,
1002
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
1003
- port_group: int | NotGiven = NOT_GIVEN,
1002
+ | Omit = omit,
1003
+ interface_name: str | Omit = omit,
1004
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
1005
+ port_group: int | Omit = omit,
1004
1006
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
1005
- | NotGiven = NOT_GIVEN,
1006
- type: str | NotGiven = NOT_GIVEN,
1007
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
1007
+ | Omit = omit,
1008
+ type: str | Omit = omit,
1009
+ polling_interval_seconds: int | Omit = omit,
1008
1010
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1009
1011
  # The extra values given here take precedence over values defined on the client or passed to this method.
1010
1012
  extra_headers: Headers | None = None,
@@ -1026,13 +1028,13 @@ class AsyncInterfacesResource(AsyncAPIResource):
1026
1028
  project_id: int | None = None,
1027
1029
  region_id: int | None = None,
1028
1030
  subnet_id: str,
1029
- ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
1030
- interface_name: str | NotGiven = NOT_GIVEN,
1031
- port_group: int | NotGiven = NOT_GIVEN,
1031
+ ddos_profile: interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile | Omit = omit,
1032
+ interface_name: str | Omit = omit,
1033
+ port_group: int | Omit = omit,
1032
1034
  security_groups: Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
1033
- | NotGiven = NOT_GIVEN,
1034
- type: str | NotGiven = NOT_GIVEN,
1035
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
1035
+ | Omit = omit,
1036
+ type: str | Omit = omit,
1037
+ polling_interval_seconds: int | Omit = omit,
1036
1038
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1037
1039
  # The extra values given here take precedence over values defined on the client or passed to this method.
1038
1040
  extra_headers: Headers | None = None,
@@ -1054,14 +1056,14 @@ class AsyncInterfacesResource(AsyncAPIResource):
1054
1056
  project_id: int | None = None,
1055
1057
  region_id: int | None = None,
1056
1058
  network_id: str,
1057
- ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | NotGiven = NOT_GIVEN,
1058
- interface_name: str | NotGiven = NOT_GIVEN,
1059
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
1060
- port_group: int | NotGiven = NOT_GIVEN,
1059
+ ddos_profile: interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile | Omit = omit,
1060
+ interface_name: str | Omit = omit,
1061
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
1062
+ port_group: int | Omit = omit,
1061
1063
  security_groups: Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
1062
- | NotGiven = NOT_GIVEN,
1063
- type: str | NotGiven = NOT_GIVEN,
1064
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
1064
+ | Omit = omit,
1065
+ type: str | Omit = omit,
1066
+ polling_interval_seconds: int | Omit = omit,
1065
1067
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1066
1068
  # The extra values given here take precedence over values defined on the client or passed to this method.
1067
1069
  extra_headers: Headers | None = None,
@@ -1083,13 +1085,13 @@ class AsyncInterfacesResource(AsyncAPIResource):
1083
1085
  project_id: int | None = None,
1084
1086
  region_id: int | None = None,
1085
1087
  port_id: str,
1086
- ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | NotGiven = NOT_GIVEN,
1087
- interface_name: str | NotGiven = NOT_GIVEN,
1088
- port_group: int | NotGiven = NOT_GIVEN,
1088
+ ddos_profile: interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile | Omit = omit,
1089
+ interface_name: str | Omit = omit,
1090
+ port_group: int | Omit = omit,
1089
1091
  security_groups: Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
1090
- | NotGiven = NOT_GIVEN,
1091
- type: str | NotGiven = NOT_GIVEN,
1092
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
1092
+ | Omit = omit,
1093
+ type: str | Omit = omit,
1094
+ polling_interval_seconds: int | Omit = omit,
1093
1095
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1094
1096
  # The extra values given here take precedence over values defined on the client or passed to this method.
1095
1097
  extra_headers: Headers | None = None,
@@ -1110,17 +1112,17 @@ class AsyncInterfacesResource(AsyncAPIResource):
1110
1112
  project_id: int | None = None,
1111
1113
  region_id: int | None = None,
1112
1114
  ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
1113
- | NotGiven = NOT_GIVEN,
1114
- interface_name: str | NotGiven = NOT_GIVEN,
1115
- ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
1116
- port_group: int | NotGiven = NOT_GIVEN,
1115
+ | Omit = omit,
1116
+ interface_name: str | Omit = omit,
1117
+ ip_family: Literal["dual", "ipv4", "ipv6"] | Omit = omit,
1118
+ port_group: int | Omit = omit,
1117
1119
  security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
1118
- | NotGiven = NOT_GIVEN,
1119
- type: str | NotGiven = NOT_GIVEN,
1120
- subnet_id: str | NotGiven = NOT_GIVEN,
1121
- network_id: str | NotGiven = NOT_GIVEN,
1122
- port_id: str | NotGiven = NOT_GIVEN,
1123
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
1120
+ | Omit = omit,
1121
+ type: str | Omit = omit,
1122
+ subnet_id: str | Omit = omit,
1123
+ network_id: str | Omit = omit,
1124
+ port_id: str | Omit = omit,
1125
+ polling_interval_seconds: int | Omit = omit,
1124
1126
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1125
1127
  # The extra values given here take precedence over values defined on the client or passed to this method.
1126
1128
  extra_headers: Headers | None = None,
@@ -1172,7 +1174,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
1172
1174
  region_id: int | None = None,
1173
1175
  ip_address: str,
1174
1176
  port_id: str,
1175
- polling_interval_seconds: int | NotGiven = NOT_GIVEN,
1177
+ polling_interval_seconds: int | Omit = omit,
1176
1178
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1177
1179
  # The extra values given here take precedence over values defined on the client or passed to this method.
1178
1180
  extra_headers: Headers | None = None,
@@ -1217,7 +1219,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
1217
1219
  extra_headers: Headers | None = None,
1218
1220
  extra_query: Query | None = None,
1219
1221
  extra_body: Body | None = None,
1220
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1222
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
1221
1223
  ) -> TaskIDList:
1222
1224
  """
1223
1225
  Detach interface from instance
@@ -1242,7 +1244,9 @@ class AsyncInterfacesResource(AsyncAPIResource):
1242
1244
  if not instance_id:
1243
1245
  raise ValueError(f"Expected a non-empty value for `instance_id` but received {instance_id!r}")
1244
1246
  return await self._post(
1245
- f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/detach_interface",
1247
+ f"/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/detach_interface"
1248
+ if self._client._base_url_overridden
1249
+ else f"https://api.gcore.com//cloud/v1/instances/{project_id}/{region_id}/{instance_id}/detach_interface",
1246
1250
  body=await async_maybe_transform(
1247
1251
  {
1248
1252
  "ip_address": ip_address,