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.
- geopera/__init__.py +8 -0
- geopera/api/__init__.py +1 -0
- geopera/api/operations/__init__.py +1 -0
- geopera/api/operations/alerts_acknowledge_event.py +202 -0
- geopera/api/operations/alerts_create_rule.py +202 -0
- geopera/api/operations/alerts_delete_rule.py +202 -0
- geopera/api/operations/alerts_events_list.py +200 -0
- geopera/api/operations/alerts_rule_get.py +200 -0
- geopera/api/operations/alerts_rules_list.py +200 -0
- geopera/api/operations/alerts_test_rule.py +202 -0
- geopera/api/operations/alerts_update_rule.py +202 -0
- geopera/api/operations/analytics_band_math.py +200 -0
- geopera/api/operations/analytics_calculate_index.py +200 -0
- geopera/api/operations/analytics_execute.py +202 -0
- geopera/api/operations/analytics_index_get.py +200 -0
- geopera/api/operations/analytics_indices_list.py +200 -0
- geopera/api/operations/analytics_operations_get.py +200 -0
- geopera/api/operations/analytics_operations_list.py +200 -0
- geopera/api/operations/analytics_sensors_list.py +200 -0
- geopera/api/operations/analytics_validate_formula.py +202 -0
- geopera/api/operations/api_keys_create.py +202 -0
- geopera/api/operations/api_keys_list.py +200 -0
- geopera/api/operations/api_keys_revoke.py +202 -0
- geopera/api/operations/assets_delete.py +202 -0
- geopera/api/operations/band_formulas_create.py +202 -0
- geopera/api/operations/band_formulas_delete.py +202 -0
- geopera/api/operations/band_formulas_get.py +200 -0
- geopera/api/operations/band_formulas_list.py +200 -0
- geopera/api/operations/band_formulas_update.py +202 -0
- geopera/api/operations/billing_approvals_approve.py +202 -0
- geopera/api/operations/billing_approvals_get.py +200 -0
- geopera/api/operations/billing_approvals_list.py +200 -0
- geopera/api/operations/billing_approvals_reject.py +202 -0
- geopera/api/operations/billing_approvals_request.py +202 -0
- geopera/api/operations/billing_auto_topup_get.py +200 -0
- geopera/api/operations/billing_cleanup_deleted_orgs.py +200 -0
- geopera/api/operations/billing_credits_balance.py +200 -0
- geopera/api/operations/billing_credits_transactions.py +200 -0
- geopera/api/operations/billing_deletions_pending.py +200 -0
- geopera/api/operations/billing_dlq_list_pending.py +200 -0
- geopera/api/operations/billing_dlq_replay.py +200 -0
- geopera/api/operations/billing_enterprise_accrual.py +200 -0
- geopera/api/operations/billing_enterprise_mark_invoiced.py +200 -0
- geopera/api/operations/billing_free_tier_approve.py +200 -0
- geopera/api/operations/billing_free_tier_grant_all.py +200 -0
- geopera/api/operations/billing_free_tier_list_pending.py +200 -0
- geopera/api/operations/billing_free_tier_revoke.py +200 -0
- geopera/api/operations/billing_invoices_list.py +200 -0
- geopera/api/operations/billing_jobs_settle_unsettled.py +200 -0
- geopera/api/operations/billing_plans_list.py +200 -0
- geopera/api/operations/billing_reconciliation_backfill_missing.py +200 -0
- geopera/api/operations/billing_reconciliation_correct_drift.py +200 -0
- geopera/api/operations/billing_reconciliation_detect_drift.py +200 -0
- geopera/api/operations/billing_reconciliation_list_corrections.py +200 -0
- geopera/api/operations/billing_reconciliation_list_runs.py +200 -0
- geopera/api/operations/billing_reconciliation_remove_stale.py +200 -0
- geopera/api/operations/billing_reconciliation_run.py +200 -0
- geopera/api/operations/billing_reconciliation_run_all.py +200 -0
- geopera/api/operations/billing_reconciliation_zero_negative_nets.py +200 -0
- geopera/api/operations/billing_run_monthly_cron.py +200 -0
- geopera/api/operations/billing_run_monthly_for_org.py +200 -0
- geopera/api/operations/billing_set_auto_topup.py +202 -0
- geopera/api/operations/billing_status_get.py +200 -0
- geopera/api/operations/billing_stripe_invoices_list.py +200 -0
- geopera/api/operations/billing_topup.py +227 -0
- geopera/api/operations/catalog_federated_search.py +202 -0
- geopera/api/operations/catalog_granule_points.py +202 -0
- geopera/api/operations/catalog_image_quicklook.py +200 -0
- geopera/api/operations/catalog_image_thumbnail.py +200 -0
- geopera/api/operations/catalog_info_landsat.py +200 -0
- geopera/api/operations/catalog_info_naip.py +200 -0
- geopera/api/operations/catalog_info_sample.py +200 -0
- geopera/api/operations/catalog_info_sentinel.py +200 -0
- geopera/api/operations/catalog_provider_samples.py +200 -0
- geopera/api/operations/catalog_providers_list.py +200 -0
- geopera/api/operations/catalog_search.py +202 -0
- geopera/api/operations/catalog_search_stream.py +211 -0
- geopera/api/operations/catalog_sources_list.py +202 -0
- geopera/api/operations/catalog_tile_render.py +200 -0
- geopera/api/operations/catalog_vendors_list.py +200 -0
- geopera/api/operations/catalog_viz_landsat.py +200 -0
- geopera/api/operations/catalog_viz_naip.py +200 -0
- geopera/api/operations/clip_area_metadata.py +200 -0
- geopera/api/operations/clip_area_mosaics.py +200 -0
- geopera/api/operations/clip_areas_list.py +200 -0
- geopera/api/operations/clip_create_from_area.py +200 -0
- geopera/api/operations/clip_create_from_item.py +203 -0
- geopera/api/operations/clip_job_delete.py +200 -0
- geopera/api/operations/clip_job_download.py +200 -0
- geopera/api/operations/clip_job_downloads.py +200 -0
- geopera/api/operations/clip_job_get.py +200 -0
- geopera/api/operations/clip_job_tile_info.py +200 -0
- geopera/api/operations/clip_jobs_list.py +200 -0
- geopera/api/operations/cog_colormaps.py +200 -0
- geopera/api/operations/cog_formulas.py +200 -0
- geopera/api/operations/cog_statistics.py +200 -0
- geopera/api/operations/cog_thumbnail.py +200 -0
- geopera/api/operations/cog_tile_render.py +200 -0
- geopera/api/operations/cog_tile_terrain.py +200 -0
- geopera/api/operations/collections_create.py +202 -0
- geopera/api/operations/collections_delete.py +202 -0
- geopera/api/operations/collections_get.py +200 -0
- geopera/api/operations/collections_list.py +200 -0
- geopera/api/operations/collections_update.py +202 -0
- geopera/api/operations/eulas_document_accept.py +200 -0
- geopera/api/operations/eulas_document_get.py +200 -0
- geopera/api/operations/eulas_documents_list.py +200 -0
- geopera/api/operations/eulas_get.py +200 -0
- geopera/api/operations/eulas_list.py +200 -0
- geopera/api/operations/event_subscriptions_create.py +202 -0
- geopera/api/operations/event_subscriptions_delete.py +202 -0
- geopera/api/operations/event_subscriptions_get.py +200 -0
- geopera/api/operations/event_subscriptions_list.py +200 -0
- geopera/api/operations/event_subscriptions_test.py +202 -0
- geopera/api/operations/event_subscriptions_update.py +202 -0
- geopera/api/operations/glossary_collections_get.py +200 -0
- geopera/api/operations/glossary_data_products_get.py +200 -0
- geopera/api/operations/glossary_data_products_list.py +200 -0
- geopera/api/operations/glossary_providers_get.py +200 -0
- geopera/api/operations/glossary_providers_list.py +200 -0
- geopera/api/operations/items_asset_download.py +200 -0
- geopera/api/operations/items_create.py +202 -0
- geopera/api/operations/items_delete.py +202 -0
- geopera/api/operations/items_detect_asset_bands.py +202 -0
- geopera/api/operations/items_duplicate.py +202 -0
- geopera/api/operations/items_expire_batch.py +200 -0
- geopera/api/operations/items_get.py +202 -0
- geopera/api/operations/items_get_stac.py +200 -0
- geopera/api/operations/items_lineage.py +200 -0
- geopera/api/operations/items_list.py +200 -0
- geopera/api/operations/items_list_assets.py +200 -0
- geopera/api/operations/items_list_by_collection.py +200 -0
- geopera/api/operations/items_list_expiring.py +200 -0
- geopera/api/operations/items_search.py +202 -0
- geopera/api/operations/items_search_org.py +202 -0
- geopera/api/operations/items_set_asset_band_names.py +202 -0
- geopera/api/operations/items_tile_render.py +200 -0
- geopera/api/operations/items_tile_statistics.py +200 -0
- geopera/api/operations/items_tile_tilejson.py +200 -0
- geopera/api/operations/items_tile_wmts_capabilities.py +200 -0
- geopera/api/operations/items_tile_wmts_get_tile.py +200 -0
- geopera/api/operations/items_update.py +202 -0
- geopera/api/operations/notifications_dismiss.py +202 -0
- geopera/api/operations/notifications_list.py +200 -0
- geopera/api/operations/notifications_mark_all_read.py +202 -0
- geopera/api/operations/notifications_mark_read.py +202 -0
- geopera/api/operations/notifications_unread_count.py +200 -0
- geopera/api/operations/orders_archive_estimate.py +202 -0
- geopera/api/operations/orders_archive_place.py +203 -0
- geopera/api/operations/orders_cancel.py +202 -0
- geopera/api/operations/orders_coverage_get.py +200 -0
- geopera/api/operations/orders_coverage_groups_list.py +200 -0
- geopera/api/operations/orders_estimate.py +200 -0
- geopera/api/operations/orders_get.py +200 -0
- geopera/api/operations/orders_get_schema.py +200 -0
- geopera/api/operations/orders_list.py +200 -0
- geopera/api/operations/orders_list_assets.py +200 -0
- geopera/api/operations/orders_place.py +202 -0
- geopera/api/operations/orders_tasking_decisions_pending.py +200 -0
- geopera/api/operations/orders_tasking_estimate.py +202 -0
- geopera/api/operations/orders_tasking_feasibility_check.py +200 -0
- geopera/api/operations/orders_tasking_feasibility_decide.py +200 -0
- geopera/api/operations/orders_tasking_feasibility_studies_list.py +200 -0
- geopera/api/operations/orders_tasking_groups_list.py +200 -0
- geopera/api/operations/orders_tasking_opportunities_list.py +200 -0
- geopera/api/operations/orders_tasking_place.py +203 -0
- geopera/api/operations/orders_tasking_quotation_decide.py +200 -0
- geopera/api/operations/orders_tasking_quotations_list.py +200 -0
- geopera/api/operations/orders_tasking_sensors.py +202 -0
- geopera/api/operations/orders_tasking_templates_delete.py +202 -0
- geopera/api/operations/orders_tasking_templates_list.py +202 -0
- geopera/api/operations/orders_tasking_templates_save.py +202 -0
- geopera/api/operations/orders_update.py +202 -0
- geopera/api/operations/organizations_commitments_list.py +200 -0
- geopera/api/operations/organizations_commitments_statement.py +204 -0
- geopera/api/operations/organizations_create.py +202 -0
- geopera/api/operations/payment_methods_attach.py +202 -0
- geopera/api/operations/payment_methods_create_setup_intent.py +202 -0
- geopera/api/operations/payment_methods_detach.py +202 -0
- geopera/api/operations/payment_methods_list.py +200 -0
- geopera/api/operations/payment_methods_set_default.py +202 -0
- geopera/api/operations/processing_catalog_estimate.py +200 -0
- geopera/api/operations/processing_catalog_get.py +200 -0
- geopera/api/operations/processing_catalog_list.py +200 -0
- geopera/api/operations/processing_catalog_validate.py +200 -0
- geopera/api/operations/processing_create.py +203 -0
- geopera/api/operations/processing_create_and_dispatch.py +203 -0
- geopera/api/operations/processing_dispatch.py +202 -0
- geopera/api/operations/processing_execute.py +202 -0
- geopera/api/operations/processing_job_delete.py +200 -0
- geopera/api/operations/processing_job_get.py +200 -0
- geopera/api/operations/processing_job_register.py +200 -0
- geopera/api/operations/processing_job_tile_info.py +200 -0
- geopera/api/operations/processing_job_types_list.py +200 -0
- geopera/api/operations/processing_jobs_list.py +200 -0
- geopera/api/operations/processing_project_job_get.py +200 -0
- geopera/api/operations/processing_project_jobs_list.py +200 -0
- geopera/api/operations/projects_add_member.py +202 -0
- geopera/api/operations/projects_archive.py +202 -0
- geopera/api/operations/projects_create.py +202 -0
- geopera/api/operations/projects_delete.py +202 -0
- geopera/api/operations/projects_remove_member.py +202 -0
- geopera/api/operations/projects_update.py +202 -0
- geopera/api/operations/projects_update_member.py +202 -0
- geopera/api/operations/provenance_get.py +198 -0
- geopera/api/operations/reports_generate.py +211 -0
- geopera/api/operations/share_link_create.py +202 -0
- geopera/api/operations/share_link_revoke.py +202 -0
- geopera/api/operations/share_link_validate.py +202 -0
- geopera/api/operations/share_tile_render.py +200 -0
- geopera/api/operations/share_tilejson.py +200 -0
- geopera/api/operations/stac_search.py +204 -0
- geopera/api/operations/uploads_complete.py +203 -0
- geopera/api/operations/uploads_fail.py +202 -0
- geopera/api/operations/uploads_initiate.py +202 -0
- geopera/api/operations/uploads_progress.py +202 -0
- geopera/api/operations/uploads_signed_url.py +202 -0
- geopera/api/operations/usage_current.py +200 -0
- geopera/api/operations/usage_history.py +200 -0
- geopera/api/operations/usage_recalculate_storage.py +200 -0
- geopera/api/operations/visualization_list_for.py +202 -0
- geopera/api/operations/visualization_profile_create.py +202 -0
- geopera/api/operations/visualization_profile_delete.py +202 -0
- geopera/api/operations/visualization_profile_get.py +200 -0
- geopera/api/operations/visualization_profile_set_default.py +202 -0
- geopera/api/operations/visualization_profile_update.py +202 -0
- geopera/api/operations/visualization_profiles_list.py +200 -0
- geopera/api/operations/webhooks_drain.py +200 -0
- geopera/client.py +268 -0
- geopera/errors.py +16 -0
- geopera/models/__init__.py +655 -0
- geopera/models/accrual_input.py +83 -0
- geopera/models/acknowledge_event_input.py +61 -0
- geopera/models/add_member_input.py +80 -0
- geopera/models/alert_event_output.py +67 -0
- geopera/models/alert_event_output_alert_event.py +47 -0
- geopera/models/alert_events_list_input.py +111 -0
- geopera/models/alert_rule_get_input.py +61 -0
- geopera/models/alert_rule_output.py +67 -0
- geopera/models/alert_rule_output_alert_rule.py +47 -0
- geopera/models/alert_rules_list_input.py +93 -0
- geopera/models/analytics_execute_output.py +47 -0
- geopera/models/api_key_create_input.py +114 -0
- geopera/models/api_key_create_output.py +135 -0
- geopera/models/api_key_list_input.py +47 -0
- geopera/models/api_key_revoke_input.py +61 -0
- geopera/models/api_key_revoke_output.py +72 -0
- geopera/models/approval_get_input.py +61 -0
- geopera/models/approval_output.py +61 -0
- geopera/models/approval_ref_input.py +61 -0
- geopera/models/approvals_list_input.py +73 -0
- geopera/models/approve_input.py +83 -0
- geopera/models/archive_estimate_input.py +99 -0
- geopera/models/archive_estimate_input_captures_item.py +47 -0
- geopera/models/archive_estimate_output.py +120 -0
- geopera/models/archive_estimate_output_errors_item.py +47 -0
- geopera/models/archive_estimate_output_groups_item.py +47 -0
- geopera/models/area.py +61 -0
- geopera/models/asset_delete_input.py +69 -0
- geopera/models/asset_delete_output.py +73 -0
- geopera/models/asset_download_input.py +69 -0
- geopera/models/asset_output.py +61 -0
- geopera/models/attach_input.py +61 -0
- geopera/models/band_formula_create_input.py +140 -0
- geopera/models/band_formula_delete_input.py +61 -0
- geopera/models/band_formula_delete_output.py +72 -0
- geopera/models/band_formula_get_input.py +61 -0
- geopera/models/band_formula_output.py +186 -0
- geopera/models/band_formula_update_input.py +214 -0
- geopera/models/band_formulas_list_input.py +82 -0
- geopera/models/band_math_input.py +160 -0
- geopera/models/band_math_input_bbox.py +47 -0
- geopera/models/base_model.py +47 -0
- geopera/models/billing_topup_body_type_0.py +47 -0
- geopera/models/calculate_index_input.py +131 -0
- geopera/models/calculate_index_input_bbox.py +47 -0
- geopera/models/catalog_search_input.py +296 -0
- geopera/models/catalog_search_input_intersects_type_0.py +47 -0
- geopera/models/catalog_search_input_query_type_0.py +60 -0
- geopera/models/catalog_search_output.py +47 -0
- geopera/models/catalog_search_stream_body_type_0.py +47 -0
- geopera/models/catalog_tile_input.py +269 -0
- geopera/models/catalog_tile_input_aoi_clip_body_type_0.py +47 -0
- geopera/models/clip_create_from_area_input.py +133 -0
- geopera/models/clip_create_from_area_input_aoi_geometry.py +47 -0
- geopera/models/clip_create_from_item_body_type_0.py +47 -0
- geopera/models/clip_download_input.py +111 -0
- geopera/models/clip_job_delete_input.py +61 -0
- geopera/models/clip_job_input.py +61 -0
- geopera/models/clip_jobs_list_input.py +101 -0
- geopera/models/cloud_query.py +134 -0
- geopera/models/cog_empty_input.py +47 -0
- geopera/models/cog_stats_input.py +143 -0
- geopera/models/cog_stats_input_geometry.py +47 -0
- geopera/models/cog_terrain_input.py +116 -0
- geopera/models/cog_thumbnail_input.py +81 -0
- geopera/models/cog_tile_input.py +204 -0
- geopera/models/collection_create_input.py +130 -0
- geopera/models/collection_delete_input.py +69 -0
- geopera/models/collection_delete_output.py +72 -0
- geopera/models/collection_dto.py +137 -0
- geopera/models/collection_dto_render_params.py +47 -0
- geopera/models/collection_get_input.py +61 -0
- geopera/models/collection_response.py +243 -0
- geopera/models/collection_update_input.py +171 -0
- geopera/models/collections_get_input.py +69 -0
- geopera/models/collections_list_input.py +61 -0
- geopera/models/commitments_list_input.py +82 -0
- geopera/models/correct_input.py +99 -0
- geopera/models/corrections_input.py +82 -0
- geopera/models/coverage_input.py +61 -0
- geopera/models/create_alert_rule_input.py +209 -0
- geopera/models/create_alert_rule_input_band_mapping.py +47 -0
- geopera/models/create_subscription_input.py +131 -0
- geopera/models/create_subscription_input_filter_config.py +47 -0
- geopera/models/create_subscription_input_headers.py +47 -0
- geopera/models/data_product_get_input.py +61 -0
- geopera/models/data_products_list_input.py +111 -0
- geopera/models/decisions_pending_input.py +111 -0
- geopera/models/delete_alert_rule_input.py +61 -0
- geopera/models/delete_alert_rule_output.py +61 -0
- geopera/models/delete_subscription_input.py +61 -0
- geopera/models/delete_subscription_output.py +61 -0
- geopera/models/detach_input.py +61 -0
- geopera/models/detach_output.py +61 -0
- geopera/models/detect_bands_input.py +69 -0
- geopera/models/detect_bands_output.py +83 -0
- geopera/models/drain_input.py +73 -0
- geopera/models/drift_input.py +61 -0
- geopera/models/empty.py +47 -0
- geopera/models/estimate_input.py +143 -0
- geopera/models/estimate_input_featurecollection.py +47 -0
- geopera/models/estimate_input_params.py +47 -0
- geopera/models/eula_accept_input.py +80 -0
- geopera/models/eula_document_get_input.py +69 -0
- geopera/models/eula_documents_list_input.py +90 -0
- geopera/models/eula_get_input.py +61 -0
- geopera/models/eulas_list_input.py +100 -0
- geopera/models/execute_request.py +76 -0
- geopera/models/execute_request_params.py +47 -0
- geopera/models/expiring_input.py +61 -0
- geopera/models/feasibility_check_input.py +139 -0
- geopera/models/feasibility_check_input_featurecollection.py +47 -0
- geopera/models/feasibility_check_input_params_type_0.py +47 -0
- geopera/models/feasibility_decide_input.py +69 -0
- geopera/models/feature_collection_output.py +81 -0
- geopera/models/federated_search_input.py +328 -0
- geopera/models/federated_search_input_intersects_type_0.py +47 -0
- geopera/models/federated_search_input_query_type_0.py +60 -0
- geopera/models/federated_search_output.py +108 -0
- geopera/models/gcs_region.py +11 -0
- geopera/models/get_subscription_input.py +61 -0
- geopera/models/granule_points_input.py +127 -0
- geopera/models/granule_points_input_clip_polygon_type_0.py +47 -0
- geopera/models/granule_points_output.py +121 -0
- geopera/models/http_validation_error.py +79 -0
- geopera/models/image_asset_input.py +69 -0
- geopera/models/index_get_input.py +61 -0
- geopera/models/indices_list_input.py +93 -0
- geopera/models/invoices_input.py +61 -0
- geopera/models/item_assets_input.py +61 -0
- geopera/models/item_create_input.py +398 -0
- geopera/models/item_create_input_geometry_type_0.py +47 -0
- geopera/models/item_create_input_properties.py +47 -0
- geopera/models/item_delete_input.py +61 -0
- geopera/models/item_delete_output.py +72 -0
- geopera/models/item_duplicate_input.py +123 -0
- geopera/models/item_get_input.py +61 -0
- geopera/models/item_get_output.py +67 -0
- geopera/models/item_get_output_item.py +47 -0
- geopera/models/item_lineage_input.py +61 -0
- geopera/models/item_response.py +609 -0
- geopera/models/item_response_geometry_type_0.py +47 -0
- geopera/models/item_response_properties.py +47 -0
- geopera/models/item_stac_input.py +83 -0
- geopera/models/item_statistics_input.py +111 -0
- geopera/models/item_tile_render_input.py +225 -0
- geopera/models/item_tilejson_input.py +103 -0
- geopera/models/item_type.py +14 -0
- geopera/models/item_update_input.py +316 -0
- geopera/models/item_update_input_geometry_type_0.py +47 -0
- geopera/models/item_update_input_properties_type_0.py +47 -0
- geopera/models/item_wmts_capabilities_input.py +100 -0
- geopera/models/item_wmts_get_tile_input.py +107 -0
- geopera/models/items_by_collection_input.py +81 -0
- geopera/models/items_list_input.py +110 -0
- geopera/models/job_get_input.py +61 -0
- geopera/models/job_register_input.py +94 -0
- geopera/models/job_types_input.py +73 -0
- geopera/models/jobs_list_input.py +160 -0
- geopera/models/lifecycle_state.py +12 -0
- geopera/models/lineage_edge.py +183 -0
- geopera/models/lineage_get_input.py +89 -0
- geopera/models/lineage_get_output.py +123 -0
- geopera/models/lineage_get_output_root.py +47 -0
- geopera/models/lineage_node.py +77 -0
- geopera/models/list_subscriptions_input.py +93 -0
- geopera/models/mark_all_read_output.py +61 -0
- geopera/models/mark_invoiced_input.py +142 -0
- geopera/models/member_output.py +47 -0
- geopera/models/notification_output.py +61 -0
- geopera/models/notification_ref.py +61 -0
- geopera/models/notifications_list_input.py +79 -0
- geopera/models/ok_output.py +72 -0
- geopera/models/operation_get_input.py +61 -0
- geopera/models/operations_list_input.py +73 -0
- geopera/models/order_assets_input.py +61 -0
- geopera/models/order_cancel_input.py +61 -0
- geopera/models/order_cancel_output.py +69 -0
- geopera/models/order_get_input.py +61 -0
- geopera/models/order_place_input.py +151 -0
- geopera/models/order_place_input_featurecollection.py +47 -0
- geopera/models/order_place_input_params.py +47 -0
- geopera/models/order_place_output.py +47 -0
- geopera/models/order_schema_input.py +61 -0
- geopera/models/order_update_input.py +94 -0
- geopera/models/order_update_output.py +47 -0
- geopera/models/orders_archive_place_body_type_0.py +47 -0
- geopera/models/orders_list_input.py +240 -0
- geopera/models/orders_tasking_place_body_type_0.py +47 -0
- geopera/models/org_input.py +61 -0
- geopera/models/org_item_search_input.py +303 -0
- geopera/models/org_item_search_input_query_type_0.py +47 -0
- geopera/models/org_item_search_input_sortby_type_0_item.py +47 -0
- geopera/models/org_status_input.py +61 -0
- geopera/models/organization_create_input.py +290 -0
- geopera/models/organization_create_input_billing_address_type_0.py +47 -0
- geopera/models/organization_create_output.py +85 -0
- geopera/models/payment_method_output.py +82 -0
- geopera/models/problem.py +89 -0
- geopera/models/process_execute_input.py +93 -0
- geopera/models/process_execute_input_inputs.py +47 -0
- geopera/models/process_execute_output.py +47 -0
- geopera/models/process_get_input.py +61 -0
- geopera/models/process_run_input.py +85 -0
- geopera/models/process_run_input_inputs.py +47 -0
- geopera/models/processing_create_and_dispatch_body_type_0.py +47 -0
- geopera/models/processing_create_body_type_0.py +47 -0
- geopera/models/processing_dispatch_input.py +72 -0
- geopera/models/processing_dispatch_output.py +92 -0
- geopera/models/processing_dispatch_output_dispatch.py +47 -0
- geopera/models/processing_dispatch_output_job.py +47 -0
- geopera/models/processing_job_input.py +61 -0
- geopera/models/profile_create_input.py +149 -0
- geopera/models/profile_create_input_config.py +47 -0
- geopera/models/profile_get_input.py +69 -0
- geopera/models/profile_layer.py +10 -0
- geopera/models/profile_ref.py +69 -0
- geopera/models/profile_response.py +196 -0
- geopera/models/profile_response_config.py +47 -0
- geopera/models/profile_type.py +11 -0
- geopera/models/profile_update_input.py +220 -0
- geopera/models/profile_update_input_config_type_0.py +47 -0
- geopera/models/profiles_list_input.py +61 -0
- geopera/models/project_archive_input.py +123 -0
- geopera/models/project_create.py +101 -0
- geopera/models/project_delete_input.py +61 -0
- geopera/models/project_delete_output.py +81 -0
- geopera/models/project_item_search_input.py +313 -0
- geopera/models/project_item_search_input_query_type_0.py +47 -0
- geopera/models/project_item_search_input_sortby_type_0_item.py +47 -0
- geopera/models/project_job_get_input.py +61 -0
- geopera/models/project_jobs_input.py +121 -0
- geopera/models/project_response.py +177 -0
- geopera/models/project_update_input.py +123 -0
- geopera/models/provider_get_input.py +61 -0
- geopera/models/provider_samples_input.py +81 -0
- geopera/models/providers_list_input.py +110 -0
- geopera/models/quotation_decide_input.py +69 -0
- geopera/models/recalculate_input.py +61 -0
- geopera/models/reject_approval_input.py +83 -0
- geopera/models/remove_member_input.py +69 -0
- geopera/models/remove_member_output.py +61 -0
- geopera/models/replay_input.py +61 -0
- geopera/models/reports_generate_body_type_0.py +47 -0
- geopera/models/request_approval_input.py +83 -0
- geopera/models/run_all_input.py +61 -0
- geopera/models/run_input.py +72 -0
- geopera/models/runs_input.py +91 -0
- geopera/models/sample_info_input.py +69 -0
- geopera/models/scene_info_input.py +61 -0
- geopera/models/search_input.py +325 -0
- geopera/models/search_input_filter_type_0.py +47 -0
- geopera/models/search_input_intersects_type_0.py +47 -0
- geopera/models/set_auto_topup_input.py +99 -0
- geopera/models/set_auto_topup_output.py +77 -0
- geopera/models/set_band_names_input.py +77 -0
- geopera/models/set_default_input.py +61 -0
- geopera/models/settle_input.py +81 -0
- geopera/models/setup_intent_input.py +47 -0
- geopera/models/setup_intent_output.py +85 -0
- geopera/models/share_link_create.py +107 -0
- geopera/models/share_link_create_output.py +217 -0
- geopera/models/share_link_revoke_input.py +61 -0
- geopera/models/share_link_revoke_output.py +72 -0
- geopera/models/share_link_validate_input.py +72 -0
- geopera/models/share_link_validate_output.py +83 -0
- geopera/models/share_link_validate_output_target.py +47 -0
- geopera/models/share_permission.py +9 -0
- geopera/models/share_target_type.py +9 -0
- geopera/models/share_tile_input.py +125 -0
- geopera/models/share_tilejson_input.py +92 -0
- geopera/models/signed_url_input.py +80 -0
- geopera/models/signed_url_output.py +69 -0
- geopera/models/sort_clause.py +72 -0
- geopera/models/source_dto.py +139 -0
- geopera/models/source_result_summary.py +99 -0
- geopera/models/sources_list_input.py +113 -0
- geopera/models/sources_list_output.py +75 -0
- geopera/models/statement_input.py +83 -0
- geopera/models/studies_list_input.py +151 -0
- geopera/models/subscription_output.py +61 -0
- geopera/models/tasking_estimate_input.py +79 -0
- geopera/models/tasking_estimate_input_groups_item.py +47 -0
- geopera/models/tasking_estimate_output.py +120 -0
- geopera/models/tasking_estimate_output_errors_item.py +47 -0
- geopera/models/tasking_estimate_output_groups_item.py +47 -0
- geopera/models/tasking_groups_input.py +61 -0
- geopera/models/tasking_sensors_input.py +47 -0
- geopera/models/tasking_sensors_output.py +79 -0
- geopera/models/tasking_sensors_output_sensors_item.py +47 -0
- geopera/models/template_delete_input.py +61 -0
- geopera/models/template_delete_output.py +72 -0
- geopera/models/template_list_input.py +47 -0
- geopera/models/template_list_output.py +79 -0
- geopera/models/template_list_output_templates_item.py +47 -0
- geopera/models/template_save_input.py +159 -0
- geopera/models/template_save_output.py +69 -0
- geopera/models/test_alert_rule_input.py +69 -0
- geopera/models/test_alert_rule_output.py +101 -0
- geopera/models/test_subscription_input.py +61 -0
- geopera/models/test_subscription_output.py +127 -0
- geopera/models/transactions_input.py +90 -0
- geopera/models/update_alert_rule_input.py +363 -0
- geopera/models/update_alert_rule_input_band_mapping_type_0.py +47 -0
- geopera/models/update_member_input.py +77 -0
- geopera/models/update_subscription_input.py +194 -0
- geopera/models/update_subscription_input_filter_config_type_0.py +47 -0
- geopera/models/update_subscription_input_headers_type_0.py +47 -0
- geopera/models/upload_fail_input.py +91 -0
- geopera/models/upload_initiate.py +160 -0
- geopera/models/upload_output.py +61 -0
- geopera/models/upload_progress_input.py +103 -0
- geopera/models/uploads_complete_body_type_0.py +47 -0
- geopera/models/usage_current_input.py +61 -0
- geopera/models/usage_history_input.py +72 -0
- geopera/models/validate_formula_input.py +69 -0
- geopera/models/validate_formula_output.py +121 -0
- geopera/models/validation_error.py +90 -0
- geopera/models/visualization_list_input.py +121 -0
- geopera/models/visualization_list_input_band_roles.py +47 -0
- geopera/models/visualization_list_input_render_params.py +47 -0
- geopera/models/visualization_list_output.py +88 -0
- geopera/models/visualization_spec.py +229 -0
- geopera/models/visualization_spec_kind.py +11 -0
- geopera/models/viz_list_input.py +47 -0
- geopera/py.typed +1 -0
- geopera/types.py +54 -0
- geopera-2.0.0.dist-info/METADATA +162 -0
- geopera-2.0.0.dist-info/RECORD +562 -0
- geopera-2.0.0.dist-info/WHEEL +4 -0
- geopera-2.0.0.dist-info/licenses/LICENSE +21 -0
geopera/__init__.py
ADDED
geopera/api/__init__.py
ADDED
|
@@ -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
|