gcore 0.1.0a2__py3-none-any.whl → 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gcore might be problematic. Click here for more details.

Files changed (293) hide show
  1. gcore/__init__.py +5 -0
  2. gcore/_base_client.py +22 -2
  3. gcore/_client.py +9 -0
  4. gcore/_models.py +2 -0
  5. gcore/_types.py +2 -0
  6. gcore/_utils/_proxy.py +4 -1
  7. gcore/_utils/_resources_proxy.py +24 -0
  8. gcore/_version.py +1 -1
  9. gcore/resources/__init__.py +14 -0
  10. gcore/resources/cloud/baremetal/flavors.py +2 -2
  11. gcore/resources/cloud/baremetal/images.py +2 -2
  12. gcore/resources/cloud/baremetal/servers.py +280 -52
  13. gcore/resources/cloud/billing_reservations.py +24 -0
  14. gcore/resources/cloud/file_shares/file_shares.py +16 -0
  15. gcore/resources/cloud/floating_ips.py +4 -4
  16. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +358 -8
  17. gcore/resources/cloud/gpu_baremetal_clusters/images.py +206 -2
  18. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +84 -4
  19. gcore/resources/cloud/inference/deployments/deployments.py +328 -10
  20. gcore/resources/cloud/instances/flavors.py +2 -2
  21. gcore/resources/cloud/instances/images.py +318 -2
  22. gcore/resources/cloud/instances/instances.py +534 -70
  23. gcore/resources/cloud/instances/interfaces.py +4 -4
  24. gcore/resources/cloud/load_balancers/flavors.py +2 -2
  25. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +302 -20
  26. gcore/resources/cloud/load_balancers/l7_policies/rules.py +326 -0
  27. gcore/resources/cloud/load_balancers/listeners.py +385 -20
  28. gcore/resources/cloud/load_balancers/load_balancers.py +392 -24
  29. gcore/resources/cloud/load_balancers/pools/health_monitors.py +24 -0
  30. gcore/resources/cloud/load_balancers/pools/members.py +34 -6
  31. gcore/resources/cloud/load_balancers/pools/pools.py +388 -8
  32. gcore/resources/cloud/networks/networks.py +72 -16
  33. gcore/resources/cloud/networks/subnets.py +6 -6
  34. gcore/resources/cloud/registries/registries.py +6 -10
  35. gcore/resources/cloud/registries/users.py +4 -10
  36. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +10 -10
  37. gcore/resources/cloud/secrets.py +56 -11
  38. gcore/resources/cloud/security_groups/security_groups.py +2 -2
  39. gcore/resources/cloud/ssh_keys.py +2 -2
  40. gcore/resources/cloud/tasks.py +203 -184
  41. gcore/resources/cloud/users/role_assignments.py +4 -4
  42. gcore/resources/cloud/volumes.py +18 -18
  43. gcore/resources/waap/__init__.py +131 -0
  44. gcore/resources/waap/advanced_rules.py +135 -0
  45. gcore/resources/waap/clients.py +135 -0
  46. gcore/resources/waap/custom_page_sets.py +805 -0
  47. gcore/resources/waap/domains/__init__.py +173 -0
  48. gcore/resources/waap/domains/advanced_rules.py +876 -0
  49. gcore/resources/waap/domains/analytics/__init__.py +33 -0
  50. gcore/resources/waap/domains/analytics/analytics.py +676 -0
  51. gcore/resources/waap/domains/analytics/requests.py +378 -0
  52. gcore/resources/waap/domains/api_discovery/__init__.py +33 -0
  53. gcore/resources/waap/domains/api_discovery/api_discovery.py +530 -0
  54. gcore/resources/waap/domains/api_discovery/scan_results.py +352 -0
  55. gcore/resources/waap/domains/api_path_groups.py +163 -0
  56. gcore/resources/waap/domains/api_paths.py +771 -0
  57. gcore/resources/waap/domains/custom_rules.py +889 -0
  58. gcore/resources/waap/domains/domains.py +914 -0
  59. gcore/resources/waap/domains/firewall_rules.py +884 -0
  60. gcore/resources/waap/domains/insight_silences.py +689 -0
  61. gcore/resources/waap/domains/insights.py +425 -0
  62. gcore/resources/waap/domains/policies.py +173 -0
  63. gcore/resources/waap/domains/settings.py +271 -0
  64. gcore/resources/waap/ip_info.py +1017 -0
  65. gcore/resources/waap/organizations.py +217 -0
  66. gcore/resources/waap/statistics.py +225 -0
  67. gcore/resources/waap/tags.py +233 -0
  68. gcore/resources/waap/waap.py +391 -0
  69. gcore/types/cloud/__init__.py +1 -0
  70. gcore/types/cloud/allowed_address_pairs.py +2 -2
  71. gcore/types/cloud/baremetal/baremetal_server.py +1 -1
  72. gcore/types/cloud/baremetal/image_list_params.py +1 -1
  73. gcore/types/cloud/baremetal/server_create_params.py +9 -9
  74. gcore/types/cloud/baremetal/server_list_params.py +8 -8
  75. gcore/types/cloud/baremetal/server_rebuild_params.py +1 -1
  76. gcore/types/cloud/baremetal_flavor.py +3 -3
  77. gcore/types/cloud/billing_reservation_list_params.py +5 -0
  78. gcore/types/cloud/container_probe_config.py +1 -1
  79. gcore/types/cloud/container_probe_config_create_param.py +2 -3
  80. gcore/types/cloud/container_scale_triggers.py +2 -2
  81. gcore/types/cloud/file_share.py +3 -0
  82. gcore/types/cloud/file_share_list_params.py +7 -1
  83. gcore/types/cloud/floating_ip_detailed.py +1 -1
  84. gcore/types/cloud/floating_ip_list_params.py +2 -2
  85. gcore/types/cloud/gpu_baremetal_cluster.py +1 -1
  86. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +21 -1
  87. gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +1 -1
  88. gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +1 -1
  89. gcore/types/cloud/gpu_baremetal_cluster_server.py +1 -1
  90. gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +1 -1
  91. gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +10 -10
  92. gcore/types/cloud/gpu_baremetal_flavor.py +3 -3
  93. gcore/types/cloud/image.py +1 -1
  94. gcore/types/cloud/inference/deployment_create_params.py +4 -4
  95. gcore/types/cloud/inference/deployment_update_params.py +206 -9
  96. gcore/types/cloud/inference/inference.py +5 -5
  97. gcore/types/cloud/instance.py +1 -1
  98. gcore/types/cloud/instance_create_params.py +8 -10
  99. gcore/types/cloud/instance_list_params.py +8 -8
  100. gcore/types/cloud/instances/flavor_list_suitable_params.py +4 -1
  101. gcore/types/cloud/instances/image_list_params.py +1 -1
  102. gcore/types/cloud/instances/instance_flavor.py +3 -3
  103. gcore/types/cloud/instances/interface_attach_params.py +10 -10
  104. gcore/types/cloud/load_balancer_create_params.py +17 -15
  105. gcore/types/cloud/load_balancer_flavor_detail.py +3 -3
  106. gcore/types/cloud/load_balancer_l7_policy.py +5 -5
  107. gcore/types/cloud/load_balancer_list_params.py +5 -5
  108. gcore/types/cloud/load_balancer_listener_detail.py +17 -17
  109. gcore/types/cloud/load_balancer_pool.py +13 -13
  110. gcore/types/cloud/load_balancer_pool_list.py +99 -4
  111. gcore/types/cloud/load_balancers/l7_policy_create_params.py +5 -5
  112. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +5 -5
  113. gcore/types/cloud/load_balancers/listener_create_params.py +6 -4
  114. gcore/types/cloud/load_balancers/listener_get_params.py +3 -1
  115. gcore/types/cloud/load_balancers/listener_list_params.py +4 -2
  116. gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
  117. gcore/types/cloud/load_balancers/pool_create_params.py +6 -4
  118. gcore/types/cloud/load_balancers/pool_list_params.py +5 -6
  119. gcore/types/cloud/load_balancers/pool_update_params.py +6 -4
  120. gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +2 -0
  121. gcore/types/cloud/load_balancers/pools/member_add_params.py +5 -3
  122. gcore/types/cloud/member.py +2 -2
  123. gcore/types/cloud/network.py +22 -22
  124. gcore/types/cloud/network_create_params.py +2 -0
  125. gcore/types/cloud/network_details.py +25 -24
  126. gcore/types/cloud/network_list_params.py +15 -10
  127. gcore/types/cloud/network_update_params.py +2 -0
  128. gcore/types/cloud/networks/subnet_create_params.py +1 -1
  129. gcore/types/cloud/networks/subnet_list_params.py +2 -2
  130. gcore/types/cloud/quota_get_all_response.py +18 -0
  131. gcore/types/cloud/quota_get_by_region_response.py +18 -0
  132. gcore/types/cloud/quotas/request_create_params.py +9 -0
  133. gcore/types/cloud/quotas/request_get_response.py +9 -0
  134. gcore/types/cloud/quotas/request_list_response.py +9 -0
  135. gcore/types/cloud/region.py +4 -4
  136. gcore/types/cloud/registries/user_create_multiple_params.py +3 -5
  137. gcore/types/cloud/registries/user_create_params.py +3 -5
  138. gcore/types/cloud/registry_create_params.py +3 -5
  139. gcore/types/cloud/reserved_fixed_ip_create_params.py +2 -2
  140. gcore/types/cloud/reserved_fixed_ip_list_params.py +3 -3
  141. gcore/types/cloud/secret_list_params.py +24 -0
  142. gcore/types/cloud/security_group_list_params.py +1 -1
  143. gcore/types/cloud/session_persistence.py +1 -1
  144. gcore/types/cloud/ssh_key_created.py +3 -6
  145. gcore/types/cloud/task.py +1 -4
  146. gcore/types/cloud/task_list_params.py +56 -46
  147. gcore/types/cloud/users/role_assignment_create_params.py +1 -1
  148. gcore/types/cloud/users/role_assignment_update_params.py +1 -1
  149. gcore/types/cloud/volume_create_params.py +6 -6
  150. gcore/types/cloud/volume_list_params.py +3 -3
  151. gcore/types/waap/__init__.py +108 -0
  152. gcore/types/waap/client_me_response.py +34 -0
  153. gcore/types/waap/custom_page_set_create_params.py +35 -0
  154. gcore/types/waap/custom_page_set_list_params.py +25 -0
  155. gcore/types/waap/custom_page_set_preview_params.py +34 -0
  156. gcore/types/waap/custom_page_set_update_params.py +35 -0
  157. gcore/types/waap/domain_list_params.py +30 -0
  158. gcore/types/waap/domain_list_rule_sets_response.py +10 -0
  159. gcore/types/waap/domain_update_params.py +12 -0
  160. gcore/types/waap/domains/__init__.py +47 -0
  161. gcore/types/waap/domains/advanced_rule_create_params.py +80 -0
  162. gcore/types/waap/domains/advanced_rule_list_params.py +58 -0
  163. gcore/types/waap/domains/advanced_rule_update_params.py +83 -0
  164. gcore/types/waap/domains/analytics/__init__.py +5 -0
  165. gcore/types/waap/domains/analytics/request_list_params.py +53 -0
  166. gcore/types/waap/domains/analytics_get_event_statistics_params.py +34 -0
  167. gcore/types/waap/domains/analytics_list_ddos_attacks_params.py +28 -0
  168. gcore/types/waap/domains/analytics_list_ddos_info_params.py +31 -0
  169. gcore/types/waap/domains/analytics_list_event_traffic_params.py +26 -0
  170. gcore/types/waap/domains/analytics_list_event_traffic_response.py +10 -0
  171. gcore/types/waap/domains/api_discovery/__init__.py +7 -0
  172. gcore/types/waap/domains/api_discovery/scan_result_get_response.py +29 -0
  173. gcore/types/waap/domains/api_discovery/scan_result_list_params.py +41 -0
  174. gcore/types/waap/domains/api_discovery/scan_result_list_response.py +29 -0
  175. gcore/types/waap/domains/api_discovery_get_settings_response.py +36 -0
  176. gcore/types/waap/domains/api_discovery_scan_openapi_response.py +10 -0
  177. gcore/types/waap/domains/api_discovery_update_settings_params.py +34 -0
  178. gcore/types/waap/domains/api_discovery_update_settings_response.py +36 -0
  179. gcore/types/waap/domains/api_discovery_upload_openapi_params.py +19 -0
  180. gcore/types/waap/domains/api_discovery_upload_openapi_response.py +10 -0
  181. gcore/types/waap/domains/api_path_create_params.py +31 -0
  182. gcore/types/waap/domains/api_path_create_response.py +50 -0
  183. gcore/types/waap/domains/api_path_get_response.py +50 -0
  184. gcore/types/waap/domains/api_path_group_list_response.py +12 -0
  185. gcore/types/waap/domains/api_path_list_params.py +62 -0
  186. gcore/types/waap/domains/api_path_list_response.py +50 -0
  187. gcore/types/waap/domains/api_path_update_params.py +29 -0
  188. gcore/types/waap/domains/custom_rule_create_params.py +368 -0
  189. gcore/types/waap/domains/custom_rule_delete_multiple_params.py +13 -0
  190. gcore/types/waap/domains/custom_rule_list_params.py +35 -0
  191. gcore/types/waap/domains/custom_rule_update_params.py +371 -0
  192. gcore/types/waap/domains/firewall_rule_create_params.py +75 -0
  193. gcore/types/waap/domains/firewall_rule_delete_multiple_params.py +13 -0
  194. gcore/types/waap/domains/firewall_rule_list_params.py +33 -0
  195. gcore/types/waap/domains/firewall_rule_update_params.py +78 -0
  196. gcore/types/waap/domains/insight_list_params.py +34 -0
  197. gcore/types/waap/domains/insight_replace_params.py +17 -0
  198. gcore/types/waap/domains/insight_silence_create_params.py +28 -0
  199. gcore/types/waap/domains/insight_silence_list_params.py +33 -0
  200. gcore/types/waap/domains/insight_silence_update_params.py +28 -0
  201. gcore/types/waap/domains/setting_update_params.py +48 -0
  202. gcore/types/waap/ip_info_get_attack_time_series_params.py +12 -0
  203. gcore/types/waap/ip_info_get_attack_time_series_response.py +10 -0
  204. gcore/types/waap/ip_info_get_blocked_requests_params.py +15 -0
  205. gcore/types/waap/ip_info_get_blocked_requests_response.py +10 -0
  206. gcore/types/waap/ip_info_get_counts_params.py +19 -0
  207. gcore/types/waap/ip_info_get_ddos_attack_series_params.py +12 -0
  208. gcore/types/waap/ip_info_get_params.py +12 -0
  209. gcore/types/waap/ip_info_get_top_sessions_params.py +15 -0
  210. gcore/types/waap/ip_info_get_top_sessions_response.py +10 -0
  211. gcore/types/waap/ip_info_get_top_urls_params.py +15 -0
  212. gcore/types/waap/ip_info_get_top_urls_response.py +10 -0
  213. gcore/types/waap/ip_info_get_top_user_agents_params.py +15 -0
  214. gcore/types/waap/ip_info_get_top_user_agents_response.py +10 -0
  215. gcore/types/waap/ip_info_list_attacked_countries_params.py +12 -0
  216. gcore/types/waap/ip_info_list_attacked_countries_response.py +10 -0
  217. gcore/types/waap/organization_list_params.py +22 -0
  218. gcore/types/waap/statistic_get_usage_series_params.py +25 -0
  219. gcore/types/waap/tag_list_params.py +28 -0
  220. gcore/types/waap/waap_advanced_rule.py +83 -0
  221. gcore/types/waap/waap_advanced_rule_descriptor.py +49 -0
  222. gcore/types/waap/waap_advanced_rule_descriptor_list.py +15 -0
  223. gcore/types/waap/waap_block_csrf_page_data.py +28 -0
  224. gcore/types/waap/waap_block_csrf_page_data_param.py +28 -0
  225. gcore/types/waap/waap_block_page_data.py +28 -0
  226. gcore/types/waap/waap_block_page_data_param.py +28 -0
  227. gcore/types/waap/waap_blocked_statistics.py +36 -0
  228. gcore/types/waap/waap_captcha_page_data.py +31 -0
  229. gcore/types/waap/waap_captcha_page_data_param.py +31 -0
  230. gcore/types/waap/waap_common_tag.py +16 -0
  231. gcore/types/waap/waap_cookie_disabled_page_data.py +18 -0
  232. gcore/types/waap/waap_cookie_disabled_page_data_param.py +18 -0
  233. gcore/types/waap/waap_count_statistics.py +36 -0
  234. gcore/types/waap/waap_custom_page_preview.py +10 -0
  235. gcore/types/waap/waap_custom_page_set.py +36 -0
  236. gcore/types/waap/waap_custom_rule.py +373 -0
  237. gcore/types/waap/waap_customer_rule_state.py +7 -0
  238. gcore/types/waap/waap_ddos_attack.py +16 -0
  239. gcore/types/waap/waap_ddos_info.py +17 -0
  240. gcore/types/waap/waap_detailed_domain.py +37 -0
  241. gcore/types/waap/waap_domain_api_settings.py +22 -0
  242. gcore/types/waap/waap_domain_ddos_settings.py +31 -0
  243. gcore/types/waap/waap_domain_policy.py +29 -0
  244. gcore/types/waap/waap_domain_settings_model.py +15 -0
  245. gcore/types/waap/waap_domain_status.py +7 -0
  246. gcore/types/waap/waap_event_statistics.py +15 -0
  247. gcore/types/waap/waap_firewall_rule.py +78 -0
  248. gcore/types/waap/waap_get_account_overview_response.py +34 -0
  249. gcore/types/waap/waap_handshake_page_data.py +25 -0
  250. gcore/types/waap/waap_handshake_page_data_param.py +25 -0
  251. gcore/types/waap/waap_insight.py +38 -0
  252. gcore/types/waap/waap_insight_silence.py +28 -0
  253. gcore/types/waap/waap_insight_silence_sort_by.py +9 -0
  254. gcore/types/waap/waap_insight_sort_by.py +20 -0
  255. gcore/types/waap/waap_insight_status.py +7 -0
  256. gcore/types/waap/waap_ip_country_attack.py +16 -0
  257. gcore/types/waap/waap_ip_ddos_info_model.py +23 -0
  258. gcore/types/waap/waap_ip_info.py +57 -0
  259. gcore/types/waap/waap_ip_info_counts.py +16 -0
  260. gcore/types/waap/waap_javascript_disabled_page_data.py +18 -0
  261. gcore/types/waap/waap_javascript_disabled_page_data_param.py +18 -0
  262. gcore/types/waap/waap_network_details.py +17 -0
  263. gcore/types/waap/waap_organization.py +13 -0
  264. gcore/types/waap/waap_page_type.py +9 -0
  265. gcore/types/waap/waap_paginated_custom_page_set.py +22 -0
  266. gcore/types/waap/waap_paginated_ddos_attack.py +22 -0
  267. gcore/types/waap/waap_paginated_ddos_info.py +22 -0
  268. gcore/types/waap/waap_paginated_request_summary.py +22 -0
  269. gcore/types/waap/waap_pattern_matched_tag.py +37 -0
  270. gcore/types/waap/waap_policy_action.py +7 -0
  271. gcore/types/waap/waap_policy_mode.py +10 -0
  272. gcore/types/waap/waap_request_details.py +92 -0
  273. gcore/types/waap/waap_request_organization.py +13 -0
  274. gcore/types/waap/waap_request_summary.py +59 -0
  275. gcore/types/waap/waap_resolution.py +7 -0
  276. gcore/types/waap/waap_rule_action_type.py +7 -0
  277. gcore/types/waap/waap_rule_blocked_requests.py +16 -0
  278. gcore/types/waap/waap_rule_set.py +41 -0
  279. gcore/types/waap/waap_statistic_item.py +18 -0
  280. gcore/types/waap/waap_statistics_series.py +16 -0
  281. gcore/types/waap/waap_summary_domain.py +26 -0
  282. gcore/types/waap/waap_tag.py +16 -0
  283. gcore/types/waap/waap_time_series_attack.py +23 -0
  284. gcore/types/waap/waap_top_session.py +24 -0
  285. gcore/types/waap/waap_top_url.py +13 -0
  286. gcore/types/waap/waap_top_user_agent.py +13 -0
  287. gcore/types/waap/waap_traffic_metrics.py +68 -0
  288. gcore/types/waap/waap_traffic_type.py +28 -0
  289. gcore/types/waap/waap_user_agent_details.py +40 -0
  290. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/METADATA +3 -3
  291. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/RECORD +293 -126
  292. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/WHEEL +0 -0
  293. {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/licenses/LICENSE +0 -0
@@ -96,9 +96,9 @@ class VolumesResource(SyncAPIResource):
96
96
  source: Volume source type
97
97
 
98
98
  attachment_tag: Block device attachment tag (not exposed in the user tags). Only used in
99
- conjunction with instance_id_to_attach_to
99
+ conjunction with `instance_id_to_attach_to`
100
100
 
101
- instance_id_to_attach_to: instance_id to attach newly-created volume to
101
+ instance_id_to_attach_to: `instance_id` to attach newly-created volume to
102
102
 
103
103
  lifecycle_policy_ids: List of lifecycle policy IDs (snapshot creation schedules) to associate with the
104
104
  volume
@@ -160,9 +160,9 @@ class VolumesResource(SyncAPIResource):
160
160
  source: Volume source type
161
161
 
162
162
  attachment_tag: Block device attachment tag (not exposed in the user tags). Only used in
163
- conjunction with instance_id_to_attach_to
163
+ conjunction with `instance_id_to_attach_to`
164
164
 
165
- instance_id_to_attach_to: instance_id to attach newly-created volume to
165
+ instance_id_to_attach_to: `instance_id` to attach newly-created volume to
166
166
 
167
167
  lifecycle_policy_ids: List of lifecycle policy IDs (snapshot creation schedules) to associate with the
168
168
  volume
@@ -226,9 +226,9 @@ class VolumesResource(SyncAPIResource):
226
226
  source: Volume source type
227
227
 
228
228
  attachment_tag: Block device attachment tag (not exposed in the user tags). Only used in
229
- conjunction with instance_id_to_attach_to
229
+ conjunction with `instance_id_to_attach_to`
230
230
 
231
- instance_id_to_attach_to: instance_id to attach newly-created volume to
231
+ instance_id_to_attach_to: `instance_id` to attach newly-created volume to
232
232
 
233
233
  lifecycle_policy_ids: List of lifecycle policy IDs (snapshot creation schedules) to associate with the
234
234
  volume
@@ -396,16 +396,16 @@ class VolumesResource(SyncAPIResource):
396
396
 
397
397
  limit: Optional. Limit the number of returned items
398
398
 
399
- name_part: Filter volumes by name_part inclusion in volume name.Any substring can be used
399
+ name_part: Filter volumes by `name_part` inclusion in volume name.Any substring can be used
400
400
  and volumes will be returned with names containing the substring.
401
401
 
402
402
  offset: Optional. Offset value is used to exclude the first set of records from the
403
403
  result
404
404
 
405
- tag_key: Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
405
+ tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
406
406
 
407
407
  tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
408
- "tag_key_value={"key": "value"}" --url
408
+ "`tag_key_value`={"key": "value"}" --url
409
409
  "https://example.com/cloud/v1/resource/1/1"
410
410
 
411
411
  extra_headers: Send extra headers
@@ -860,9 +860,9 @@ class AsyncVolumesResource(AsyncAPIResource):
860
860
  source: Volume source type
861
861
 
862
862
  attachment_tag: Block device attachment tag (not exposed in the user tags). Only used in
863
- conjunction with instance_id_to_attach_to
863
+ conjunction with `instance_id_to_attach_to`
864
864
 
865
- instance_id_to_attach_to: instance_id to attach newly-created volume to
865
+ instance_id_to_attach_to: `instance_id` to attach newly-created volume to
866
866
 
867
867
  lifecycle_policy_ids: List of lifecycle policy IDs (snapshot creation schedules) to associate with the
868
868
  volume
@@ -924,9 +924,9 @@ class AsyncVolumesResource(AsyncAPIResource):
924
924
  source: Volume source type
925
925
 
926
926
  attachment_tag: Block device attachment tag (not exposed in the user tags). Only used in
927
- conjunction with instance_id_to_attach_to
927
+ conjunction with `instance_id_to_attach_to`
928
928
 
929
- instance_id_to_attach_to: instance_id to attach newly-created volume to
929
+ instance_id_to_attach_to: `instance_id` to attach newly-created volume to
930
930
 
931
931
  lifecycle_policy_ids: List of lifecycle policy IDs (snapshot creation schedules) to associate with the
932
932
  volume
@@ -990,9 +990,9 @@ class AsyncVolumesResource(AsyncAPIResource):
990
990
  source: Volume source type
991
991
 
992
992
  attachment_tag: Block device attachment tag (not exposed in the user tags). Only used in
993
- conjunction with instance_id_to_attach_to
993
+ conjunction with `instance_id_to_attach_to`
994
994
 
995
- instance_id_to_attach_to: instance_id to attach newly-created volume to
995
+ instance_id_to_attach_to: `instance_id` to attach newly-created volume to
996
996
 
997
997
  lifecycle_policy_ids: List of lifecycle policy IDs (snapshot creation schedules) to associate with the
998
998
  volume
@@ -1160,16 +1160,16 @@ class AsyncVolumesResource(AsyncAPIResource):
1160
1160
 
1161
1161
  limit: Optional. Limit the number of returned items
1162
1162
 
1163
- name_part: Filter volumes by name_part inclusion in volume name.Any substring can be used
1163
+ name_part: Filter volumes by `name_part` inclusion in volume name.Any substring can be used
1164
1164
  and volumes will be returned with names containing the substring.
1165
1165
 
1166
1166
  offset: Optional. Offset value is used to exclude the first set of records from the
1167
1167
  result
1168
1168
 
1169
- tag_key: Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
1169
+ tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
1170
1170
 
1171
1171
  tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
1172
- "tag_key_value={"key": "value"}" --url
1172
+ "`tag_key_value`={"key": "value"}" --url
1173
1173
  "https://example.com/cloud/v1/resource/1/1"
1174
1174
 
1175
1175
  extra_headers: Send extra headers
@@ -0,0 +1,131 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .tags import (
4
+ TagsResource,
5
+ AsyncTagsResource,
6
+ TagsResourceWithRawResponse,
7
+ AsyncTagsResourceWithRawResponse,
8
+ TagsResourceWithStreamingResponse,
9
+ AsyncTagsResourceWithStreamingResponse,
10
+ )
11
+ from .waap import (
12
+ WaapResource,
13
+ AsyncWaapResource,
14
+ WaapResourceWithRawResponse,
15
+ AsyncWaapResourceWithRawResponse,
16
+ WaapResourceWithStreamingResponse,
17
+ AsyncWaapResourceWithStreamingResponse,
18
+ )
19
+ from .clients import (
20
+ ClientsResource,
21
+ AsyncClientsResource,
22
+ ClientsResourceWithRawResponse,
23
+ AsyncClientsResourceWithRawResponse,
24
+ ClientsResourceWithStreamingResponse,
25
+ AsyncClientsResourceWithStreamingResponse,
26
+ )
27
+ from .domains import (
28
+ DomainsResource,
29
+ AsyncDomainsResource,
30
+ DomainsResourceWithRawResponse,
31
+ AsyncDomainsResourceWithRawResponse,
32
+ DomainsResourceWithStreamingResponse,
33
+ AsyncDomainsResourceWithStreamingResponse,
34
+ )
35
+ from .ip_info import (
36
+ IPInfoResource,
37
+ AsyncIPInfoResource,
38
+ IPInfoResourceWithRawResponse,
39
+ AsyncIPInfoResourceWithRawResponse,
40
+ IPInfoResourceWithStreamingResponse,
41
+ AsyncIPInfoResourceWithStreamingResponse,
42
+ )
43
+ from .statistics import (
44
+ StatisticsResource,
45
+ AsyncStatisticsResource,
46
+ StatisticsResourceWithRawResponse,
47
+ AsyncStatisticsResourceWithRawResponse,
48
+ StatisticsResourceWithStreamingResponse,
49
+ AsyncStatisticsResourceWithStreamingResponse,
50
+ )
51
+ from .organizations import (
52
+ OrganizationsResource,
53
+ AsyncOrganizationsResource,
54
+ OrganizationsResourceWithRawResponse,
55
+ AsyncOrganizationsResourceWithRawResponse,
56
+ OrganizationsResourceWithStreamingResponse,
57
+ AsyncOrganizationsResourceWithStreamingResponse,
58
+ )
59
+ from .advanced_rules import (
60
+ AdvancedRulesResource,
61
+ AsyncAdvancedRulesResource,
62
+ AdvancedRulesResourceWithRawResponse,
63
+ AsyncAdvancedRulesResourceWithRawResponse,
64
+ AdvancedRulesResourceWithStreamingResponse,
65
+ AsyncAdvancedRulesResourceWithStreamingResponse,
66
+ )
67
+ from .custom_page_sets import (
68
+ CustomPageSetsResource,
69
+ AsyncCustomPageSetsResource,
70
+ CustomPageSetsResourceWithRawResponse,
71
+ AsyncCustomPageSetsResourceWithRawResponse,
72
+ CustomPageSetsResourceWithStreamingResponse,
73
+ AsyncCustomPageSetsResourceWithStreamingResponse,
74
+ )
75
+
76
+ __all__ = [
77
+ "ClientsResource",
78
+ "AsyncClientsResource",
79
+ "ClientsResourceWithRawResponse",
80
+ "AsyncClientsResourceWithRawResponse",
81
+ "ClientsResourceWithStreamingResponse",
82
+ "AsyncClientsResourceWithStreamingResponse",
83
+ "StatisticsResource",
84
+ "AsyncStatisticsResource",
85
+ "StatisticsResourceWithRawResponse",
86
+ "AsyncStatisticsResourceWithRawResponse",
87
+ "StatisticsResourceWithStreamingResponse",
88
+ "AsyncStatisticsResourceWithStreamingResponse",
89
+ "DomainsResource",
90
+ "AsyncDomainsResource",
91
+ "DomainsResourceWithRawResponse",
92
+ "AsyncDomainsResourceWithRawResponse",
93
+ "DomainsResourceWithStreamingResponse",
94
+ "AsyncDomainsResourceWithStreamingResponse",
95
+ "CustomPageSetsResource",
96
+ "AsyncCustomPageSetsResource",
97
+ "CustomPageSetsResourceWithRawResponse",
98
+ "AsyncCustomPageSetsResourceWithRawResponse",
99
+ "CustomPageSetsResourceWithStreamingResponse",
100
+ "AsyncCustomPageSetsResourceWithStreamingResponse",
101
+ "AdvancedRulesResource",
102
+ "AsyncAdvancedRulesResource",
103
+ "AdvancedRulesResourceWithRawResponse",
104
+ "AsyncAdvancedRulesResourceWithRawResponse",
105
+ "AdvancedRulesResourceWithStreamingResponse",
106
+ "AsyncAdvancedRulesResourceWithStreamingResponse",
107
+ "TagsResource",
108
+ "AsyncTagsResource",
109
+ "TagsResourceWithRawResponse",
110
+ "AsyncTagsResourceWithRawResponse",
111
+ "TagsResourceWithStreamingResponse",
112
+ "AsyncTagsResourceWithStreamingResponse",
113
+ "OrganizationsResource",
114
+ "AsyncOrganizationsResource",
115
+ "OrganizationsResourceWithRawResponse",
116
+ "AsyncOrganizationsResourceWithRawResponse",
117
+ "OrganizationsResourceWithStreamingResponse",
118
+ "AsyncOrganizationsResourceWithStreamingResponse",
119
+ "IPInfoResource",
120
+ "AsyncIPInfoResource",
121
+ "IPInfoResourceWithRawResponse",
122
+ "AsyncIPInfoResourceWithRawResponse",
123
+ "IPInfoResourceWithStreamingResponse",
124
+ "AsyncIPInfoResourceWithStreamingResponse",
125
+ "WaapResource",
126
+ "AsyncWaapResource",
127
+ "WaapResourceWithRawResponse",
128
+ "AsyncWaapResourceWithRawResponse",
129
+ "WaapResourceWithStreamingResponse",
130
+ "AsyncWaapResourceWithStreamingResponse",
131
+ ]
@@ -0,0 +1,135 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ..._compat import cached_property
9
+ from ..._resource import SyncAPIResource, AsyncAPIResource
10
+ from ..._response import (
11
+ to_raw_response_wrapper,
12
+ to_streamed_response_wrapper,
13
+ async_to_raw_response_wrapper,
14
+ async_to_streamed_response_wrapper,
15
+ )
16
+ from ..._base_client import make_request_options
17
+ from ...types.waap.waap_advanced_rule_descriptor_list import WaapAdvancedRuleDescriptorList
18
+
19
+ __all__ = ["AdvancedRulesResource", "AsyncAdvancedRulesResource"]
20
+
21
+
22
+ class AdvancedRulesResource(SyncAPIResource):
23
+ @cached_property
24
+ def with_raw_response(self) -> AdvancedRulesResourceWithRawResponse:
25
+ """
26
+ This property can be used as a prefix for any HTTP method call to return
27
+ the raw response object instead of the parsed content.
28
+
29
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
30
+ """
31
+ return AdvancedRulesResourceWithRawResponse(self)
32
+
33
+ @cached_property
34
+ def with_streaming_response(self) -> AdvancedRulesResourceWithStreamingResponse:
35
+ """
36
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
+
38
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
39
+ """
40
+ return AdvancedRulesResourceWithStreamingResponse(self)
41
+
42
+ def list(
43
+ self,
44
+ *,
45
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
+ # The extra values given here take precedence over values defined on the client or passed to this method.
47
+ extra_headers: Headers | None = None,
48
+ extra_query: Query | None = None,
49
+ extra_body: Body | None = None,
50
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ ) -> WaapAdvancedRuleDescriptorList:
52
+ """Retrieve an advanced rules descriptor"""
53
+ return self._get(
54
+ "/waap/v1/advanced-rules/descriptor",
55
+ options=make_request_options(
56
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
57
+ ),
58
+ cast_to=WaapAdvancedRuleDescriptorList,
59
+ )
60
+
61
+
62
+ class AsyncAdvancedRulesResource(AsyncAPIResource):
63
+ @cached_property
64
+ def with_raw_response(self) -> AsyncAdvancedRulesResourceWithRawResponse:
65
+ """
66
+ This property can be used as a prefix for any HTTP method call to return
67
+ the raw response object instead of the parsed content.
68
+
69
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
70
+ """
71
+ return AsyncAdvancedRulesResourceWithRawResponse(self)
72
+
73
+ @cached_property
74
+ def with_streaming_response(self) -> AsyncAdvancedRulesResourceWithStreamingResponse:
75
+ """
76
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
77
+
78
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
79
+ """
80
+ return AsyncAdvancedRulesResourceWithStreamingResponse(self)
81
+
82
+ async def list(
83
+ self,
84
+ *,
85
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
86
+ # The extra values given here take precedence over values defined on the client or passed to this method.
87
+ extra_headers: Headers | None = None,
88
+ extra_query: Query | None = None,
89
+ extra_body: Body | None = None,
90
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
91
+ ) -> WaapAdvancedRuleDescriptorList:
92
+ """Retrieve an advanced rules descriptor"""
93
+ return await self._get(
94
+ "/waap/v1/advanced-rules/descriptor",
95
+ options=make_request_options(
96
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
97
+ ),
98
+ cast_to=WaapAdvancedRuleDescriptorList,
99
+ )
100
+
101
+
102
+ class AdvancedRulesResourceWithRawResponse:
103
+ def __init__(self, advanced_rules: AdvancedRulesResource) -> None:
104
+ self._advanced_rules = advanced_rules
105
+
106
+ self.list = to_raw_response_wrapper(
107
+ advanced_rules.list,
108
+ )
109
+
110
+
111
+ class AsyncAdvancedRulesResourceWithRawResponse:
112
+ def __init__(self, advanced_rules: AsyncAdvancedRulesResource) -> None:
113
+ self._advanced_rules = advanced_rules
114
+
115
+ self.list = async_to_raw_response_wrapper(
116
+ advanced_rules.list,
117
+ )
118
+
119
+
120
+ class AdvancedRulesResourceWithStreamingResponse:
121
+ def __init__(self, advanced_rules: AdvancedRulesResource) -> None:
122
+ self._advanced_rules = advanced_rules
123
+
124
+ self.list = to_streamed_response_wrapper(
125
+ advanced_rules.list,
126
+ )
127
+
128
+
129
+ class AsyncAdvancedRulesResourceWithStreamingResponse:
130
+ def __init__(self, advanced_rules: AsyncAdvancedRulesResource) -> None:
131
+ self._advanced_rules = advanced_rules
132
+
133
+ self.list = async_to_streamed_response_wrapper(
134
+ advanced_rules.list,
135
+ )
@@ -0,0 +1,135 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ..._compat import cached_property
9
+ from ..._resource import SyncAPIResource, AsyncAPIResource
10
+ from ..._response import (
11
+ to_raw_response_wrapper,
12
+ to_streamed_response_wrapper,
13
+ async_to_raw_response_wrapper,
14
+ async_to_streamed_response_wrapper,
15
+ )
16
+ from ..._base_client import make_request_options
17
+ from ...types.waap.client_me_response import ClientMeResponse
18
+
19
+ __all__ = ["ClientsResource", "AsyncClientsResource"]
20
+
21
+
22
+ class ClientsResource(SyncAPIResource):
23
+ @cached_property
24
+ def with_raw_response(self) -> ClientsResourceWithRawResponse:
25
+ """
26
+ This property can be used as a prefix for any HTTP method call to return
27
+ the raw response object instead of the parsed content.
28
+
29
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
30
+ """
31
+ return ClientsResourceWithRawResponse(self)
32
+
33
+ @cached_property
34
+ def with_streaming_response(self) -> ClientsResourceWithStreamingResponse:
35
+ """
36
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
+
38
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
39
+ """
40
+ return ClientsResourceWithStreamingResponse(self)
41
+
42
+ def me(
43
+ self,
44
+ *,
45
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
+ # The extra values given here take precedence over values defined on the client or passed to this method.
47
+ extra_headers: Headers | None = None,
48
+ extra_query: Query | None = None,
49
+ extra_body: Body | None = None,
50
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ ) -> ClientMeResponse:
52
+ """Get information about WAAP service for the client"""
53
+ return self._get(
54
+ "/waap/v1/clients/me",
55
+ options=make_request_options(
56
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
57
+ ),
58
+ cast_to=ClientMeResponse,
59
+ )
60
+
61
+
62
+ class AsyncClientsResource(AsyncAPIResource):
63
+ @cached_property
64
+ def with_raw_response(self) -> AsyncClientsResourceWithRawResponse:
65
+ """
66
+ This property can be used as a prefix for any HTTP method call to return
67
+ the raw response object instead of the parsed content.
68
+
69
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
70
+ """
71
+ return AsyncClientsResourceWithRawResponse(self)
72
+
73
+ @cached_property
74
+ def with_streaming_response(self) -> AsyncClientsResourceWithStreamingResponse:
75
+ """
76
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
77
+
78
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
79
+ """
80
+ return AsyncClientsResourceWithStreamingResponse(self)
81
+
82
+ async def me(
83
+ self,
84
+ *,
85
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
86
+ # The extra values given here take precedence over values defined on the client or passed to this method.
87
+ extra_headers: Headers | None = None,
88
+ extra_query: Query | None = None,
89
+ extra_body: Body | None = None,
90
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
91
+ ) -> ClientMeResponse:
92
+ """Get information about WAAP service for the client"""
93
+ return await self._get(
94
+ "/waap/v1/clients/me",
95
+ options=make_request_options(
96
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
97
+ ),
98
+ cast_to=ClientMeResponse,
99
+ )
100
+
101
+
102
+ class ClientsResourceWithRawResponse:
103
+ def __init__(self, clients: ClientsResource) -> None:
104
+ self._clients = clients
105
+
106
+ self.me = to_raw_response_wrapper(
107
+ clients.me,
108
+ )
109
+
110
+
111
+ class AsyncClientsResourceWithRawResponse:
112
+ def __init__(self, clients: AsyncClientsResource) -> None:
113
+ self._clients = clients
114
+
115
+ self.me = async_to_raw_response_wrapper(
116
+ clients.me,
117
+ )
118
+
119
+
120
+ class ClientsResourceWithStreamingResponse:
121
+ def __init__(self, clients: ClientsResource) -> None:
122
+ self._clients = clients
123
+
124
+ self.me = to_streamed_response_wrapper(
125
+ clients.me,
126
+ )
127
+
128
+
129
+ class AsyncClientsResourceWithStreamingResponse:
130
+ def __init__(self, clients: AsyncClientsResource) -> None:
131
+ self._clients = clients
132
+
133
+ self.me = async_to_streamed_response_wrapper(
134
+ clients.me,
135
+ )