geopera 2.0.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.
Files changed (562) hide show
  1. geopera/__init__.py +8 -0
  2. geopera/api/__init__.py +1 -0
  3. geopera/api/operations/__init__.py +1 -0
  4. geopera/api/operations/alerts_acknowledge_event.py +202 -0
  5. geopera/api/operations/alerts_create_rule.py +202 -0
  6. geopera/api/operations/alerts_delete_rule.py +202 -0
  7. geopera/api/operations/alerts_events_list.py +200 -0
  8. geopera/api/operations/alerts_rule_get.py +200 -0
  9. geopera/api/operations/alerts_rules_list.py +200 -0
  10. geopera/api/operations/alerts_test_rule.py +202 -0
  11. geopera/api/operations/alerts_update_rule.py +202 -0
  12. geopera/api/operations/analytics_band_math.py +200 -0
  13. geopera/api/operations/analytics_calculate_index.py +200 -0
  14. geopera/api/operations/analytics_execute.py +202 -0
  15. geopera/api/operations/analytics_index_get.py +200 -0
  16. geopera/api/operations/analytics_indices_list.py +200 -0
  17. geopera/api/operations/analytics_operations_get.py +200 -0
  18. geopera/api/operations/analytics_operations_list.py +200 -0
  19. geopera/api/operations/analytics_sensors_list.py +200 -0
  20. geopera/api/operations/analytics_validate_formula.py +202 -0
  21. geopera/api/operations/api_keys_create.py +202 -0
  22. geopera/api/operations/api_keys_list.py +200 -0
  23. geopera/api/operations/api_keys_revoke.py +202 -0
  24. geopera/api/operations/assets_delete.py +202 -0
  25. geopera/api/operations/band_formulas_create.py +202 -0
  26. geopera/api/operations/band_formulas_delete.py +202 -0
  27. geopera/api/operations/band_formulas_get.py +200 -0
  28. geopera/api/operations/band_formulas_list.py +200 -0
  29. geopera/api/operations/band_formulas_update.py +202 -0
  30. geopera/api/operations/billing_approvals_approve.py +202 -0
  31. geopera/api/operations/billing_approvals_get.py +200 -0
  32. geopera/api/operations/billing_approvals_list.py +200 -0
  33. geopera/api/operations/billing_approvals_reject.py +202 -0
  34. geopera/api/operations/billing_approvals_request.py +202 -0
  35. geopera/api/operations/billing_auto_topup_get.py +200 -0
  36. geopera/api/operations/billing_cleanup_deleted_orgs.py +200 -0
  37. geopera/api/operations/billing_credits_balance.py +200 -0
  38. geopera/api/operations/billing_credits_transactions.py +200 -0
  39. geopera/api/operations/billing_deletions_pending.py +200 -0
  40. geopera/api/operations/billing_dlq_list_pending.py +200 -0
  41. geopera/api/operations/billing_dlq_replay.py +200 -0
  42. geopera/api/operations/billing_enterprise_accrual.py +200 -0
  43. geopera/api/operations/billing_enterprise_mark_invoiced.py +200 -0
  44. geopera/api/operations/billing_free_tier_approve.py +200 -0
  45. geopera/api/operations/billing_free_tier_grant_all.py +200 -0
  46. geopera/api/operations/billing_free_tier_list_pending.py +200 -0
  47. geopera/api/operations/billing_free_tier_revoke.py +200 -0
  48. geopera/api/operations/billing_invoices_list.py +200 -0
  49. geopera/api/operations/billing_jobs_settle_unsettled.py +200 -0
  50. geopera/api/operations/billing_plans_list.py +200 -0
  51. geopera/api/operations/billing_reconciliation_backfill_missing.py +200 -0
  52. geopera/api/operations/billing_reconciliation_correct_drift.py +200 -0
  53. geopera/api/operations/billing_reconciliation_detect_drift.py +200 -0
  54. geopera/api/operations/billing_reconciliation_list_corrections.py +200 -0
  55. geopera/api/operations/billing_reconciliation_list_runs.py +200 -0
  56. geopera/api/operations/billing_reconciliation_remove_stale.py +200 -0
  57. geopera/api/operations/billing_reconciliation_run.py +200 -0
  58. geopera/api/operations/billing_reconciliation_run_all.py +200 -0
  59. geopera/api/operations/billing_reconciliation_zero_negative_nets.py +200 -0
  60. geopera/api/operations/billing_run_monthly_cron.py +200 -0
  61. geopera/api/operations/billing_run_monthly_for_org.py +200 -0
  62. geopera/api/operations/billing_set_auto_topup.py +202 -0
  63. geopera/api/operations/billing_status_get.py +200 -0
  64. geopera/api/operations/billing_stripe_invoices_list.py +200 -0
  65. geopera/api/operations/billing_topup.py +227 -0
  66. geopera/api/operations/catalog_federated_search.py +202 -0
  67. geopera/api/operations/catalog_granule_points.py +202 -0
  68. geopera/api/operations/catalog_image_quicklook.py +200 -0
  69. geopera/api/operations/catalog_image_thumbnail.py +200 -0
  70. geopera/api/operations/catalog_info_landsat.py +200 -0
  71. geopera/api/operations/catalog_info_naip.py +200 -0
  72. geopera/api/operations/catalog_info_sample.py +200 -0
  73. geopera/api/operations/catalog_info_sentinel.py +200 -0
  74. geopera/api/operations/catalog_provider_samples.py +200 -0
  75. geopera/api/operations/catalog_providers_list.py +200 -0
  76. geopera/api/operations/catalog_search.py +202 -0
  77. geopera/api/operations/catalog_search_stream.py +211 -0
  78. geopera/api/operations/catalog_sources_list.py +202 -0
  79. geopera/api/operations/catalog_tile_render.py +200 -0
  80. geopera/api/operations/catalog_vendors_list.py +200 -0
  81. geopera/api/operations/catalog_viz_landsat.py +200 -0
  82. geopera/api/operations/catalog_viz_naip.py +200 -0
  83. geopera/api/operations/clip_area_metadata.py +200 -0
  84. geopera/api/operations/clip_area_mosaics.py +200 -0
  85. geopera/api/operations/clip_areas_list.py +200 -0
  86. geopera/api/operations/clip_create_from_area.py +200 -0
  87. geopera/api/operations/clip_create_from_item.py +203 -0
  88. geopera/api/operations/clip_job_delete.py +200 -0
  89. geopera/api/operations/clip_job_download.py +200 -0
  90. geopera/api/operations/clip_job_downloads.py +200 -0
  91. geopera/api/operations/clip_job_get.py +200 -0
  92. geopera/api/operations/clip_job_tile_info.py +200 -0
  93. geopera/api/operations/clip_jobs_list.py +200 -0
  94. geopera/api/operations/cog_colormaps.py +200 -0
  95. geopera/api/operations/cog_formulas.py +200 -0
  96. geopera/api/operations/cog_statistics.py +200 -0
  97. geopera/api/operations/cog_thumbnail.py +200 -0
  98. geopera/api/operations/cog_tile_render.py +200 -0
  99. geopera/api/operations/cog_tile_terrain.py +200 -0
  100. geopera/api/operations/collections_create.py +202 -0
  101. geopera/api/operations/collections_delete.py +202 -0
  102. geopera/api/operations/collections_get.py +200 -0
  103. geopera/api/operations/collections_list.py +200 -0
  104. geopera/api/operations/collections_update.py +202 -0
  105. geopera/api/operations/eulas_document_accept.py +200 -0
  106. geopera/api/operations/eulas_document_get.py +200 -0
  107. geopera/api/operations/eulas_documents_list.py +200 -0
  108. geopera/api/operations/eulas_get.py +200 -0
  109. geopera/api/operations/eulas_list.py +200 -0
  110. geopera/api/operations/event_subscriptions_create.py +202 -0
  111. geopera/api/operations/event_subscriptions_delete.py +202 -0
  112. geopera/api/operations/event_subscriptions_get.py +200 -0
  113. geopera/api/operations/event_subscriptions_list.py +200 -0
  114. geopera/api/operations/event_subscriptions_test.py +202 -0
  115. geopera/api/operations/event_subscriptions_update.py +202 -0
  116. geopera/api/operations/glossary_collections_get.py +200 -0
  117. geopera/api/operations/glossary_data_products_get.py +200 -0
  118. geopera/api/operations/glossary_data_products_list.py +200 -0
  119. geopera/api/operations/glossary_providers_get.py +200 -0
  120. geopera/api/operations/glossary_providers_list.py +200 -0
  121. geopera/api/operations/items_asset_download.py +200 -0
  122. geopera/api/operations/items_create.py +202 -0
  123. geopera/api/operations/items_delete.py +202 -0
  124. geopera/api/operations/items_detect_asset_bands.py +202 -0
  125. geopera/api/operations/items_duplicate.py +202 -0
  126. geopera/api/operations/items_expire_batch.py +200 -0
  127. geopera/api/operations/items_get.py +202 -0
  128. geopera/api/operations/items_get_stac.py +200 -0
  129. geopera/api/operations/items_lineage.py +200 -0
  130. geopera/api/operations/items_list.py +200 -0
  131. geopera/api/operations/items_list_assets.py +200 -0
  132. geopera/api/operations/items_list_by_collection.py +200 -0
  133. geopera/api/operations/items_list_expiring.py +200 -0
  134. geopera/api/operations/items_search.py +202 -0
  135. geopera/api/operations/items_search_org.py +202 -0
  136. geopera/api/operations/items_set_asset_band_names.py +202 -0
  137. geopera/api/operations/items_tile_render.py +200 -0
  138. geopera/api/operations/items_tile_statistics.py +200 -0
  139. geopera/api/operations/items_tile_tilejson.py +200 -0
  140. geopera/api/operations/items_tile_wmts_capabilities.py +200 -0
  141. geopera/api/operations/items_tile_wmts_get_tile.py +200 -0
  142. geopera/api/operations/items_update.py +202 -0
  143. geopera/api/operations/notifications_dismiss.py +202 -0
  144. geopera/api/operations/notifications_list.py +200 -0
  145. geopera/api/operations/notifications_mark_all_read.py +202 -0
  146. geopera/api/operations/notifications_mark_read.py +202 -0
  147. geopera/api/operations/notifications_unread_count.py +200 -0
  148. geopera/api/operations/orders_archive_estimate.py +202 -0
  149. geopera/api/operations/orders_archive_place.py +203 -0
  150. geopera/api/operations/orders_cancel.py +202 -0
  151. geopera/api/operations/orders_coverage_get.py +200 -0
  152. geopera/api/operations/orders_coverage_groups_list.py +200 -0
  153. geopera/api/operations/orders_estimate.py +200 -0
  154. geopera/api/operations/orders_get.py +200 -0
  155. geopera/api/operations/orders_get_schema.py +200 -0
  156. geopera/api/operations/orders_list.py +200 -0
  157. geopera/api/operations/orders_list_assets.py +200 -0
  158. geopera/api/operations/orders_place.py +202 -0
  159. geopera/api/operations/orders_tasking_decisions_pending.py +200 -0
  160. geopera/api/operations/orders_tasking_estimate.py +202 -0
  161. geopera/api/operations/orders_tasking_feasibility_check.py +200 -0
  162. geopera/api/operations/orders_tasking_feasibility_decide.py +200 -0
  163. geopera/api/operations/orders_tasking_feasibility_studies_list.py +200 -0
  164. geopera/api/operations/orders_tasking_groups_list.py +200 -0
  165. geopera/api/operations/orders_tasking_opportunities_list.py +200 -0
  166. geopera/api/operations/orders_tasking_place.py +203 -0
  167. geopera/api/operations/orders_tasking_quotation_decide.py +200 -0
  168. geopera/api/operations/orders_tasking_quotations_list.py +200 -0
  169. geopera/api/operations/orders_tasking_sensors.py +202 -0
  170. geopera/api/operations/orders_tasking_templates_delete.py +202 -0
  171. geopera/api/operations/orders_tasking_templates_list.py +202 -0
  172. geopera/api/operations/orders_tasking_templates_save.py +202 -0
  173. geopera/api/operations/orders_update.py +202 -0
  174. geopera/api/operations/organizations_commitments_list.py +200 -0
  175. geopera/api/operations/organizations_commitments_statement.py +204 -0
  176. geopera/api/operations/organizations_create.py +202 -0
  177. geopera/api/operations/payment_methods_attach.py +202 -0
  178. geopera/api/operations/payment_methods_create_setup_intent.py +202 -0
  179. geopera/api/operations/payment_methods_detach.py +202 -0
  180. geopera/api/operations/payment_methods_list.py +200 -0
  181. geopera/api/operations/payment_methods_set_default.py +202 -0
  182. geopera/api/operations/processing_catalog_estimate.py +200 -0
  183. geopera/api/operations/processing_catalog_get.py +200 -0
  184. geopera/api/operations/processing_catalog_list.py +200 -0
  185. geopera/api/operations/processing_catalog_validate.py +200 -0
  186. geopera/api/operations/processing_create.py +203 -0
  187. geopera/api/operations/processing_create_and_dispatch.py +203 -0
  188. geopera/api/operations/processing_dispatch.py +202 -0
  189. geopera/api/operations/processing_execute.py +202 -0
  190. geopera/api/operations/processing_job_delete.py +200 -0
  191. geopera/api/operations/processing_job_get.py +200 -0
  192. geopera/api/operations/processing_job_register.py +200 -0
  193. geopera/api/operations/processing_job_tile_info.py +200 -0
  194. geopera/api/operations/processing_job_types_list.py +200 -0
  195. geopera/api/operations/processing_jobs_list.py +200 -0
  196. geopera/api/operations/processing_project_job_get.py +200 -0
  197. geopera/api/operations/processing_project_jobs_list.py +200 -0
  198. geopera/api/operations/projects_add_member.py +202 -0
  199. geopera/api/operations/projects_archive.py +202 -0
  200. geopera/api/operations/projects_create.py +202 -0
  201. geopera/api/operations/projects_delete.py +202 -0
  202. geopera/api/operations/projects_remove_member.py +202 -0
  203. geopera/api/operations/projects_update.py +202 -0
  204. geopera/api/operations/projects_update_member.py +202 -0
  205. geopera/api/operations/provenance_get.py +198 -0
  206. geopera/api/operations/reports_generate.py +211 -0
  207. geopera/api/operations/share_link_create.py +202 -0
  208. geopera/api/operations/share_link_revoke.py +202 -0
  209. geopera/api/operations/share_link_validate.py +202 -0
  210. geopera/api/operations/share_tile_render.py +200 -0
  211. geopera/api/operations/share_tilejson.py +200 -0
  212. geopera/api/operations/stac_search.py +204 -0
  213. geopera/api/operations/uploads_complete.py +203 -0
  214. geopera/api/operations/uploads_fail.py +202 -0
  215. geopera/api/operations/uploads_initiate.py +202 -0
  216. geopera/api/operations/uploads_progress.py +202 -0
  217. geopera/api/operations/uploads_signed_url.py +202 -0
  218. geopera/api/operations/usage_current.py +200 -0
  219. geopera/api/operations/usage_history.py +200 -0
  220. geopera/api/operations/usage_recalculate_storage.py +200 -0
  221. geopera/api/operations/visualization_list_for.py +202 -0
  222. geopera/api/operations/visualization_profile_create.py +202 -0
  223. geopera/api/operations/visualization_profile_delete.py +202 -0
  224. geopera/api/operations/visualization_profile_get.py +200 -0
  225. geopera/api/operations/visualization_profile_set_default.py +202 -0
  226. geopera/api/operations/visualization_profile_update.py +202 -0
  227. geopera/api/operations/visualization_profiles_list.py +200 -0
  228. geopera/api/operations/webhooks_drain.py +200 -0
  229. geopera/client.py +268 -0
  230. geopera/errors.py +16 -0
  231. geopera/models/__init__.py +655 -0
  232. geopera/models/accrual_input.py +83 -0
  233. geopera/models/acknowledge_event_input.py +61 -0
  234. geopera/models/add_member_input.py +80 -0
  235. geopera/models/alert_event_output.py +67 -0
  236. geopera/models/alert_event_output_alert_event.py +47 -0
  237. geopera/models/alert_events_list_input.py +111 -0
  238. geopera/models/alert_rule_get_input.py +61 -0
  239. geopera/models/alert_rule_output.py +67 -0
  240. geopera/models/alert_rule_output_alert_rule.py +47 -0
  241. geopera/models/alert_rules_list_input.py +93 -0
  242. geopera/models/analytics_execute_output.py +47 -0
  243. geopera/models/api_key_create_input.py +114 -0
  244. geopera/models/api_key_create_output.py +135 -0
  245. geopera/models/api_key_list_input.py +47 -0
  246. geopera/models/api_key_revoke_input.py +61 -0
  247. geopera/models/api_key_revoke_output.py +72 -0
  248. geopera/models/approval_get_input.py +61 -0
  249. geopera/models/approval_output.py +61 -0
  250. geopera/models/approval_ref_input.py +61 -0
  251. geopera/models/approvals_list_input.py +73 -0
  252. geopera/models/approve_input.py +83 -0
  253. geopera/models/archive_estimate_input.py +99 -0
  254. geopera/models/archive_estimate_input_captures_item.py +47 -0
  255. geopera/models/archive_estimate_output.py +120 -0
  256. geopera/models/archive_estimate_output_errors_item.py +47 -0
  257. geopera/models/archive_estimate_output_groups_item.py +47 -0
  258. geopera/models/area.py +61 -0
  259. geopera/models/asset_delete_input.py +69 -0
  260. geopera/models/asset_delete_output.py +73 -0
  261. geopera/models/asset_download_input.py +69 -0
  262. geopera/models/asset_output.py +61 -0
  263. geopera/models/attach_input.py +61 -0
  264. geopera/models/band_formula_create_input.py +140 -0
  265. geopera/models/band_formula_delete_input.py +61 -0
  266. geopera/models/band_formula_delete_output.py +72 -0
  267. geopera/models/band_formula_get_input.py +61 -0
  268. geopera/models/band_formula_output.py +186 -0
  269. geopera/models/band_formula_update_input.py +214 -0
  270. geopera/models/band_formulas_list_input.py +82 -0
  271. geopera/models/band_math_input.py +160 -0
  272. geopera/models/band_math_input_bbox.py +47 -0
  273. geopera/models/base_model.py +47 -0
  274. geopera/models/billing_topup_body_type_0.py +47 -0
  275. geopera/models/calculate_index_input.py +131 -0
  276. geopera/models/calculate_index_input_bbox.py +47 -0
  277. geopera/models/catalog_search_input.py +296 -0
  278. geopera/models/catalog_search_input_intersects_type_0.py +47 -0
  279. geopera/models/catalog_search_input_query_type_0.py +60 -0
  280. geopera/models/catalog_search_output.py +47 -0
  281. geopera/models/catalog_search_stream_body_type_0.py +47 -0
  282. geopera/models/catalog_tile_input.py +269 -0
  283. geopera/models/catalog_tile_input_aoi_clip_body_type_0.py +47 -0
  284. geopera/models/clip_create_from_area_input.py +133 -0
  285. geopera/models/clip_create_from_area_input_aoi_geometry.py +47 -0
  286. geopera/models/clip_create_from_item_body_type_0.py +47 -0
  287. geopera/models/clip_download_input.py +111 -0
  288. geopera/models/clip_job_delete_input.py +61 -0
  289. geopera/models/clip_job_input.py +61 -0
  290. geopera/models/clip_jobs_list_input.py +101 -0
  291. geopera/models/cloud_query.py +134 -0
  292. geopera/models/cog_empty_input.py +47 -0
  293. geopera/models/cog_stats_input.py +143 -0
  294. geopera/models/cog_stats_input_geometry.py +47 -0
  295. geopera/models/cog_terrain_input.py +116 -0
  296. geopera/models/cog_thumbnail_input.py +81 -0
  297. geopera/models/cog_tile_input.py +204 -0
  298. geopera/models/collection_create_input.py +130 -0
  299. geopera/models/collection_delete_input.py +69 -0
  300. geopera/models/collection_delete_output.py +72 -0
  301. geopera/models/collection_dto.py +137 -0
  302. geopera/models/collection_dto_render_params.py +47 -0
  303. geopera/models/collection_get_input.py +61 -0
  304. geopera/models/collection_response.py +243 -0
  305. geopera/models/collection_update_input.py +171 -0
  306. geopera/models/collections_get_input.py +69 -0
  307. geopera/models/collections_list_input.py +61 -0
  308. geopera/models/commitments_list_input.py +82 -0
  309. geopera/models/correct_input.py +99 -0
  310. geopera/models/corrections_input.py +82 -0
  311. geopera/models/coverage_input.py +61 -0
  312. geopera/models/create_alert_rule_input.py +209 -0
  313. geopera/models/create_alert_rule_input_band_mapping.py +47 -0
  314. geopera/models/create_subscription_input.py +131 -0
  315. geopera/models/create_subscription_input_filter_config.py +47 -0
  316. geopera/models/create_subscription_input_headers.py +47 -0
  317. geopera/models/data_product_get_input.py +61 -0
  318. geopera/models/data_products_list_input.py +111 -0
  319. geopera/models/decisions_pending_input.py +111 -0
  320. geopera/models/delete_alert_rule_input.py +61 -0
  321. geopera/models/delete_alert_rule_output.py +61 -0
  322. geopera/models/delete_subscription_input.py +61 -0
  323. geopera/models/delete_subscription_output.py +61 -0
  324. geopera/models/detach_input.py +61 -0
  325. geopera/models/detach_output.py +61 -0
  326. geopera/models/detect_bands_input.py +69 -0
  327. geopera/models/detect_bands_output.py +83 -0
  328. geopera/models/drain_input.py +73 -0
  329. geopera/models/drift_input.py +61 -0
  330. geopera/models/empty.py +47 -0
  331. geopera/models/estimate_input.py +143 -0
  332. geopera/models/estimate_input_featurecollection.py +47 -0
  333. geopera/models/estimate_input_params.py +47 -0
  334. geopera/models/eula_accept_input.py +80 -0
  335. geopera/models/eula_document_get_input.py +69 -0
  336. geopera/models/eula_documents_list_input.py +90 -0
  337. geopera/models/eula_get_input.py +61 -0
  338. geopera/models/eulas_list_input.py +100 -0
  339. geopera/models/execute_request.py +76 -0
  340. geopera/models/execute_request_params.py +47 -0
  341. geopera/models/expiring_input.py +61 -0
  342. geopera/models/feasibility_check_input.py +139 -0
  343. geopera/models/feasibility_check_input_featurecollection.py +47 -0
  344. geopera/models/feasibility_check_input_params_type_0.py +47 -0
  345. geopera/models/feasibility_decide_input.py +69 -0
  346. geopera/models/feature_collection_output.py +81 -0
  347. geopera/models/federated_search_input.py +328 -0
  348. geopera/models/federated_search_input_intersects_type_0.py +47 -0
  349. geopera/models/federated_search_input_query_type_0.py +60 -0
  350. geopera/models/federated_search_output.py +108 -0
  351. geopera/models/gcs_region.py +11 -0
  352. geopera/models/get_subscription_input.py +61 -0
  353. geopera/models/granule_points_input.py +127 -0
  354. geopera/models/granule_points_input_clip_polygon_type_0.py +47 -0
  355. geopera/models/granule_points_output.py +121 -0
  356. geopera/models/http_validation_error.py +79 -0
  357. geopera/models/image_asset_input.py +69 -0
  358. geopera/models/index_get_input.py +61 -0
  359. geopera/models/indices_list_input.py +93 -0
  360. geopera/models/invoices_input.py +61 -0
  361. geopera/models/item_assets_input.py +61 -0
  362. geopera/models/item_create_input.py +398 -0
  363. geopera/models/item_create_input_geometry_type_0.py +47 -0
  364. geopera/models/item_create_input_properties.py +47 -0
  365. geopera/models/item_delete_input.py +61 -0
  366. geopera/models/item_delete_output.py +72 -0
  367. geopera/models/item_duplicate_input.py +123 -0
  368. geopera/models/item_get_input.py +61 -0
  369. geopera/models/item_get_output.py +67 -0
  370. geopera/models/item_get_output_item.py +47 -0
  371. geopera/models/item_lineage_input.py +61 -0
  372. geopera/models/item_response.py +609 -0
  373. geopera/models/item_response_geometry_type_0.py +47 -0
  374. geopera/models/item_response_properties.py +47 -0
  375. geopera/models/item_stac_input.py +83 -0
  376. geopera/models/item_statistics_input.py +111 -0
  377. geopera/models/item_tile_render_input.py +225 -0
  378. geopera/models/item_tilejson_input.py +103 -0
  379. geopera/models/item_type.py +14 -0
  380. geopera/models/item_update_input.py +316 -0
  381. geopera/models/item_update_input_geometry_type_0.py +47 -0
  382. geopera/models/item_update_input_properties_type_0.py +47 -0
  383. geopera/models/item_wmts_capabilities_input.py +100 -0
  384. geopera/models/item_wmts_get_tile_input.py +107 -0
  385. geopera/models/items_by_collection_input.py +81 -0
  386. geopera/models/items_list_input.py +110 -0
  387. geopera/models/job_get_input.py +61 -0
  388. geopera/models/job_register_input.py +94 -0
  389. geopera/models/job_types_input.py +73 -0
  390. geopera/models/jobs_list_input.py +160 -0
  391. geopera/models/lifecycle_state.py +12 -0
  392. geopera/models/lineage_edge.py +183 -0
  393. geopera/models/lineage_get_input.py +89 -0
  394. geopera/models/lineage_get_output.py +123 -0
  395. geopera/models/lineage_get_output_root.py +47 -0
  396. geopera/models/lineage_node.py +77 -0
  397. geopera/models/list_subscriptions_input.py +93 -0
  398. geopera/models/mark_all_read_output.py +61 -0
  399. geopera/models/mark_invoiced_input.py +142 -0
  400. geopera/models/member_output.py +47 -0
  401. geopera/models/notification_output.py +61 -0
  402. geopera/models/notification_ref.py +61 -0
  403. geopera/models/notifications_list_input.py +79 -0
  404. geopera/models/ok_output.py +72 -0
  405. geopera/models/operation_get_input.py +61 -0
  406. geopera/models/operations_list_input.py +73 -0
  407. geopera/models/order_assets_input.py +61 -0
  408. geopera/models/order_cancel_input.py +61 -0
  409. geopera/models/order_cancel_output.py +69 -0
  410. geopera/models/order_get_input.py +61 -0
  411. geopera/models/order_place_input.py +151 -0
  412. geopera/models/order_place_input_featurecollection.py +47 -0
  413. geopera/models/order_place_input_params.py +47 -0
  414. geopera/models/order_place_output.py +47 -0
  415. geopera/models/order_schema_input.py +61 -0
  416. geopera/models/order_update_input.py +94 -0
  417. geopera/models/order_update_output.py +47 -0
  418. geopera/models/orders_archive_place_body_type_0.py +47 -0
  419. geopera/models/orders_list_input.py +240 -0
  420. geopera/models/orders_tasking_place_body_type_0.py +47 -0
  421. geopera/models/org_input.py +61 -0
  422. geopera/models/org_item_search_input.py +303 -0
  423. geopera/models/org_item_search_input_query_type_0.py +47 -0
  424. geopera/models/org_item_search_input_sortby_type_0_item.py +47 -0
  425. geopera/models/org_status_input.py +61 -0
  426. geopera/models/organization_create_input.py +290 -0
  427. geopera/models/organization_create_input_billing_address_type_0.py +47 -0
  428. geopera/models/organization_create_output.py +85 -0
  429. geopera/models/payment_method_output.py +82 -0
  430. geopera/models/problem.py +89 -0
  431. geopera/models/process_execute_input.py +93 -0
  432. geopera/models/process_execute_input_inputs.py +47 -0
  433. geopera/models/process_execute_output.py +47 -0
  434. geopera/models/process_get_input.py +61 -0
  435. geopera/models/process_run_input.py +85 -0
  436. geopera/models/process_run_input_inputs.py +47 -0
  437. geopera/models/processing_create_and_dispatch_body_type_0.py +47 -0
  438. geopera/models/processing_create_body_type_0.py +47 -0
  439. geopera/models/processing_dispatch_input.py +72 -0
  440. geopera/models/processing_dispatch_output.py +92 -0
  441. geopera/models/processing_dispatch_output_dispatch.py +47 -0
  442. geopera/models/processing_dispatch_output_job.py +47 -0
  443. geopera/models/processing_job_input.py +61 -0
  444. geopera/models/profile_create_input.py +149 -0
  445. geopera/models/profile_create_input_config.py +47 -0
  446. geopera/models/profile_get_input.py +69 -0
  447. geopera/models/profile_layer.py +10 -0
  448. geopera/models/profile_ref.py +69 -0
  449. geopera/models/profile_response.py +196 -0
  450. geopera/models/profile_response_config.py +47 -0
  451. geopera/models/profile_type.py +11 -0
  452. geopera/models/profile_update_input.py +220 -0
  453. geopera/models/profile_update_input_config_type_0.py +47 -0
  454. geopera/models/profiles_list_input.py +61 -0
  455. geopera/models/project_archive_input.py +123 -0
  456. geopera/models/project_create.py +101 -0
  457. geopera/models/project_delete_input.py +61 -0
  458. geopera/models/project_delete_output.py +81 -0
  459. geopera/models/project_item_search_input.py +313 -0
  460. geopera/models/project_item_search_input_query_type_0.py +47 -0
  461. geopera/models/project_item_search_input_sortby_type_0_item.py +47 -0
  462. geopera/models/project_job_get_input.py +61 -0
  463. geopera/models/project_jobs_input.py +121 -0
  464. geopera/models/project_response.py +177 -0
  465. geopera/models/project_update_input.py +123 -0
  466. geopera/models/provider_get_input.py +61 -0
  467. geopera/models/provider_samples_input.py +81 -0
  468. geopera/models/providers_list_input.py +110 -0
  469. geopera/models/quotation_decide_input.py +69 -0
  470. geopera/models/recalculate_input.py +61 -0
  471. geopera/models/reject_approval_input.py +83 -0
  472. geopera/models/remove_member_input.py +69 -0
  473. geopera/models/remove_member_output.py +61 -0
  474. geopera/models/replay_input.py +61 -0
  475. geopera/models/reports_generate_body_type_0.py +47 -0
  476. geopera/models/request_approval_input.py +83 -0
  477. geopera/models/run_all_input.py +61 -0
  478. geopera/models/run_input.py +72 -0
  479. geopera/models/runs_input.py +91 -0
  480. geopera/models/sample_info_input.py +69 -0
  481. geopera/models/scene_info_input.py +61 -0
  482. geopera/models/search_input.py +325 -0
  483. geopera/models/search_input_filter_type_0.py +47 -0
  484. geopera/models/search_input_intersects_type_0.py +47 -0
  485. geopera/models/set_auto_topup_input.py +99 -0
  486. geopera/models/set_auto_topup_output.py +77 -0
  487. geopera/models/set_band_names_input.py +77 -0
  488. geopera/models/set_default_input.py +61 -0
  489. geopera/models/settle_input.py +81 -0
  490. geopera/models/setup_intent_input.py +47 -0
  491. geopera/models/setup_intent_output.py +85 -0
  492. geopera/models/share_link_create.py +107 -0
  493. geopera/models/share_link_create_output.py +217 -0
  494. geopera/models/share_link_revoke_input.py +61 -0
  495. geopera/models/share_link_revoke_output.py +72 -0
  496. geopera/models/share_link_validate_input.py +72 -0
  497. geopera/models/share_link_validate_output.py +83 -0
  498. geopera/models/share_link_validate_output_target.py +47 -0
  499. geopera/models/share_permission.py +9 -0
  500. geopera/models/share_target_type.py +9 -0
  501. geopera/models/share_tile_input.py +125 -0
  502. geopera/models/share_tilejson_input.py +92 -0
  503. geopera/models/signed_url_input.py +80 -0
  504. geopera/models/signed_url_output.py +69 -0
  505. geopera/models/sort_clause.py +72 -0
  506. geopera/models/source_dto.py +139 -0
  507. geopera/models/source_result_summary.py +99 -0
  508. geopera/models/sources_list_input.py +113 -0
  509. geopera/models/sources_list_output.py +75 -0
  510. geopera/models/statement_input.py +83 -0
  511. geopera/models/studies_list_input.py +151 -0
  512. geopera/models/subscription_output.py +61 -0
  513. geopera/models/tasking_estimate_input.py +79 -0
  514. geopera/models/tasking_estimate_input_groups_item.py +47 -0
  515. geopera/models/tasking_estimate_output.py +120 -0
  516. geopera/models/tasking_estimate_output_errors_item.py +47 -0
  517. geopera/models/tasking_estimate_output_groups_item.py +47 -0
  518. geopera/models/tasking_groups_input.py +61 -0
  519. geopera/models/tasking_sensors_input.py +47 -0
  520. geopera/models/tasking_sensors_output.py +79 -0
  521. geopera/models/tasking_sensors_output_sensors_item.py +47 -0
  522. geopera/models/template_delete_input.py +61 -0
  523. geopera/models/template_delete_output.py +72 -0
  524. geopera/models/template_list_input.py +47 -0
  525. geopera/models/template_list_output.py +79 -0
  526. geopera/models/template_list_output_templates_item.py +47 -0
  527. geopera/models/template_save_input.py +159 -0
  528. geopera/models/template_save_output.py +69 -0
  529. geopera/models/test_alert_rule_input.py +69 -0
  530. geopera/models/test_alert_rule_output.py +101 -0
  531. geopera/models/test_subscription_input.py +61 -0
  532. geopera/models/test_subscription_output.py +127 -0
  533. geopera/models/transactions_input.py +90 -0
  534. geopera/models/update_alert_rule_input.py +363 -0
  535. geopera/models/update_alert_rule_input_band_mapping_type_0.py +47 -0
  536. geopera/models/update_member_input.py +77 -0
  537. geopera/models/update_subscription_input.py +194 -0
  538. geopera/models/update_subscription_input_filter_config_type_0.py +47 -0
  539. geopera/models/update_subscription_input_headers_type_0.py +47 -0
  540. geopera/models/upload_fail_input.py +91 -0
  541. geopera/models/upload_initiate.py +160 -0
  542. geopera/models/upload_output.py +61 -0
  543. geopera/models/upload_progress_input.py +103 -0
  544. geopera/models/uploads_complete_body_type_0.py +47 -0
  545. geopera/models/usage_current_input.py +61 -0
  546. geopera/models/usage_history_input.py +72 -0
  547. geopera/models/validate_formula_input.py +69 -0
  548. geopera/models/validate_formula_output.py +121 -0
  549. geopera/models/validation_error.py +90 -0
  550. geopera/models/visualization_list_input.py +121 -0
  551. geopera/models/visualization_list_input_band_roles.py +47 -0
  552. geopera/models/visualization_list_input_render_params.py +47 -0
  553. geopera/models/visualization_list_output.py +88 -0
  554. geopera/models/visualization_spec.py +229 -0
  555. geopera/models/visualization_spec_kind.py +11 -0
  556. geopera/models/viz_list_input.py +47 -0
  557. geopera/py.typed +1 -0
  558. geopera/types.py +54 -0
  559. geopera-2.0.0.dist-info/METADATA +162 -0
  560. geopera-2.0.0.dist-info/RECORD +562 -0
  561. geopera-2.0.0.dist-info/WHEEL +4 -0
  562. geopera-2.0.0.dist-info/licenses/LICENSE +21 -0
geopera/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """A client library for accessing Geopera Operations"""
2
+
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
@@ -0,0 +1 @@
1
+ """Contains methods for accessing the API"""
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,202 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.acknowledge_event_input import AcknowledgeEventInput
9
+ from ...models.alert_event_output import AlertEventOutput
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.problem import Problem
12
+ from ...types import UNSET, Response, Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: AcknowledgeEventInput,
18
+ x_api_key: None | str | Unset = UNSET,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+ if not isinstance(x_api_key, Unset):
22
+ headers["x-api-key"] = x_api_key
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "post",
26
+ "url": "/v1/op/alerts.acknowledge_event",
27
+ }
28
+
29
+ _kwargs["json"] = body.to_dict()
30
+
31
+ headers["Content-Type"] = "application/json"
32
+
33
+ _kwargs["headers"] = headers
34
+ return _kwargs
35
+
36
+
37
+ def _parse_response(
38
+ *, client: AuthenticatedClient | Client, response: httpx.Response
39
+ ) -> AlertEventOutput | HTTPValidationError | Problem | None:
40
+ if response.status_code == 200:
41
+ response_200 = AlertEventOutput.from_dict(response.json())
42
+
43
+ return response_200
44
+
45
+ if response.status_code == 401:
46
+ response_401 = Problem.from_dict(response.json())
47
+
48
+ return response_401
49
+
50
+ if response.status_code == 403:
51
+ response_403 = Problem.from_dict(response.json())
52
+
53
+ return response_403
54
+
55
+ if response.status_code == 404:
56
+ response_404 = Problem.from_dict(response.json())
57
+
58
+ return response_404
59
+
60
+ if response.status_code == 422:
61
+ response_422 = HTTPValidationError.from_dict(response.json())
62
+
63
+ return response_422
64
+
65
+ if response.status_code == 500:
66
+ response_500 = Problem.from_dict(response.json())
67
+
68
+ return response_500
69
+
70
+ if client.raise_on_unexpected_status:
71
+ raise errors.UnexpectedStatus(response.status_code, response.content)
72
+ else:
73
+ return None
74
+
75
+
76
+ def _build_response(
77
+ *, client: AuthenticatedClient | Client, response: httpx.Response
78
+ ) -> Response[AlertEventOutput | HTTPValidationError | Problem]:
79
+ return Response(
80
+ status_code=HTTPStatus(response.status_code),
81
+ content=response.content,
82
+ headers=response.headers,
83
+ parsed=_parse_response(client=client, response=response),
84
+ )
85
+
86
+
87
+ def sync_detailed(
88
+ *,
89
+ client: AuthenticatedClient,
90
+ body: AcknowledgeEventInput,
91
+ x_api_key: None | str | Unset = UNSET,
92
+ ) -> Response[AlertEventOutput | HTTPValidationError | Problem]:
93
+ """Mark an alert event acknowledged (org-scoped).
94
+
95
+ Args:
96
+ x_api_key (None | str | Unset):
97
+ body (AcknowledgeEventInput):
98
+
99
+ Raises:
100
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
102
+
103
+ Returns:
104
+ Response[AlertEventOutput | HTTPValidationError | Problem]
105
+ """
106
+
107
+ kwargs = _get_kwargs(
108
+ body=body,
109
+ x_api_key=x_api_key,
110
+ )
111
+
112
+ response = client.get_httpx_client().request(
113
+ **kwargs,
114
+ )
115
+
116
+ return _build_response(client=client, response=response)
117
+
118
+
119
+ def sync(
120
+ *,
121
+ client: AuthenticatedClient,
122
+ body: AcknowledgeEventInput,
123
+ x_api_key: None | str | Unset = UNSET,
124
+ ) -> AlertEventOutput | HTTPValidationError | Problem | None:
125
+ """Mark an alert event acknowledged (org-scoped).
126
+
127
+ Args:
128
+ x_api_key (None | str | Unset):
129
+ body (AcknowledgeEventInput):
130
+
131
+ Raises:
132
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
133
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
134
+
135
+ Returns:
136
+ AlertEventOutput | HTTPValidationError | Problem
137
+ """
138
+
139
+ return sync_detailed(
140
+ client=client,
141
+ body=body,
142
+ x_api_key=x_api_key,
143
+ ).parsed
144
+
145
+
146
+ async def asyncio_detailed(
147
+ *,
148
+ client: AuthenticatedClient,
149
+ body: AcknowledgeEventInput,
150
+ x_api_key: None | str | Unset = UNSET,
151
+ ) -> Response[AlertEventOutput | HTTPValidationError | Problem]:
152
+ """Mark an alert event acknowledged (org-scoped).
153
+
154
+ Args:
155
+ x_api_key (None | str | Unset):
156
+ body (AcknowledgeEventInput):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Response[AlertEventOutput | HTTPValidationError | Problem]
164
+ """
165
+
166
+ kwargs = _get_kwargs(
167
+ body=body,
168
+ x_api_key=x_api_key,
169
+ )
170
+
171
+ response = await client.get_async_httpx_client().request(**kwargs)
172
+
173
+ return _build_response(client=client, response=response)
174
+
175
+
176
+ async def asyncio(
177
+ *,
178
+ client: AuthenticatedClient,
179
+ body: AcknowledgeEventInput,
180
+ x_api_key: None | str | Unset = UNSET,
181
+ ) -> AlertEventOutput | HTTPValidationError | Problem | None:
182
+ """Mark an alert event acknowledged (org-scoped).
183
+
184
+ Args:
185
+ x_api_key (None | str | Unset):
186
+ body (AcknowledgeEventInput):
187
+
188
+ Raises:
189
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
190
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
191
+
192
+ Returns:
193
+ AlertEventOutput | HTTPValidationError | Problem
194
+ """
195
+
196
+ return (
197
+ await asyncio_detailed(
198
+ client=client,
199
+ body=body,
200
+ x_api_key=x_api_key,
201
+ )
202
+ ).parsed
@@ -0,0 +1,202 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.alert_rule_output import AlertRuleOutput
9
+ from ...models.create_alert_rule_input import CreateAlertRuleInput
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.problem import Problem
12
+ from ...types import UNSET, Response, Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: CreateAlertRuleInput,
18
+ x_api_key: None | str | Unset = UNSET,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+ if not isinstance(x_api_key, Unset):
22
+ headers["x-api-key"] = x_api_key
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "post",
26
+ "url": "/v1/op/alerts.create_rule",
27
+ }
28
+
29
+ _kwargs["json"] = body.to_dict()
30
+
31
+ headers["Content-Type"] = "application/json"
32
+
33
+ _kwargs["headers"] = headers
34
+ return _kwargs
35
+
36
+
37
+ def _parse_response(
38
+ *, client: AuthenticatedClient | Client, response: httpx.Response
39
+ ) -> AlertRuleOutput | HTTPValidationError | Problem | None:
40
+ if response.status_code == 200:
41
+ response_200 = AlertRuleOutput.from_dict(response.json())
42
+
43
+ return response_200
44
+
45
+ if response.status_code == 401:
46
+ response_401 = Problem.from_dict(response.json())
47
+
48
+ return response_401
49
+
50
+ if response.status_code == 403:
51
+ response_403 = Problem.from_dict(response.json())
52
+
53
+ return response_403
54
+
55
+ if response.status_code == 404:
56
+ response_404 = Problem.from_dict(response.json())
57
+
58
+ return response_404
59
+
60
+ if response.status_code == 422:
61
+ response_422 = HTTPValidationError.from_dict(response.json())
62
+
63
+ return response_422
64
+
65
+ if response.status_code == 500:
66
+ response_500 = Problem.from_dict(response.json())
67
+
68
+ return response_500
69
+
70
+ if client.raise_on_unexpected_status:
71
+ raise errors.UnexpectedStatus(response.status_code, response.content)
72
+ else:
73
+ return None
74
+
75
+
76
+ def _build_response(
77
+ *, client: AuthenticatedClient | Client, response: httpx.Response
78
+ ) -> Response[AlertRuleOutput | HTTPValidationError | Problem]:
79
+ return Response(
80
+ status_code=HTTPStatus(response.status_code),
81
+ content=response.content,
82
+ headers=response.headers,
83
+ parsed=_parse_response(client=client, response=response),
84
+ )
85
+
86
+
87
+ def sync_detailed(
88
+ *,
89
+ client: AuthenticatedClient,
90
+ body: CreateAlertRuleInput,
91
+ x_api_key: None | str | Unset = UNSET,
92
+ ) -> Response[AlertRuleOutput | HTTPValidationError | Problem]:
93
+ """Create an alert rule for the caller's organization.
94
+
95
+ Args:
96
+ x_api_key (None | str | Unset):
97
+ body (CreateAlertRuleInput):
98
+
99
+ Raises:
100
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
102
+
103
+ Returns:
104
+ Response[AlertRuleOutput | HTTPValidationError | Problem]
105
+ """
106
+
107
+ kwargs = _get_kwargs(
108
+ body=body,
109
+ x_api_key=x_api_key,
110
+ )
111
+
112
+ response = client.get_httpx_client().request(
113
+ **kwargs,
114
+ )
115
+
116
+ return _build_response(client=client, response=response)
117
+
118
+
119
+ def sync(
120
+ *,
121
+ client: AuthenticatedClient,
122
+ body: CreateAlertRuleInput,
123
+ x_api_key: None | str | Unset = UNSET,
124
+ ) -> AlertRuleOutput | HTTPValidationError | Problem | None:
125
+ """Create an alert rule for the caller's organization.
126
+
127
+ Args:
128
+ x_api_key (None | str | Unset):
129
+ body (CreateAlertRuleInput):
130
+
131
+ Raises:
132
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
133
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
134
+
135
+ Returns:
136
+ AlertRuleOutput | HTTPValidationError | Problem
137
+ """
138
+
139
+ return sync_detailed(
140
+ client=client,
141
+ body=body,
142
+ x_api_key=x_api_key,
143
+ ).parsed
144
+
145
+
146
+ async def asyncio_detailed(
147
+ *,
148
+ client: AuthenticatedClient,
149
+ body: CreateAlertRuleInput,
150
+ x_api_key: None | str | Unset = UNSET,
151
+ ) -> Response[AlertRuleOutput | HTTPValidationError | Problem]:
152
+ """Create an alert rule for the caller's organization.
153
+
154
+ Args:
155
+ x_api_key (None | str | Unset):
156
+ body (CreateAlertRuleInput):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Response[AlertRuleOutput | HTTPValidationError | Problem]
164
+ """
165
+
166
+ kwargs = _get_kwargs(
167
+ body=body,
168
+ x_api_key=x_api_key,
169
+ )
170
+
171
+ response = await client.get_async_httpx_client().request(**kwargs)
172
+
173
+ return _build_response(client=client, response=response)
174
+
175
+
176
+ async def asyncio(
177
+ *,
178
+ client: AuthenticatedClient,
179
+ body: CreateAlertRuleInput,
180
+ x_api_key: None | str | Unset = UNSET,
181
+ ) -> AlertRuleOutput | HTTPValidationError | Problem | None:
182
+ """Create an alert rule for the caller's organization.
183
+
184
+ Args:
185
+ x_api_key (None | str | Unset):
186
+ body (CreateAlertRuleInput):
187
+
188
+ Raises:
189
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
190
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
191
+
192
+ Returns:
193
+ AlertRuleOutput | HTTPValidationError | Problem
194
+ """
195
+
196
+ return (
197
+ await asyncio_detailed(
198
+ client=client,
199
+ body=body,
200
+ x_api_key=x_api_key,
201
+ )
202
+ ).parsed
@@ -0,0 +1,202 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.delete_alert_rule_input import DeleteAlertRuleInput
9
+ from ...models.delete_alert_rule_output import DeleteAlertRuleOutput
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.problem import Problem
12
+ from ...types import UNSET, Response, Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: DeleteAlertRuleInput,
18
+ x_api_key: None | str | Unset = UNSET,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+ if not isinstance(x_api_key, Unset):
22
+ headers["x-api-key"] = x_api_key
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "post",
26
+ "url": "/v1/op/alerts.delete_rule",
27
+ }
28
+
29
+ _kwargs["json"] = body.to_dict()
30
+
31
+ headers["Content-Type"] = "application/json"
32
+
33
+ _kwargs["headers"] = headers
34
+ return _kwargs
35
+
36
+
37
+ def _parse_response(
38
+ *, client: AuthenticatedClient | Client, response: httpx.Response
39
+ ) -> DeleteAlertRuleOutput | HTTPValidationError | Problem | None:
40
+ if response.status_code == 200:
41
+ response_200 = DeleteAlertRuleOutput.from_dict(response.json())
42
+
43
+ return response_200
44
+
45
+ if response.status_code == 401:
46
+ response_401 = Problem.from_dict(response.json())
47
+
48
+ return response_401
49
+
50
+ if response.status_code == 403:
51
+ response_403 = Problem.from_dict(response.json())
52
+
53
+ return response_403
54
+
55
+ if response.status_code == 404:
56
+ response_404 = Problem.from_dict(response.json())
57
+
58
+ return response_404
59
+
60
+ if response.status_code == 422:
61
+ response_422 = HTTPValidationError.from_dict(response.json())
62
+
63
+ return response_422
64
+
65
+ if response.status_code == 500:
66
+ response_500 = Problem.from_dict(response.json())
67
+
68
+ return response_500
69
+
70
+ if client.raise_on_unexpected_status:
71
+ raise errors.UnexpectedStatus(response.status_code, response.content)
72
+ else:
73
+ return None
74
+
75
+
76
+ def _build_response(
77
+ *, client: AuthenticatedClient | Client, response: httpx.Response
78
+ ) -> Response[DeleteAlertRuleOutput | HTTPValidationError | Problem]:
79
+ return Response(
80
+ status_code=HTTPStatus(response.status_code),
81
+ content=response.content,
82
+ headers=response.headers,
83
+ parsed=_parse_response(client=client, response=response),
84
+ )
85
+
86
+
87
+ def sync_detailed(
88
+ *,
89
+ client: AuthenticatedClient,
90
+ body: DeleteAlertRuleInput,
91
+ x_api_key: None | str | Unset = UNSET,
92
+ ) -> Response[DeleteAlertRuleOutput | HTTPValidationError | Problem]:
93
+ """Delete an alert rule (org-scoped).
94
+
95
+ Args:
96
+ x_api_key (None | str | Unset):
97
+ body (DeleteAlertRuleInput):
98
+
99
+ Raises:
100
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
102
+
103
+ Returns:
104
+ Response[DeleteAlertRuleOutput | HTTPValidationError | Problem]
105
+ """
106
+
107
+ kwargs = _get_kwargs(
108
+ body=body,
109
+ x_api_key=x_api_key,
110
+ )
111
+
112
+ response = client.get_httpx_client().request(
113
+ **kwargs,
114
+ )
115
+
116
+ return _build_response(client=client, response=response)
117
+
118
+
119
+ def sync(
120
+ *,
121
+ client: AuthenticatedClient,
122
+ body: DeleteAlertRuleInput,
123
+ x_api_key: None | str | Unset = UNSET,
124
+ ) -> DeleteAlertRuleOutput | HTTPValidationError | Problem | None:
125
+ """Delete an alert rule (org-scoped).
126
+
127
+ Args:
128
+ x_api_key (None | str | Unset):
129
+ body (DeleteAlertRuleInput):
130
+
131
+ Raises:
132
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
133
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
134
+
135
+ Returns:
136
+ DeleteAlertRuleOutput | HTTPValidationError | Problem
137
+ """
138
+
139
+ return sync_detailed(
140
+ client=client,
141
+ body=body,
142
+ x_api_key=x_api_key,
143
+ ).parsed
144
+
145
+
146
+ async def asyncio_detailed(
147
+ *,
148
+ client: AuthenticatedClient,
149
+ body: DeleteAlertRuleInput,
150
+ x_api_key: None | str | Unset = UNSET,
151
+ ) -> Response[DeleteAlertRuleOutput | HTTPValidationError | Problem]:
152
+ """Delete an alert rule (org-scoped).
153
+
154
+ Args:
155
+ x_api_key (None | str | Unset):
156
+ body (DeleteAlertRuleInput):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Response[DeleteAlertRuleOutput | HTTPValidationError | Problem]
164
+ """
165
+
166
+ kwargs = _get_kwargs(
167
+ body=body,
168
+ x_api_key=x_api_key,
169
+ )
170
+
171
+ response = await client.get_async_httpx_client().request(**kwargs)
172
+
173
+ return _build_response(client=client, response=response)
174
+
175
+
176
+ async def asyncio(
177
+ *,
178
+ client: AuthenticatedClient,
179
+ body: DeleteAlertRuleInput,
180
+ x_api_key: None | str | Unset = UNSET,
181
+ ) -> DeleteAlertRuleOutput | HTTPValidationError | Problem | None:
182
+ """Delete an alert rule (org-scoped).
183
+
184
+ Args:
185
+ x_api_key (None | str | Unset):
186
+ body (DeleteAlertRuleInput):
187
+
188
+ Raises:
189
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
190
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
191
+
192
+ Returns:
193
+ DeleteAlertRuleOutput | HTTPValidationError | Problem
194
+ """
195
+
196
+ return (
197
+ await asyncio_detailed(
198
+ client=client,
199
+ body=body,
200
+ x_api_key=x_api_key,
201
+ )
202
+ ).parsed